001/** 002 * Autogenerated by Thrift Compiler (0.8.0) 003 * 004 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 005 * @generated 006 */ 007package org.apache.hadoop.hbase.thrift.generated; 008 009import org.apache.commons.lang.builder.HashCodeBuilder; 010import org.apache.thrift.scheme.IScheme; 011import org.apache.thrift.scheme.SchemeFactory; 012import org.apache.thrift.scheme.StandardScheme; 013 014import org.apache.thrift.scheme.TupleScheme; 015import org.apache.thrift.protocol.TTupleProtocol; 016import java.util.List; 017import java.util.ArrayList; 018import java.util.Map; 019import java.util.HashMap; 020import java.util.EnumMap; 021import java.util.Set; 022import java.util.HashSet; 023import java.util.EnumSet; 024import java.util.Collections; 025import java.util.BitSet; 026import java.nio.ByteBuffer; 027import java.util.Arrays; 028import org.slf4j.Logger; 029import org.slf4j.LoggerFactory; 030 031public class Hbase { 032 033 public interface Iface { 034 035 /** 036 * Brings a table on-line (enables it) 037 * 038 * @param tableName name of the table 039 */ 040 public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 041 042 /** 043 * Disables a table (takes it off-line) If it is being served, the master 044 * will tell the servers to stop serving it. 045 * 046 * @param tableName name of the table 047 */ 048 public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 049 050 /** 051 * @return true if table is on-line 052 * 053 * @param tableName name of the table to check 054 */ 055 public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 056 057 public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; 058 059 public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException; 060 061 /** 062 * List all the userspace tables. 063 * 064 * @return returns a list of names 065 */ 066 public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException; 067 068 /** 069 * List all the column families assoicated with a table. 070 * 071 * @return list of column family descriptors 072 * 073 * @param tableName table name 074 */ 075 public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 076 077 /** 078 * List the regions associated with a table. 079 * 080 * @return list of region descriptors 081 * 082 * @param tableName table name 083 */ 084 public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 085 086 /** 087 * Create a table with the specified column families. The name 088 * field for each ColumnDescriptor must be set and must end in a 089 * colon (:). All other fields are optional and will get default 090 * values if not explicitly specified. 091 * 092 * @throws IllegalArgument if an input parameter is invalid 093 * 094 * @throws AlreadyExists if the table name already exists 095 * 096 * @param tableName name of table to create 097 * 098 * @param columnFamilies list of column family descriptors 099 */ 100 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException; 101 102 /** 103 * Deletes a table 104 * 105 * @throws IOError if table doesn't exist on server or there was some other 106 * problem 107 * 108 * @param tableName name of table to delete 109 */ 110 public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException; 111 112 /** 113 * Get a single TCell for the specified table, row, and column at the 114 * latest timestamp. Returns an empty list if no such value exists. 115 * 116 * @return value for specified row/column 117 * 118 * @param tableName name of table 119 * 120 * @param row row key 121 * 122 * @param column column name 123 * 124 * @param attributes Get attributes 125 */ 126 public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 127 128 /** 129 * Get the specified number of versions for the specified table, 130 * row, and column. 131 * 132 * @return list of cells for specified row/column 133 * 134 * @param tableName name of table 135 * 136 * @param row row key 137 * 138 * @param column column name 139 * 140 * @param numVersions number of versions to retrieve 141 * 142 * @param attributes Get attributes 143 */ 144 public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 145 146 /** 147 * Get the specified number of versions for the specified table, 148 * row, and column. Only versions less than or equal to the specified 149 * timestamp will be returned. 150 * 151 * @return list of cells for specified row/column 152 * 153 * @param tableName name of table 154 * 155 * @param row row key 156 * 157 * @param column column name 158 * 159 * @param timestamp timestamp 160 * 161 * @param numVersions number of versions to retrieve 162 * 163 * @param attributes Get attributes 164 */ 165 public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 166 167 /** 168 * Get all the data for the specified table and row at the latest 169 * timestamp. Returns an empty list if the row does not exist. 170 * 171 * @return TRowResult containing the row and map of columns to TCells 172 * 173 * @param tableName name of table 174 * 175 * @param row row key 176 * 177 * @param attributes Get attributes 178 */ 179 public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 180 181 /** 182 * Get the specified columns for the specified table and row at the latest 183 * timestamp. Returns an empty list if the row does not exist. 184 * 185 * @return TRowResult containing the row and map of columns to TCells 186 * 187 * @param tableName name of table 188 * 189 * @param row row key 190 * 191 * @param columns List of columns to return, null for all columns 192 * 193 * @param attributes Get attributes 194 */ 195 public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 196 197 /** 198 * Get all the data for the specified table and row at the specified 199 * timestamp. Returns an empty list if the row does not exist. 200 * 201 * @return TRowResult containing the row and map of columns to TCells 202 * 203 * @param tableName name of the table 204 * 205 * @param row row key 206 * 207 * @param timestamp timestamp 208 * 209 * @param attributes Get attributes 210 */ 211 public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 212 213 /** 214 * Get the specified columns for the specified table and row at the specified 215 * timestamp. Returns an empty list if the row does not exist. 216 * 217 * @return TRowResult containing the row and map of columns to TCells 218 * 219 * @param tableName name of table 220 * 221 * @param row row key 222 * 223 * @param columns List of columns to return, null for all columns 224 * 225 * @param timestamp 226 * @param attributes Get attributes 227 */ 228 public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 229 230 /** 231 * Get all the data for the specified table and rows at the latest 232 * timestamp. Returns an empty list if no rows exist. 233 * 234 * @return TRowResult containing the rows and map of columns to TCells 235 * 236 * @param tableName name of table 237 * 238 * @param rows row keys 239 * 240 * @param attributes Get attributes 241 */ 242 public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 243 244 /** 245 * Get the specified columns for the specified table and rows at the latest 246 * timestamp. Returns an empty list if no rows exist. 247 * 248 * @return TRowResult containing the rows and map of columns to TCells 249 * 250 * @param tableName name of table 251 * 252 * @param rows row keys 253 * 254 * @param columns List of columns to return, null for all columns 255 * 256 * @param attributes Get attributes 257 */ 258 public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 259 260 /** 261 * Get all the data for the specified table and rows at the specified 262 * timestamp. Returns an empty list if no rows exist. 263 * 264 * @return TRowResult containing the rows and map of columns to TCells 265 * 266 * @param tableName name of the table 267 * 268 * @param rows row keys 269 * 270 * @param timestamp timestamp 271 * 272 * @param attributes Get attributes 273 */ 274 public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 275 276 /** 277 * Get the specified columns for the specified table and rows at the specified 278 * timestamp. Returns an empty list if no rows exist. 279 * 280 * @return TRowResult containing the rows and map of columns to TCells 281 * 282 * @param tableName name of table 283 * 284 * @param rows row keys 285 * 286 * @param columns List of columns to return, null for all columns 287 * 288 * @param timestamp 289 * @param attributes Get attributes 290 */ 291 public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 292 293 /** 294 * Apply a series of mutations (updates/deletes) to a row in a 295 * single transaction. If an exception is thrown, then the 296 * transaction is aborted. Default current timestamp is used, and 297 * all entries will have an identical timestamp. 298 * 299 * @param tableName name of table 300 * 301 * @param row row key 302 * 303 * @param mutations list of mutation commands 304 * 305 * @param attributes Mutation attributes 306 */ 307 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; 308 309 /** 310 * Apply a series of mutations (updates/deletes) to a row in a 311 * single transaction. If an exception is thrown, then the 312 * transaction is aborted. The specified timestamp is used, and 313 * all entries will have an identical timestamp. 314 * 315 * @param tableName name of table 316 * 317 * @param row row key 318 * 319 * @param mutations list of mutation commands 320 * 321 * @param timestamp timestamp 322 * 323 * @param attributes Mutation attributes 324 */ 325 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; 326 327 /** 328 * Apply a series of batches (each a series of mutations on a single row) 329 * in a single transaction. If an exception is thrown, then the 330 * transaction is aborted. Default current timestamp is used, and 331 * all entries will have an identical timestamp. 332 * 333 * @param tableName name of table 334 * 335 * @param rowBatches list of row batches 336 * 337 * @param attributes Mutation attributes 338 */ 339 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; 340 341 /** 342 * Apply a series of batches (each a series of mutations on a single row) 343 * in a single transaction. If an exception is thrown, then the 344 * transaction is aborted. The specified timestamp is used, and 345 * all entries will have an identical timestamp. 346 * 347 * @param tableName name of table 348 * 349 * @param rowBatches list of row batches 350 * 351 * @param timestamp timestamp 352 * 353 * @param attributes Mutation attributes 354 */ 355 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException; 356 357 /** 358 * Atomically increment the column value specified. Returns the next value post increment. 359 * 360 * @param tableName name of table 361 * 362 * @param row row to increment 363 * 364 * @param column name of column 365 * 366 * @param value amount to increment by 367 */ 368 public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException; 369 370 /** 371 * Delete all cells that match the passed row and column. 372 * 373 * @param tableName name of table 374 * 375 * @param row Row to update 376 * 377 * @param column name of column whose value is to be deleted 378 * 379 * @param attributes Delete attributes 380 */ 381 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 382 383 /** 384 * Delete all cells that match the passed row and column and whose 385 * timestamp is equal-to or older than the passed timestamp. 386 * 387 * @param tableName name of table 388 * 389 * @param row Row to update 390 * 391 * @param column name of column whose value is to be deleted 392 * 393 * @param timestamp timestamp 394 * 395 * @param attributes Delete attributes 396 */ 397 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 398 399 /** 400 * Completely delete the row's cells. 401 * 402 * @param tableName name of table 403 * 404 * @param row key of the row to be completely deleted. 405 * 406 * @param attributes Delete attributes 407 */ 408 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 409 410 /** 411 * Increment a cell by the ammount. 412 * Increments can be applied async if hbase.regionserver.thrift.coalesceIncrement is set to true. 413 * False is the default. Turn to true if you need the extra performance and can accept some 414 * data loss if a thrift server dies with increments still in the queue. 415 * 416 * @param increment The single increment to apply 417 */ 418 public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException; 419 420 public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException; 421 422 /** 423 * Completely delete the row's cells marked with a timestamp 424 * equal-to or older than the passed timestamp. 425 * 426 * @param tableName name of table 427 * 428 * @param row key of the row to be completely deleted. 429 * 430 * @param timestamp timestamp 431 * 432 * @param attributes Delete attributes 433 */ 434 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 435 436 /** 437 * Get a scanner on the current table, using the Scan instance 438 * for the scan parameters. 439 * 440 * @param tableName name of table 441 * 442 * @param scan Scan instance 443 * 444 * @param attributes Scan attributes 445 */ 446 public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 447 448 /** 449 * Get a scanner on the current table starting at the specified row and 450 * ending at the last row in the table. Return the specified columns. 451 * 452 * @return scanner id to be used with other scanner procedures 453 * 454 * @param tableName name of table 455 * 456 * @param startRow Starting row in table to scan. 457 * Send "" (empty string) to start at the first row. 458 * 459 * @param columns columns to scan. If column name is a column family, all 460 * columns of the specified column family are returned. It's also possible 461 * to pass a regex in the column qualifier. 462 * 463 * @param attributes Scan attributes 464 */ 465 public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 466 467 /** 468 * Get a scanner on the current table starting and stopping at the 469 * specified rows. ending at the last row in the table. Return the 470 * specified columns. 471 * 472 * @return scanner id to be used with other scanner procedures 473 * 474 * @param tableName name of table 475 * 476 * @param startRow Starting row in table to scan. 477 * Send "" (empty string) to start at the first row. 478 * 479 * @param stopRow row to stop scanning on. This row is *not* included in the 480 * scanner's results 481 * 482 * @param columns columns to scan. If column name is a column family, all 483 * columns of the specified column family are returned. It's also possible 484 * to pass a regex in the column qualifier. 485 * 486 * @param attributes Scan attributes 487 */ 488 public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 489 490 /** 491 * Open a scanner for a given prefix. That is all rows will have the specified 492 * prefix. No other rows will be returned. 493 * 494 * @return scanner id to use with other scanner calls 495 * 496 * @param tableName name of table 497 * 498 * @param startAndPrefix the prefix (and thus start row) of the keys you want 499 * 500 * @param columns the columns you want returned 501 * 502 * @param attributes Scan attributes 503 */ 504 public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 505 506 /** 507 * Get a scanner on the current table starting at the specified row and 508 * ending at the last row in the table. Return the specified columns. 509 * Only values with the specified timestamp are returned. 510 * 511 * @return scanner id to be used with other scanner procedures 512 * 513 * @param tableName name of table 514 * 515 * @param startRow Starting row in table to scan. 516 * Send "" (empty string) to start at the first row. 517 * 518 * @param columns columns to scan. If column name is a column family, all 519 * columns of the specified column family are returned. It's also possible 520 * to pass a regex in the column qualifier. 521 * 522 * @param timestamp timestamp 523 * 524 * @param attributes Scan attributes 525 */ 526 public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 527 528 /** 529 * Get a scanner on the current table starting and stopping at the 530 * specified rows. ending at the last row in the table. Return the 531 * specified columns. Only values with the specified timestamp are 532 * returned. 533 * 534 * @return scanner id to be used with other scanner procedures 535 * 536 * @param tableName name of table 537 * 538 * @param startRow Starting row in table to scan. 539 * Send "" (empty string) to start at the first row. 540 * 541 * @param stopRow row to stop scanning on. This row is *not* included in the 542 * scanner's results 543 * 544 * @param columns columns to scan. If column name is a column family, all 545 * columns of the specified column family are returned. It's also possible 546 * to pass a regex in the column qualifier. 547 * 548 * @param timestamp timestamp 549 * 550 * @param attributes Scan attributes 551 */ 552 public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException; 553 554 /** 555 * Returns the scanner's current row value and advances to the next 556 * row in the table. When there are no more rows in the table, or a key 557 * greater-than-or-equal-to the scanner's specified stopRow is reached, 558 * an empty list is returned. 559 * 560 * @return a TRowResult containing the current row and a map of the columns to TCells. 561 * 562 * @throws IllegalArgument if ScannerID is invalid 563 * 564 * @throws NotFound when the scanner reaches the end 565 * 566 * @param id id of a scanner returned by scannerOpen 567 */ 568 public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException; 569 570 /** 571 * Returns, starting at the scanner's current row value nbRows worth of 572 * rows and advances to the next row in the table. When there are no more 573 * rows in the table, or a key greater-than-or-equal-to the scanner's 574 * specified stopRow is reached, an empty list is returned. 575 * 576 * @return a TRowResult containing the current row and a map of the columns to TCells. 577 * 578 * @throws IllegalArgument if ScannerID is invalid 579 * 580 * @throws NotFound when the scanner reaches the end 581 * 582 * @param id id of a scanner returned by scannerOpen 583 * 584 * @param nbRows number of results to return 585 */ 586 public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException; 587 588 /** 589 * Closes the server-state associated with an open scanner. 590 * 591 * @throws IllegalArgument if ScannerID is invalid 592 * 593 * @param id id of a scanner returned by scannerOpen 594 */ 595 public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException; 596 597 /** 598 * Get the row just before the specified one. 599 * 600 * @return value for specified row/column 601 * 602 * @param tableName name of table 603 * 604 * @param row row key 605 * 606 * @param family column name 607 */ 608 public List<TCell> getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException; 609 610 /** 611 * Get the regininfo for the specified row. It scans 612 * the metatable to find region's start and end keys. 613 * 614 * @return value for specified row/column 615 * 616 * @param row row key 617 */ 618 public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException; 619 620 } 621 622 public interface AsyncIface { 623 624 public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enableTable_call> resultHandler) throws org.apache.thrift.TException; 625 626 public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.disableTable_call> resultHandler) throws org.apache.thrift.TException; 627 628 public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTableEnabled_call> resultHandler) throws org.apache.thrift.TException; 629 630 public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.compact_call> resultHandler) throws org.apache.thrift.TException; 631 632 public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.majorCompact_call> resultHandler) throws org.apache.thrift.TException; 633 634 public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableNames_call> resultHandler) throws org.apache.thrift.TException; 635 636 public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException; 637 638 public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableRegions_call> resultHandler) throws org.apache.thrift.TException; 639 640 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTable_call> resultHandler) throws org.apache.thrift.TException; 641 642 public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteTable_call> resultHandler) throws org.apache.thrift.TException; 643 644 public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_call> resultHandler) throws org.apache.thrift.TException; 645 646 public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVer_call> resultHandler) throws org.apache.thrift.TException; 647 648 public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerTs_call> resultHandler) throws org.apache.thrift.TException; 649 650 public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRow_call> resultHandler) throws org.apache.thrift.TException; 651 652 public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException; 653 654 public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowTs_call> resultHandler) throws org.apache.thrift.TException; 655 656 public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException; 657 658 public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRows_call> resultHandler) throws org.apache.thrift.TException; 659 660 public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException; 661 662 public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsTs_call> resultHandler) throws org.apache.thrift.TException; 663 664 public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException; 665 666 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRow_call> resultHandler) throws org.apache.thrift.TException; 667 668 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowTs_call> resultHandler) throws org.apache.thrift.TException; 669 670 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRows_call> resultHandler) throws org.apache.thrift.TException; 671 672 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException; 673 674 public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.atomicIncrement_call> resultHandler) throws org.apache.thrift.TException; 675 676 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAll_call> resultHandler) throws org.apache.thrift.TException; 677 678 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllTs_call> resultHandler) throws org.apache.thrift.TException; 679 680 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRow_call> resultHandler) throws org.apache.thrift.TException; 681 682 public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increment_call> resultHandler) throws org.apache.thrift.TException; 683 684 public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.incrementRows_call> resultHandler) throws org.apache.thrift.TException; 685 686 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException; 687 688 public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException; 689 690 public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpen_call> resultHandler) throws org.apache.thrift.TException; 691 692 public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException; 693 694 public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException; 695 696 public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException; 697 698 public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException; 699 700 public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGet_call> resultHandler) throws org.apache.thrift.TException; 701 702 public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGetList_call> resultHandler) throws org.apache.thrift.TException; 703 704 public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerClose_call> resultHandler) throws org.apache.thrift.TException; 705 706 public void getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowOrBefore_call> resultHandler) throws org.apache.thrift.TException; 707 708 public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRegionInfo_call> resultHandler) throws org.apache.thrift.TException; 709 710 } 711 712 public static class Client extends org.apache.thrift.TServiceClient implements Iface { 713 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> { 714 public Factory() {} 715 public Client getClient(org.apache.thrift.protocol.TProtocol prot) { 716 return new Client(prot); 717 } 718 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { 719 return new Client(iprot, oprot); 720 } 721 } 722 723 public Client(org.apache.thrift.protocol.TProtocol prot) 724 { 725 super(prot, prot); 726 } 727 728 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { 729 super(iprot, oprot); 730 } 731 732 public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 733 { 734 send_enableTable(tableName); 735 recv_enableTable(); 736 } 737 738 public void send_enableTable(ByteBuffer tableName) throws org.apache.thrift.TException 739 { 740 enableTable_args args = new enableTable_args(); 741 args.setTableName(tableName); 742 sendBase("enableTable", args); 743 } 744 745 public void recv_enableTable() throws IOError, org.apache.thrift.TException 746 { 747 enableTable_result result = new enableTable_result(); 748 receiveBase(result, "enableTable"); 749 if (result.io != null) { 750 throw result.io; 751 } 752 return; 753 } 754 755 public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 756 { 757 send_disableTable(tableName); 758 recv_disableTable(); 759 } 760 761 public void send_disableTable(ByteBuffer tableName) throws org.apache.thrift.TException 762 { 763 disableTable_args args = new disableTable_args(); 764 args.setTableName(tableName); 765 sendBase("disableTable", args); 766 } 767 768 public void recv_disableTable() throws IOError, org.apache.thrift.TException 769 { 770 disableTable_result result = new disableTable_result(); 771 receiveBase(result, "disableTable"); 772 if (result.io != null) { 773 throw result.io; 774 } 775 return; 776 } 777 778 public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 779 { 780 send_isTableEnabled(tableName); 781 return recv_isTableEnabled(); 782 } 783 784 public void send_isTableEnabled(ByteBuffer tableName) throws org.apache.thrift.TException 785 { 786 isTableEnabled_args args = new isTableEnabled_args(); 787 args.setTableName(tableName); 788 sendBase("isTableEnabled", args); 789 } 790 791 public boolean recv_isTableEnabled() throws IOError, org.apache.thrift.TException 792 { 793 isTableEnabled_result result = new isTableEnabled_result(); 794 receiveBase(result, "isTableEnabled"); 795 if (result.isSetSuccess()) { 796 return result.success; 797 } 798 if (result.io != null) { 799 throw result.io; 800 } 801 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result"); 802 } 803 804 public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException 805 { 806 send_compact(tableNameOrRegionName); 807 recv_compact(); 808 } 809 810 public void send_compact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException 811 { 812 compact_args args = new compact_args(); 813 args.setTableNameOrRegionName(tableNameOrRegionName); 814 sendBase("compact", args); 815 } 816 817 public void recv_compact() throws IOError, org.apache.thrift.TException 818 { 819 compact_result result = new compact_result(); 820 receiveBase(result, "compact"); 821 if (result.io != null) { 822 throw result.io; 823 } 824 return; 825 } 826 827 public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException 828 { 829 send_majorCompact(tableNameOrRegionName); 830 recv_majorCompact(); 831 } 832 833 public void send_majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException 834 { 835 majorCompact_args args = new majorCompact_args(); 836 args.setTableNameOrRegionName(tableNameOrRegionName); 837 sendBase("majorCompact", args); 838 } 839 840 public void recv_majorCompact() throws IOError, org.apache.thrift.TException 841 { 842 majorCompact_result result = new majorCompact_result(); 843 receiveBase(result, "majorCompact"); 844 if (result.io != null) { 845 throw result.io; 846 } 847 return; 848 } 849 850 public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException 851 { 852 send_getTableNames(); 853 return recv_getTableNames(); 854 } 855 856 public void send_getTableNames() throws org.apache.thrift.TException 857 { 858 getTableNames_args args = new getTableNames_args(); 859 sendBase("getTableNames", args); 860 } 861 862 public List<ByteBuffer> recv_getTableNames() throws IOError, org.apache.thrift.TException 863 { 864 getTableNames_result result = new getTableNames_result(); 865 receiveBase(result, "getTableNames"); 866 if (result.isSetSuccess()) { 867 return result.success; 868 } 869 if (result.io != null) { 870 throw result.io; 871 } 872 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result"); 873 } 874 875 public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 876 { 877 send_getColumnDescriptors(tableName); 878 return recv_getColumnDescriptors(); 879 } 880 881 public void send_getColumnDescriptors(ByteBuffer tableName) throws org.apache.thrift.TException 882 { 883 getColumnDescriptors_args args = new getColumnDescriptors_args(); 884 args.setTableName(tableName); 885 sendBase("getColumnDescriptors", args); 886 } 887 888 public Map<ByteBuffer,ColumnDescriptor> recv_getColumnDescriptors() throws IOError, org.apache.thrift.TException 889 { 890 getColumnDescriptors_result result = new getColumnDescriptors_result(); 891 receiveBase(result, "getColumnDescriptors"); 892 if (result.isSetSuccess()) { 893 return result.success; 894 } 895 if (result.io != null) { 896 throw result.io; 897 } 898 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result"); 899 } 900 901 public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 902 { 903 send_getTableRegions(tableName); 904 return recv_getTableRegions(); 905 } 906 907 public void send_getTableRegions(ByteBuffer tableName) throws org.apache.thrift.TException 908 { 909 getTableRegions_args args = new getTableRegions_args(); 910 args.setTableName(tableName); 911 sendBase("getTableRegions", args); 912 } 913 914 public List<TRegionInfo> recv_getTableRegions() throws IOError, org.apache.thrift.TException 915 { 916 getTableRegions_result result = new getTableRegions_result(); 917 receiveBase(result, "getTableRegions"); 918 if (result.isSetSuccess()) { 919 return result.success; 920 } 921 if (result.io != null) { 922 throw result.io; 923 } 924 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result"); 925 } 926 927 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException 928 { 929 send_createTable(tableName, columnFamilies); 930 recv_createTable(); 931 } 932 933 public void send_createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws org.apache.thrift.TException 934 { 935 createTable_args args = new createTable_args(); 936 args.setTableName(tableName); 937 args.setColumnFamilies(columnFamilies); 938 sendBase("createTable", args); 939 } 940 941 public void recv_createTable() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException 942 { 943 createTable_result result = new createTable_result(); 944 receiveBase(result, "createTable"); 945 if (result.io != null) { 946 throw result.io; 947 } 948 if (result.ia != null) { 949 throw result.ia; 950 } 951 if (result.exist != null) { 952 throw result.exist; 953 } 954 return; 955 } 956 957 public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException 958 { 959 send_deleteTable(tableName); 960 recv_deleteTable(); 961 } 962 963 public void send_deleteTable(ByteBuffer tableName) throws org.apache.thrift.TException 964 { 965 deleteTable_args args = new deleteTable_args(); 966 args.setTableName(tableName); 967 sendBase("deleteTable", args); 968 } 969 970 public void recv_deleteTable() throws IOError, org.apache.thrift.TException 971 { 972 deleteTable_result result = new deleteTable_result(); 973 receiveBase(result, "deleteTable"); 974 if (result.io != null) { 975 throw result.io; 976 } 977 return; 978 } 979 980 public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 981 { 982 send_get(tableName, row, column, attributes); 983 return recv_get(); 984 } 985 986 public void send_get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 987 { 988 get_args args = new get_args(); 989 args.setTableName(tableName); 990 args.setRow(row); 991 args.setColumn(column); 992 args.setAttributes(attributes); 993 sendBase("get", args); 994 } 995 996 public List<TCell> recv_get() throws IOError, org.apache.thrift.TException 997 { 998 get_result result = new get_result(); 999 receiveBase(result, "get"); 1000 if (result.isSetSuccess()) { 1001 return result.success; 1002 } 1003 if (result.io != null) { 1004 throw result.io; 1005 } 1006 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result"); 1007 } 1008 1009 public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1010 { 1011 send_getVer(tableName, row, column, numVersions, attributes); 1012 return recv_getVer(); 1013 } 1014 1015 public void send_getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1016 { 1017 getVer_args args = new getVer_args(); 1018 args.setTableName(tableName); 1019 args.setRow(row); 1020 args.setColumn(column); 1021 args.setNumVersions(numVersions); 1022 args.setAttributes(attributes); 1023 sendBase("getVer", args); 1024 } 1025 1026 public List<TCell> recv_getVer() throws IOError, org.apache.thrift.TException 1027 { 1028 getVer_result result = new getVer_result(); 1029 receiveBase(result, "getVer"); 1030 if (result.isSetSuccess()) { 1031 return result.success; 1032 } 1033 if (result.io != null) { 1034 throw result.io; 1035 } 1036 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVer failed: unknown result"); 1037 } 1038 1039 public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1040 { 1041 send_getVerTs(tableName, row, column, timestamp, numVersions, attributes); 1042 return recv_getVerTs(); 1043 } 1044 1045 public void send_getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1046 { 1047 getVerTs_args args = new getVerTs_args(); 1048 args.setTableName(tableName); 1049 args.setRow(row); 1050 args.setColumn(column); 1051 args.setTimestamp(timestamp); 1052 args.setNumVersions(numVersions); 1053 args.setAttributes(attributes); 1054 sendBase("getVerTs", args); 1055 } 1056 1057 public List<TCell> recv_getVerTs() throws IOError, org.apache.thrift.TException 1058 { 1059 getVerTs_result result = new getVerTs_result(); 1060 receiveBase(result, "getVerTs"); 1061 if (result.isSetSuccess()) { 1062 return result.success; 1063 } 1064 if (result.io != null) { 1065 throw result.io; 1066 } 1067 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result"); 1068 } 1069 1070 public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1071 { 1072 send_getRow(tableName, row, attributes); 1073 return recv_getRow(); 1074 } 1075 1076 public void send_getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1077 { 1078 getRow_args args = new getRow_args(); 1079 args.setTableName(tableName); 1080 args.setRow(row); 1081 args.setAttributes(attributes); 1082 sendBase("getRow", args); 1083 } 1084 1085 public List<TRowResult> recv_getRow() throws IOError, org.apache.thrift.TException 1086 { 1087 getRow_result result = new getRow_result(); 1088 receiveBase(result, "getRow"); 1089 if (result.isSetSuccess()) { 1090 return result.success; 1091 } 1092 if (result.io != null) { 1093 throw result.io; 1094 } 1095 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRow failed: unknown result"); 1096 } 1097 1098 public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1099 { 1100 send_getRowWithColumns(tableName, row, columns, attributes); 1101 return recv_getRowWithColumns(); 1102 } 1103 1104 public void send_getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1105 { 1106 getRowWithColumns_args args = new getRowWithColumns_args(); 1107 args.setTableName(tableName); 1108 args.setRow(row); 1109 args.setColumns(columns); 1110 args.setAttributes(attributes); 1111 sendBase("getRowWithColumns", args); 1112 } 1113 1114 public List<TRowResult> recv_getRowWithColumns() throws IOError, org.apache.thrift.TException 1115 { 1116 getRowWithColumns_result result = new getRowWithColumns_result(); 1117 receiveBase(result, "getRowWithColumns"); 1118 if (result.isSetSuccess()) { 1119 return result.success; 1120 } 1121 if (result.io != null) { 1122 throw result.io; 1123 } 1124 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result"); 1125 } 1126 1127 public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1128 { 1129 send_getRowTs(tableName, row, timestamp, attributes); 1130 return recv_getRowTs(); 1131 } 1132 1133 public void send_getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1134 { 1135 getRowTs_args args = new getRowTs_args(); 1136 args.setTableName(tableName); 1137 args.setRow(row); 1138 args.setTimestamp(timestamp); 1139 args.setAttributes(attributes); 1140 sendBase("getRowTs", args); 1141 } 1142 1143 public List<TRowResult> recv_getRowTs() throws IOError, org.apache.thrift.TException 1144 { 1145 getRowTs_result result = new getRowTs_result(); 1146 receiveBase(result, "getRowTs"); 1147 if (result.isSetSuccess()) { 1148 return result.success; 1149 } 1150 if (result.io != null) { 1151 throw result.io; 1152 } 1153 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result"); 1154 } 1155 1156 public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1157 { 1158 send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes); 1159 return recv_getRowWithColumnsTs(); 1160 } 1161 1162 public void send_getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1163 { 1164 getRowWithColumnsTs_args args = new getRowWithColumnsTs_args(); 1165 args.setTableName(tableName); 1166 args.setRow(row); 1167 args.setColumns(columns); 1168 args.setTimestamp(timestamp); 1169 args.setAttributes(attributes); 1170 sendBase("getRowWithColumnsTs", args); 1171 } 1172 1173 public List<TRowResult> recv_getRowWithColumnsTs() throws IOError, org.apache.thrift.TException 1174 { 1175 getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); 1176 receiveBase(result, "getRowWithColumnsTs"); 1177 if (result.isSetSuccess()) { 1178 return result.success; 1179 } 1180 if (result.io != null) { 1181 throw result.io; 1182 } 1183 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result"); 1184 } 1185 1186 public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1187 { 1188 send_getRows(tableName, rows, attributes); 1189 return recv_getRows(); 1190 } 1191 1192 public void send_getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1193 { 1194 getRows_args args = new getRows_args(); 1195 args.setTableName(tableName); 1196 args.setRows(rows); 1197 args.setAttributes(attributes); 1198 sendBase("getRows", args); 1199 } 1200 1201 public List<TRowResult> recv_getRows() throws IOError, org.apache.thrift.TException 1202 { 1203 getRows_result result = new getRows_result(); 1204 receiveBase(result, "getRows"); 1205 if (result.isSetSuccess()) { 1206 return result.success; 1207 } 1208 if (result.io != null) { 1209 throw result.io; 1210 } 1211 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRows failed: unknown result"); 1212 } 1213 1214 public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1215 { 1216 send_getRowsWithColumns(tableName, rows, columns, attributes); 1217 return recv_getRowsWithColumns(); 1218 } 1219 1220 public void send_getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1221 { 1222 getRowsWithColumns_args args = new getRowsWithColumns_args(); 1223 args.setTableName(tableName); 1224 args.setRows(rows); 1225 args.setColumns(columns); 1226 args.setAttributes(attributes); 1227 sendBase("getRowsWithColumns", args); 1228 } 1229 1230 public List<TRowResult> recv_getRowsWithColumns() throws IOError, org.apache.thrift.TException 1231 { 1232 getRowsWithColumns_result result = new getRowsWithColumns_result(); 1233 receiveBase(result, "getRowsWithColumns"); 1234 if (result.isSetSuccess()) { 1235 return result.success; 1236 } 1237 if (result.io != null) { 1238 throw result.io; 1239 } 1240 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result"); 1241 } 1242 1243 public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1244 { 1245 send_getRowsTs(tableName, rows, timestamp, attributes); 1246 return recv_getRowsTs(); 1247 } 1248 1249 public void send_getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1250 { 1251 getRowsTs_args args = new getRowsTs_args(); 1252 args.setTableName(tableName); 1253 args.setRows(rows); 1254 args.setTimestamp(timestamp); 1255 args.setAttributes(attributes); 1256 sendBase("getRowsTs", args); 1257 } 1258 1259 public List<TRowResult> recv_getRowsTs() throws IOError, org.apache.thrift.TException 1260 { 1261 getRowsTs_result result = new getRowsTs_result(); 1262 receiveBase(result, "getRowsTs"); 1263 if (result.isSetSuccess()) { 1264 return result.success; 1265 } 1266 if (result.io != null) { 1267 throw result.io; 1268 } 1269 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result"); 1270 } 1271 1272 public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1273 { 1274 send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes); 1275 return recv_getRowsWithColumnsTs(); 1276 } 1277 1278 public void send_getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1279 { 1280 getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args(); 1281 args.setTableName(tableName); 1282 args.setRows(rows); 1283 args.setColumns(columns); 1284 args.setTimestamp(timestamp); 1285 args.setAttributes(attributes); 1286 sendBase("getRowsWithColumnsTs", args); 1287 } 1288 1289 public List<TRowResult> recv_getRowsWithColumnsTs() throws IOError, org.apache.thrift.TException 1290 { 1291 getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); 1292 receiveBase(result, "getRowsWithColumnsTs"); 1293 if (result.isSetSuccess()) { 1294 return result.success; 1295 } 1296 if (result.io != null) { 1297 throw result.io; 1298 } 1299 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result"); 1300 } 1301 1302 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException 1303 { 1304 send_mutateRow(tableName, row, mutations, attributes); 1305 recv_mutateRow(); 1306 } 1307 1308 public void send_mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1309 { 1310 mutateRow_args args = new mutateRow_args(); 1311 args.setTableName(tableName); 1312 args.setRow(row); 1313 args.setMutations(mutations); 1314 args.setAttributes(attributes); 1315 sendBase("mutateRow", args); 1316 } 1317 1318 public void recv_mutateRow() throws IOError, IllegalArgument, org.apache.thrift.TException 1319 { 1320 mutateRow_result result = new mutateRow_result(); 1321 receiveBase(result, "mutateRow"); 1322 if (result.io != null) { 1323 throw result.io; 1324 } 1325 if (result.ia != null) { 1326 throw result.ia; 1327 } 1328 return; 1329 } 1330 1331 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException 1332 { 1333 send_mutateRowTs(tableName, row, mutations, timestamp, attributes); 1334 recv_mutateRowTs(); 1335 } 1336 1337 public void send_mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1338 { 1339 mutateRowTs_args args = new mutateRowTs_args(); 1340 args.setTableName(tableName); 1341 args.setRow(row); 1342 args.setMutations(mutations); 1343 args.setTimestamp(timestamp); 1344 args.setAttributes(attributes); 1345 sendBase("mutateRowTs", args); 1346 } 1347 1348 public void recv_mutateRowTs() throws IOError, IllegalArgument, org.apache.thrift.TException 1349 { 1350 mutateRowTs_result result = new mutateRowTs_result(); 1351 receiveBase(result, "mutateRowTs"); 1352 if (result.io != null) { 1353 throw result.io; 1354 } 1355 if (result.ia != null) { 1356 throw result.ia; 1357 } 1358 return; 1359 } 1360 1361 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException 1362 { 1363 send_mutateRows(tableName, rowBatches, attributes); 1364 recv_mutateRows(); 1365 } 1366 1367 public void send_mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1368 { 1369 mutateRows_args args = new mutateRows_args(); 1370 args.setTableName(tableName); 1371 args.setRowBatches(rowBatches); 1372 args.setAttributes(attributes); 1373 sendBase("mutateRows", args); 1374 } 1375 1376 public void recv_mutateRows() throws IOError, IllegalArgument, org.apache.thrift.TException 1377 { 1378 mutateRows_result result = new mutateRows_result(); 1379 receiveBase(result, "mutateRows"); 1380 if (result.io != null) { 1381 throw result.io; 1382 } 1383 if (result.ia != null) { 1384 throw result.ia; 1385 } 1386 return; 1387 } 1388 1389 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException 1390 { 1391 send_mutateRowsTs(tableName, rowBatches, timestamp, attributes); 1392 recv_mutateRowsTs(); 1393 } 1394 1395 public void send_mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1396 { 1397 mutateRowsTs_args args = new mutateRowsTs_args(); 1398 args.setTableName(tableName); 1399 args.setRowBatches(rowBatches); 1400 args.setTimestamp(timestamp); 1401 args.setAttributes(attributes); 1402 sendBase("mutateRowsTs", args); 1403 } 1404 1405 public void recv_mutateRowsTs() throws IOError, IllegalArgument, org.apache.thrift.TException 1406 { 1407 mutateRowsTs_result result = new mutateRowsTs_result(); 1408 receiveBase(result, "mutateRowsTs"); 1409 if (result.io != null) { 1410 throw result.io; 1411 } 1412 if (result.ia != null) { 1413 throw result.ia; 1414 } 1415 return; 1416 } 1417 1418 public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException 1419 { 1420 send_atomicIncrement(tableName, row, column, value); 1421 return recv_atomicIncrement(); 1422 } 1423 1424 public void send_atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws org.apache.thrift.TException 1425 { 1426 atomicIncrement_args args = new atomicIncrement_args(); 1427 args.setTableName(tableName); 1428 args.setRow(row); 1429 args.setColumn(column); 1430 args.setValue(value); 1431 sendBase("atomicIncrement", args); 1432 } 1433 1434 public long recv_atomicIncrement() throws IOError, IllegalArgument, org.apache.thrift.TException 1435 { 1436 atomicIncrement_result result = new atomicIncrement_result(); 1437 receiveBase(result, "atomicIncrement"); 1438 if (result.isSetSuccess()) { 1439 return result.success; 1440 } 1441 if (result.io != null) { 1442 throw result.io; 1443 } 1444 if (result.ia != null) { 1445 throw result.ia; 1446 } 1447 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result"); 1448 } 1449 1450 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1451 { 1452 send_deleteAll(tableName, row, column, attributes); 1453 recv_deleteAll(); 1454 } 1455 1456 public void send_deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1457 { 1458 deleteAll_args args = new deleteAll_args(); 1459 args.setTableName(tableName); 1460 args.setRow(row); 1461 args.setColumn(column); 1462 args.setAttributes(attributes); 1463 sendBase("deleteAll", args); 1464 } 1465 1466 public void recv_deleteAll() throws IOError, org.apache.thrift.TException 1467 { 1468 deleteAll_result result = new deleteAll_result(); 1469 receiveBase(result, "deleteAll"); 1470 if (result.io != null) { 1471 throw result.io; 1472 } 1473 return; 1474 } 1475 1476 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1477 { 1478 send_deleteAllTs(tableName, row, column, timestamp, attributes); 1479 recv_deleteAllTs(); 1480 } 1481 1482 public void send_deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1483 { 1484 deleteAllTs_args args = new deleteAllTs_args(); 1485 args.setTableName(tableName); 1486 args.setRow(row); 1487 args.setColumn(column); 1488 args.setTimestamp(timestamp); 1489 args.setAttributes(attributes); 1490 sendBase("deleteAllTs", args); 1491 } 1492 1493 public void recv_deleteAllTs() throws IOError, org.apache.thrift.TException 1494 { 1495 deleteAllTs_result result = new deleteAllTs_result(); 1496 receiveBase(result, "deleteAllTs"); 1497 if (result.io != null) { 1498 throw result.io; 1499 } 1500 return; 1501 } 1502 1503 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1504 { 1505 send_deleteAllRow(tableName, row, attributes); 1506 recv_deleteAllRow(); 1507 } 1508 1509 public void send_deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1510 { 1511 deleteAllRow_args args = new deleteAllRow_args(); 1512 args.setTableName(tableName); 1513 args.setRow(row); 1514 args.setAttributes(attributes); 1515 sendBase("deleteAllRow", args); 1516 } 1517 1518 public void recv_deleteAllRow() throws IOError, org.apache.thrift.TException 1519 { 1520 deleteAllRow_result result = new deleteAllRow_result(); 1521 receiveBase(result, "deleteAllRow"); 1522 if (result.io != null) { 1523 throw result.io; 1524 } 1525 return; 1526 } 1527 1528 public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException 1529 { 1530 send_increment(increment); 1531 recv_increment(); 1532 } 1533 1534 public void send_increment(TIncrement increment) throws org.apache.thrift.TException 1535 { 1536 increment_args args = new increment_args(); 1537 args.setIncrement(increment); 1538 sendBase("increment", args); 1539 } 1540 1541 public void recv_increment() throws IOError, org.apache.thrift.TException 1542 { 1543 increment_result result = new increment_result(); 1544 receiveBase(result, "increment"); 1545 if (result.io != null) { 1546 throw result.io; 1547 } 1548 return; 1549 } 1550 1551 public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException 1552 { 1553 send_incrementRows(increments); 1554 recv_incrementRows(); 1555 } 1556 1557 public void send_incrementRows(List<TIncrement> increments) throws org.apache.thrift.TException 1558 { 1559 incrementRows_args args = new incrementRows_args(); 1560 args.setIncrements(increments); 1561 sendBase("incrementRows", args); 1562 } 1563 1564 public void recv_incrementRows() throws IOError, org.apache.thrift.TException 1565 { 1566 incrementRows_result result = new incrementRows_result(); 1567 receiveBase(result, "incrementRows"); 1568 if (result.io != null) { 1569 throw result.io; 1570 } 1571 return; 1572 } 1573 1574 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1575 { 1576 send_deleteAllRowTs(tableName, row, timestamp, attributes); 1577 recv_deleteAllRowTs(); 1578 } 1579 1580 public void send_deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1581 { 1582 deleteAllRowTs_args args = new deleteAllRowTs_args(); 1583 args.setTableName(tableName); 1584 args.setRow(row); 1585 args.setTimestamp(timestamp); 1586 args.setAttributes(attributes); 1587 sendBase("deleteAllRowTs", args); 1588 } 1589 1590 public void recv_deleteAllRowTs() throws IOError, org.apache.thrift.TException 1591 { 1592 deleteAllRowTs_result result = new deleteAllRowTs_result(); 1593 receiveBase(result, "deleteAllRowTs"); 1594 if (result.io != null) { 1595 throw result.io; 1596 } 1597 return; 1598 } 1599 1600 public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1601 { 1602 send_scannerOpenWithScan(tableName, scan, attributes); 1603 return recv_scannerOpenWithScan(); 1604 } 1605 1606 public void send_scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1607 { 1608 scannerOpenWithScan_args args = new scannerOpenWithScan_args(); 1609 args.setTableName(tableName); 1610 args.setScan(scan); 1611 args.setAttributes(attributes); 1612 sendBase("scannerOpenWithScan", args); 1613 } 1614 1615 public int recv_scannerOpenWithScan() throws IOError, org.apache.thrift.TException 1616 { 1617 scannerOpenWithScan_result result = new scannerOpenWithScan_result(); 1618 receiveBase(result, "scannerOpenWithScan"); 1619 if (result.isSetSuccess()) { 1620 return result.success; 1621 } 1622 if (result.io != null) { 1623 throw result.io; 1624 } 1625 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result"); 1626 } 1627 1628 public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1629 { 1630 send_scannerOpen(tableName, startRow, columns, attributes); 1631 return recv_scannerOpen(); 1632 } 1633 1634 public void send_scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1635 { 1636 scannerOpen_args args = new scannerOpen_args(); 1637 args.setTableName(tableName); 1638 args.setStartRow(startRow); 1639 args.setColumns(columns); 1640 args.setAttributes(attributes); 1641 sendBase("scannerOpen", args); 1642 } 1643 1644 public int recv_scannerOpen() throws IOError, org.apache.thrift.TException 1645 { 1646 scannerOpen_result result = new scannerOpen_result(); 1647 receiveBase(result, "scannerOpen"); 1648 if (result.isSetSuccess()) { 1649 return result.success; 1650 } 1651 if (result.io != null) { 1652 throw result.io; 1653 } 1654 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result"); 1655 } 1656 1657 public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1658 { 1659 send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes); 1660 return recv_scannerOpenWithStop(); 1661 } 1662 1663 public void send_scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1664 { 1665 scannerOpenWithStop_args args = new scannerOpenWithStop_args(); 1666 args.setTableName(tableName); 1667 args.setStartRow(startRow); 1668 args.setStopRow(stopRow); 1669 args.setColumns(columns); 1670 args.setAttributes(attributes); 1671 sendBase("scannerOpenWithStop", args); 1672 } 1673 1674 public int recv_scannerOpenWithStop() throws IOError, org.apache.thrift.TException 1675 { 1676 scannerOpenWithStop_result result = new scannerOpenWithStop_result(); 1677 receiveBase(result, "scannerOpenWithStop"); 1678 if (result.isSetSuccess()) { 1679 return result.success; 1680 } 1681 if (result.io != null) { 1682 throw result.io; 1683 } 1684 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result"); 1685 } 1686 1687 public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1688 { 1689 send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes); 1690 return recv_scannerOpenWithPrefix(); 1691 } 1692 1693 public void send_scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1694 { 1695 scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args(); 1696 args.setTableName(tableName); 1697 args.setStartAndPrefix(startAndPrefix); 1698 args.setColumns(columns); 1699 args.setAttributes(attributes); 1700 sendBase("scannerOpenWithPrefix", args); 1701 } 1702 1703 public int recv_scannerOpenWithPrefix() throws IOError, org.apache.thrift.TException 1704 { 1705 scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); 1706 receiveBase(result, "scannerOpenWithPrefix"); 1707 if (result.isSetSuccess()) { 1708 return result.success; 1709 } 1710 if (result.io != null) { 1711 throw result.io; 1712 } 1713 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result"); 1714 } 1715 1716 public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1717 { 1718 send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes); 1719 return recv_scannerOpenTs(); 1720 } 1721 1722 public void send_scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1723 { 1724 scannerOpenTs_args args = new scannerOpenTs_args(); 1725 args.setTableName(tableName); 1726 args.setStartRow(startRow); 1727 args.setColumns(columns); 1728 args.setTimestamp(timestamp); 1729 args.setAttributes(attributes); 1730 sendBase("scannerOpenTs", args); 1731 } 1732 1733 public int recv_scannerOpenTs() throws IOError, org.apache.thrift.TException 1734 { 1735 scannerOpenTs_result result = new scannerOpenTs_result(); 1736 receiveBase(result, "scannerOpenTs"); 1737 if (result.isSetSuccess()) { 1738 return result.success; 1739 } 1740 if (result.io != null) { 1741 throw result.io; 1742 } 1743 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result"); 1744 } 1745 1746 public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException 1747 { 1748 send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes); 1749 return recv_scannerOpenWithStopTs(); 1750 } 1751 1752 public void send_scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException 1753 { 1754 scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args(); 1755 args.setTableName(tableName); 1756 args.setStartRow(startRow); 1757 args.setStopRow(stopRow); 1758 args.setColumns(columns); 1759 args.setTimestamp(timestamp); 1760 args.setAttributes(attributes); 1761 sendBase("scannerOpenWithStopTs", args); 1762 } 1763 1764 public int recv_scannerOpenWithStopTs() throws IOError, org.apache.thrift.TException 1765 { 1766 scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); 1767 receiveBase(result, "scannerOpenWithStopTs"); 1768 if (result.isSetSuccess()) { 1769 return result.success; 1770 } 1771 if (result.io != null) { 1772 throw result.io; 1773 } 1774 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result"); 1775 } 1776 1777 public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException 1778 { 1779 send_scannerGet(id); 1780 return recv_scannerGet(); 1781 } 1782 1783 public void send_scannerGet(int id) throws org.apache.thrift.TException 1784 { 1785 scannerGet_args args = new scannerGet_args(); 1786 args.setId(id); 1787 sendBase("scannerGet", args); 1788 } 1789 1790 public List<TRowResult> recv_scannerGet() throws IOError, IllegalArgument, org.apache.thrift.TException 1791 { 1792 scannerGet_result result = new scannerGet_result(); 1793 receiveBase(result, "scannerGet"); 1794 if (result.isSetSuccess()) { 1795 return result.success; 1796 } 1797 if (result.io != null) { 1798 throw result.io; 1799 } 1800 if (result.ia != null) { 1801 throw result.ia; 1802 } 1803 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result"); 1804 } 1805 1806 public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException 1807 { 1808 send_scannerGetList(id, nbRows); 1809 return recv_scannerGetList(); 1810 } 1811 1812 public void send_scannerGetList(int id, int nbRows) throws org.apache.thrift.TException 1813 { 1814 scannerGetList_args args = new scannerGetList_args(); 1815 args.setId(id); 1816 args.setNbRows(nbRows); 1817 sendBase("scannerGetList", args); 1818 } 1819 1820 public List<TRowResult> recv_scannerGetList() throws IOError, IllegalArgument, org.apache.thrift.TException 1821 { 1822 scannerGetList_result result = new scannerGetList_result(); 1823 receiveBase(result, "scannerGetList"); 1824 if (result.isSetSuccess()) { 1825 return result.success; 1826 } 1827 if (result.io != null) { 1828 throw result.io; 1829 } 1830 if (result.ia != null) { 1831 throw result.ia; 1832 } 1833 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result"); 1834 } 1835 1836 public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException 1837 { 1838 send_scannerClose(id); 1839 recv_scannerClose(); 1840 } 1841 1842 public void send_scannerClose(int id) throws org.apache.thrift.TException 1843 { 1844 scannerClose_args args = new scannerClose_args(); 1845 args.setId(id); 1846 sendBase("scannerClose", args); 1847 } 1848 1849 public void recv_scannerClose() throws IOError, IllegalArgument, org.apache.thrift.TException 1850 { 1851 scannerClose_result result = new scannerClose_result(); 1852 receiveBase(result, "scannerClose"); 1853 if (result.io != null) { 1854 throw result.io; 1855 } 1856 if (result.ia != null) { 1857 throw result.ia; 1858 } 1859 return; 1860 } 1861 1862 public List<TCell> getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException 1863 { 1864 send_getRowOrBefore(tableName, row, family); 1865 return recv_getRowOrBefore(); 1866 } 1867 1868 public void send_getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws org.apache.thrift.TException 1869 { 1870 getRowOrBefore_args args = new getRowOrBefore_args(); 1871 args.setTableName(tableName); 1872 args.setRow(row); 1873 args.setFamily(family); 1874 sendBase("getRowOrBefore", args); 1875 } 1876 1877 public List<TCell> recv_getRowOrBefore() throws IOError, org.apache.thrift.TException 1878 { 1879 getRowOrBefore_result result = new getRowOrBefore_result(); 1880 receiveBase(result, "getRowOrBefore"); 1881 if (result.isSetSuccess()) { 1882 return result.success; 1883 } 1884 if (result.io != null) { 1885 throw result.io; 1886 } 1887 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result"); 1888 } 1889 1890 public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException 1891 { 1892 send_getRegionInfo(row); 1893 return recv_getRegionInfo(); 1894 } 1895 1896 public void send_getRegionInfo(ByteBuffer row) throws org.apache.thrift.TException 1897 { 1898 getRegionInfo_args args = new getRegionInfo_args(); 1899 args.setRow(row); 1900 sendBase("getRegionInfo", args); 1901 } 1902 1903 public TRegionInfo recv_getRegionInfo() throws IOError, org.apache.thrift.TException 1904 { 1905 getRegionInfo_result result = new getRegionInfo_result(); 1906 receiveBase(result, "getRegionInfo"); 1907 if (result.isSetSuccess()) { 1908 return result.success; 1909 } 1910 if (result.io != null) { 1911 throw result.io; 1912 } 1913 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result"); 1914 } 1915 1916 } 1917 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { 1918 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> { 1919 private org.apache.thrift.async.TAsyncClientManager clientManager; 1920 private org.apache.thrift.protocol.TProtocolFactory protocolFactory; 1921 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) { 1922 this.clientManager = clientManager; 1923 this.protocolFactory = protocolFactory; 1924 } 1925 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) { 1926 return new AsyncClient(protocolFactory, clientManager, transport); 1927 } 1928 } 1929 1930 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) { 1931 super(protocolFactory, clientManager, transport); 1932 } 1933 1934 public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler) throws org.apache.thrift.TException { 1935 checkReady(); 1936 enableTable_call method_call = new enableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 1937 this.___currentMethod = method_call; 1938 ___manager.call(method_call); 1939 } 1940 1941 public static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall { 1942 private ByteBuffer tableName; 1943 public enableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 1944 super(client, protocolFactory, transport, resultHandler, false); 1945 this.tableName = tableName; 1946 } 1947 1948 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 1949 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableTable", org.apache.thrift.protocol.TMessageType.CALL, 0)); 1950 enableTable_args args = new enableTable_args(); 1951 args.setTableName(tableName); 1952 args.write(prot); 1953 prot.writeMessageEnd(); 1954 } 1955 1956 public void getResult() throws IOError, org.apache.thrift.TException { 1957 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 1958 throw new IllegalStateException("Method call not finished!"); 1959 } 1960 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 1961 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 1962 (new Client(prot)).recv_enableTable(); 1963 } 1964 } 1965 1966 public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler) throws org.apache.thrift.TException { 1967 checkReady(); 1968 disableTable_call method_call = new disableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 1969 this.___currentMethod = method_call; 1970 ___manager.call(method_call); 1971 } 1972 1973 public static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall { 1974 private ByteBuffer tableName; 1975 public disableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 1976 super(client, protocolFactory, transport, resultHandler, false); 1977 this.tableName = tableName; 1978 } 1979 1980 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 1981 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableTable", org.apache.thrift.protocol.TMessageType.CALL, 0)); 1982 disableTable_args args = new disableTable_args(); 1983 args.setTableName(tableName); 1984 args.write(prot); 1985 prot.writeMessageEnd(); 1986 } 1987 1988 public void getResult() throws IOError, org.apache.thrift.TException { 1989 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 1990 throw new IllegalStateException("Method call not finished!"); 1991 } 1992 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 1993 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 1994 (new Client(prot)).recv_disableTable(); 1995 } 1996 } 1997 1998 public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler) throws org.apache.thrift.TException { 1999 checkReady(); 2000 isTableEnabled_call method_call = new isTableEnabled_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 2001 this.___currentMethod = method_call; 2002 ___manager.call(method_call); 2003 } 2004 2005 public static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall { 2006 private ByteBuffer tableName; 2007 public isTableEnabled_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2008 super(client, protocolFactory, transport, resultHandler, false); 2009 this.tableName = tableName; 2010 } 2011 2012 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2013 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isTableEnabled", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2014 isTableEnabled_args args = new isTableEnabled_args(); 2015 args.setTableName(tableName); 2016 args.write(prot); 2017 prot.writeMessageEnd(); 2018 } 2019 2020 public boolean getResult() throws IOError, org.apache.thrift.TException { 2021 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2022 throw new IllegalStateException("Method call not finished!"); 2023 } 2024 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2025 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2026 return (new Client(prot)).recv_isTableEnabled(); 2027 } 2028 } 2029 2030 public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler) throws org.apache.thrift.TException { 2031 checkReady(); 2032 compact_call method_call = new compact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport); 2033 this.___currentMethod = method_call; 2034 ___manager.call(method_call); 2035 } 2036 2037 public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall { 2038 private ByteBuffer tableNameOrRegionName; 2039 public compact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2040 super(client, protocolFactory, transport, resultHandler, false); 2041 this.tableNameOrRegionName = tableNameOrRegionName; 2042 } 2043 2044 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2045 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("compact", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2046 compact_args args = new compact_args(); 2047 args.setTableNameOrRegionName(tableNameOrRegionName); 2048 args.write(prot); 2049 prot.writeMessageEnd(); 2050 } 2051 2052 public void getResult() throws IOError, org.apache.thrift.TException { 2053 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2054 throw new IllegalStateException("Method call not finished!"); 2055 } 2056 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2057 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2058 (new Client(prot)).recv_compact(); 2059 } 2060 } 2061 2062 public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler) throws org.apache.thrift.TException { 2063 checkReady(); 2064 majorCompact_call method_call = new majorCompact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport); 2065 this.___currentMethod = method_call; 2066 ___manager.call(method_call); 2067 } 2068 2069 public static class majorCompact_call extends org.apache.thrift.async.TAsyncMethodCall { 2070 private ByteBuffer tableNameOrRegionName; 2071 public majorCompact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2072 super(client, protocolFactory, transport, resultHandler, false); 2073 this.tableNameOrRegionName = tableNameOrRegionName; 2074 } 2075 2076 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2077 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("majorCompact", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2078 majorCompact_args args = new majorCompact_args(); 2079 args.setTableNameOrRegionName(tableNameOrRegionName); 2080 args.write(prot); 2081 prot.writeMessageEnd(); 2082 } 2083 2084 public void getResult() throws IOError, org.apache.thrift.TException { 2085 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2086 throw new IllegalStateException("Method call not finished!"); 2087 } 2088 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2089 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2090 (new Client(prot)).recv_majorCompact(); 2091 } 2092 } 2093 2094 public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler) throws org.apache.thrift.TException { 2095 checkReady(); 2096 getTableNames_call method_call = new getTableNames_call(resultHandler, this, ___protocolFactory, ___transport); 2097 this.___currentMethod = method_call; 2098 ___manager.call(method_call); 2099 } 2100 2101 public static class getTableNames_call extends org.apache.thrift.async.TAsyncMethodCall { 2102 public getTableNames_call(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2103 super(client, protocolFactory, transport, resultHandler, false); 2104 } 2105 2106 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2107 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableNames", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2108 getTableNames_args args = new getTableNames_args(); 2109 args.write(prot); 2110 prot.writeMessageEnd(); 2111 } 2112 2113 public List<ByteBuffer> getResult() throws IOError, org.apache.thrift.TException { 2114 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2115 throw new IllegalStateException("Method call not finished!"); 2116 } 2117 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2118 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2119 return (new Client(prot)).recv_getTableNames(); 2120 } 2121 } 2122 2123 public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException { 2124 checkReady(); 2125 getColumnDescriptors_call method_call = new getColumnDescriptors_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 2126 this.___currentMethod = method_call; 2127 ___manager.call(method_call); 2128 } 2129 2130 public static class getColumnDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall { 2131 private ByteBuffer tableName; 2132 public getColumnDescriptors_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2133 super(client, protocolFactory, transport, resultHandler, false); 2134 this.tableName = tableName; 2135 } 2136 2137 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2138 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getColumnDescriptors", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2139 getColumnDescriptors_args args = new getColumnDescriptors_args(); 2140 args.setTableName(tableName); 2141 args.write(prot); 2142 prot.writeMessageEnd(); 2143 } 2144 2145 public Map<ByteBuffer,ColumnDescriptor> getResult() throws IOError, org.apache.thrift.TException { 2146 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2147 throw new IllegalStateException("Method call not finished!"); 2148 } 2149 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2150 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2151 return (new Client(prot)).recv_getColumnDescriptors(); 2152 } 2153 } 2154 2155 public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler) throws org.apache.thrift.TException { 2156 checkReady(); 2157 getTableRegions_call method_call = new getTableRegions_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 2158 this.___currentMethod = method_call; 2159 ___manager.call(method_call); 2160 } 2161 2162 public static class getTableRegions_call extends org.apache.thrift.async.TAsyncMethodCall { 2163 private ByteBuffer tableName; 2164 public getTableRegions_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2165 super(client, protocolFactory, transport, resultHandler, false); 2166 this.tableName = tableName; 2167 } 2168 2169 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2170 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableRegions", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2171 getTableRegions_args args = new getTableRegions_args(); 2172 args.setTableName(tableName); 2173 args.write(prot); 2174 prot.writeMessageEnd(); 2175 } 2176 2177 public List<TRegionInfo> getResult() throws IOError, org.apache.thrift.TException { 2178 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2179 throw new IllegalStateException("Method call not finished!"); 2180 } 2181 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2182 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2183 return (new Client(prot)).recv_getTableRegions(); 2184 } 2185 } 2186 2187 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler) throws org.apache.thrift.TException { 2188 checkReady(); 2189 createTable_call method_call = new createTable_call(tableName, columnFamilies, resultHandler, this, ___protocolFactory, ___transport); 2190 this.___currentMethod = method_call; 2191 ___manager.call(method_call); 2192 } 2193 2194 public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall { 2195 private ByteBuffer tableName; 2196 private List<ColumnDescriptor> columnFamilies; 2197 public createTable_call(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2198 super(client, protocolFactory, transport, resultHandler, false); 2199 this.tableName = tableName; 2200 this.columnFamilies = columnFamilies; 2201 } 2202 2203 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2204 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTable", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2205 createTable_args args = new createTable_args(); 2206 args.setTableName(tableName); 2207 args.setColumnFamilies(columnFamilies); 2208 args.write(prot); 2209 prot.writeMessageEnd(); 2210 } 2211 2212 public void getResult() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException { 2213 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2214 throw new IllegalStateException("Method call not finished!"); 2215 } 2216 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2217 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2218 (new Client(prot)).recv_createTable(); 2219 } 2220 } 2221 2222 public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler) throws org.apache.thrift.TException { 2223 checkReady(); 2224 deleteTable_call method_call = new deleteTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport); 2225 this.___currentMethod = method_call; 2226 ___manager.call(method_call); 2227 } 2228 2229 public static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall { 2230 private ByteBuffer tableName; 2231 public deleteTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2232 super(client, protocolFactory, transport, resultHandler, false); 2233 this.tableName = tableName; 2234 } 2235 2236 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2237 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteTable", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2238 deleteTable_args args = new deleteTable_args(); 2239 args.setTableName(tableName); 2240 args.write(prot); 2241 prot.writeMessageEnd(); 2242 } 2243 2244 public void getResult() throws IOError, org.apache.thrift.TException { 2245 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2246 throw new IllegalStateException("Method call not finished!"); 2247 } 2248 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2249 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2250 (new Client(prot)).recv_deleteTable(); 2251 } 2252 } 2253 2254 public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler) throws org.apache.thrift.TException { 2255 checkReady(); 2256 get_call method_call = new get_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport); 2257 this.___currentMethod = method_call; 2258 ___manager.call(method_call); 2259 } 2260 2261 public static class get_call extends org.apache.thrift.async.TAsyncMethodCall { 2262 private ByteBuffer tableName; 2263 private ByteBuffer row; 2264 private ByteBuffer column; 2265 private Map<ByteBuffer,ByteBuffer> attributes; 2266 public get_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2267 super(client, protocolFactory, transport, resultHandler, false); 2268 this.tableName = tableName; 2269 this.row = row; 2270 this.column = column; 2271 this.attributes = attributes; 2272 } 2273 2274 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2275 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2276 get_args args = new get_args(); 2277 args.setTableName(tableName); 2278 args.setRow(row); 2279 args.setColumn(column); 2280 args.setAttributes(attributes); 2281 args.write(prot); 2282 prot.writeMessageEnd(); 2283 } 2284 2285 public List<TCell> getResult() throws IOError, org.apache.thrift.TException { 2286 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2287 throw new IllegalStateException("Method call not finished!"); 2288 } 2289 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2290 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2291 return (new Client(prot)).recv_get(); 2292 } 2293 } 2294 2295 public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler) throws org.apache.thrift.TException { 2296 checkReady(); 2297 getVer_call method_call = new getVer_call(tableName, row, column, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport); 2298 this.___currentMethod = method_call; 2299 ___manager.call(method_call); 2300 } 2301 2302 public static class getVer_call extends org.apache.thrift.async.TAsyncMethodCall { 2303 private ByteBuffer tableName; 2304 private ByteBuffer row; 2305 private ByteBuffer column; 2306 private int numVersions; 2307 private Map<ByteBuffer,ByteBuffer> attributes; 2308 public getVer_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2309 super(client, protocolFactory, transport, resultHandler, false); 2310 this.tableName = tableName; 2311 this.row = row; 2312 this.column = column; 2313 this.numVersions = numVersions; 2314 this.attributes = attributes; 2315 } 2316 2317 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2318 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVer", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2319 getVer_args args = new getVer_args(); 2320 args.setTableName(tableName); 2321 args.setRow(row); 2322 args.setColumn(column); 2323 args.setNumVersions(numVersions); 2324 args.setAttributes(attributes); 2325 args.write(prot); 2326 prot.writeMessageEnd(); 2327 } 2328 2329 public List<TCell> getResult() throws IOError, org.apache.thrift.TException { 2330 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2331 throw new IllegalStateException("Method call not finished!"); 2332 } 2333 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2334 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2335 return (new Client(prot)).recv_getVer(); 2336 } 2337 } 2338 2339 public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler) throws org.apache.thrift.TException { 2340 checkReady(); 2341 getVerTs_call method_call = new getVerTs_call(tableName, row, column, timestamp, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport); 2342 this.___currentMethod = method_call; 2343 ___manager.call(method_call); 2344 } 2345 2346 public static class getVerTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2347 private ByteBuffer tableName; 2348 private ByteBuffer row; 2349 private ByteBuffer column; 2350 private long timestamp; 2351 private int numVersions; 2352 private Map<ByteBuffer,ByteBuffer> attributes; 2353 public getVerTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2354 super(client, protocolFactory, transport, resultHandler, false); 2355 this.tableName = tableName; 2356 this.row = row; 2357 this.column = column; 2358 this.timestamp = timestamp; 2359 this.numVersions = numVersions; 2360 this.attributes = attributes; 2361 } 2362 2363 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2364 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVerTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2365 getVerTs_args args = new getVerTs_args(); 2366 args.setTableName(tableName); 2367 args.setRow(row); 2368 args.setColumn(column); 2369 args.setTimestamp(timestamp); 2370 args.setNumVersions(numVersions); 2371 args.setAttributes(attributes); 2372 args.write(prot); 2373 prot.writeMessageEnd(); 2374 } 2375 2376 public List<TCell> getResult() throws IOError, org.apache.thrift.TException { 2377 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2378 throw new IllegalStateException("Method call not finished!"); 2379 } 2380 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2381 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2382 return (new Client(prot)).recv_getVerTs(); 2383 } 2384 } 2385 2386 public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler) throws org.apache.thrift.TException { 2387 checkReady(); 2388 getRow_call method_call = new getRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport); 2389 this.___currentMethod = method_call; 2390 ___manager.call(method_call); 2391 } 2392 2393 public static class getRow_call extends org.apache.thrift.async.TAsyncMethodCall { 2394 private ByteBuffer tableName; 2395 private ByteBuffer row; 2396 private Map<ByteBuffer,ByteBuffer> attributes; 2397 public getRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2398 super(client, protocolFactory, transport, resultHandler, false); 2399 this.tableName = tableName; 2400 this.row = row; 2401 this.attributes = attributes; 2402 } 2403 2404 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2405 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRow", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2406 getRow_args args = new getRow_args(); 2407 args.setTableName(tableName); 2408 args.setRow(row); 2409 args.setAttributes(attributes); 2410 args.write(prot); 2411 prot.writeMessageEnd(); 2412 } 2413 2414 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2415 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2416 throw new IllegalStateException("Method call not finished!"); 2417 } 2418 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2419 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2420 return (new Client(prot)).recv_getRow(); 2421 } 2422 } 2423 2424 public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException { 2425 checkReady(); 2426 getRowWithColumns_call method_call = new getRowWithColumns_call(tableName, row, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); 2427 this.___currentMethod = method_call; 2428 ___manager.call(method_call); 2429 } 2430 2431 public static class getRowWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall { 2432 private ByteBuffer tableName; 2433 private ByteBuffer row; 2434 private List<ByteBuffer> columns; 2435 private Map<ByteBuffer,ByteBuffer> attributes; 2436 public getRowWithColumns_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2437 super(client, protocolFactory, transport, resultHandler, false); 2438 this.tableName = tableName; 2439 this.row = row; 2440 this.columns = columns; 2441 this.attributes = attributes; 2442 } 2443 2444 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2445 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2446 getRowWithColumns_args args = new getRowWithColumns_args(); 2447 args.setTableName(tableName); 2448 args.setRow(row); 2449 args.setColumns(columns); 2450 args.setAttributes(attributes); 2451 args.write(prot); 2452 prot.writeMessageEnd(); 2453 } 2454 2455 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2456 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2457 throw new IllegalStateException("Method call not finished!"); 2458 } 2459 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2460 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2461 return (new Client(prot)).recv_getRowWithColumns(); 2462 } 2463 } 2464 2465 public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler) throws org.apache.thrift.TException { 2466 checkReady(); 2467 getRowTs_call method_call = new getRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2468 this.___currentMethod = method_call; 2469 ___manager.call(method_call); 2470 } 2471 2472 public static class getRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2473 private ByteBuffer tableName; 2474 private ByteBuffer row; 2475 private long timestamp; 2476 private Map<ByteBuffer,ByteBuffer> attributes; 2477 public getRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2478 super(client, protocolFactory, transport, resultHandler, false); 2479 this.tableName = tableName; 2480 this.row = row; 2481 this.timestamp = timestamp; 2482 this.attributes = attributes; 2483 } 2484 2485 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2486 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2487 getRowTs_args args = new getRowTs_args(); 2488 args.setTableName(tableName); 2489 args.setRow(row); 2490 args.setTimestamp(timestamp); 2491 args.setAttributes(attributes); 2492 args.write(prot); 2493 prot.writeMessageEnd(); 2494 } 2495 2496 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2497 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2498 throw new IllegalStateException("Method call not finished!"); 2499 } 2500 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2501 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2502 return (new Client(prot)).recv_getRowTs(); 2503 } 2504 } 2505 2506 public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException { 2507 checkReady(); 2508 getRowWithColumnsTs_call method_call = new getRowWithColumnsTs_call(tableName, row, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2509 this.___currentMethod = method_call; 2510 ___manager.call(method_call); 2511 } 2512 2513 public static class getRowWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2514 private ByteBuffer tableName; 2515 private ByteBuffer row; 2516 private List<ByteBuffer> columns; 2517 private long timestamp; 2518 private Map<ByteBuffer,ByteBuffer> attributes; 2519 public getRowWithColumnsTs_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2520 super(client, protocolFactory, transport, resultHandler, false); 2521 this.tableName = tableName; 2522 this.row = row; 2523 this.columns = columns; 2524 this.timestamp = timestamp; 2525 this.attributes = attributes; 2526 } 2527 2528 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2529 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2530 getRowWithColumnsTs_args args = new getRowWithColumnsTs_args(); 2531 args.setTableName(tableName); 2532 args.setRow(row); 2533 args.setColumns(columns); 2534 args.setTimestamp(timestamp); 2535 args.setAttributes(attributes); 2536 args.write(prot); 2537 prot.writeMessageEnd(); 2538 } 2539 2540 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2541 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2542 throw new IllegalStateException("Method call not finished!"); 2543 } 2544 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2545 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2546 return (new Client(prot)).recv_getRowWithColumnsTs(); 2547 } 2548 } 2549 2550 public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler) throws org.apache.thrift.TException { 2551 checkReady(); 2552 getRows_call method_call = new getRows_call(tableName, rows, attributes, resultHandler, this, ___protocolFactory, ___transport); 2553 this.___currentMethod = method_call; 2554 ___manager.call(method_call); 2555 } 2556 2557 public static class getRows_call extends org.apache.thrift.async.TAsyncMethodCall { 2558 private ByteBuffer tableName; 2559 private List<ByteBuffer> rows; 2560 private Map<ByteBuffer,ByteBuffer> attributes; 2561 public getRows_call(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2562 super(client, protocolFactory, transport, resultHandler, false); 2563 this.tableName = tableName; 2564 this.rows = rows; 2565 this.attributes = attributes; 2566 } 2567 2568 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2569 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRows", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2570 getRows_args args = new getRows_args(); 2571 args.setTableName(tableName); 2572 args.setRows(rows); 2573 args.setAttributes(attributes); 2574 args.write(prot); 2575 prot.writeMessageEnd(); 2576 } 2577 2578 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2579 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2580 throw new IllegalStateException("Method call not finished!"); 2581 } 2582 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2583 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2584 return (new Client(prot)).recv_getRows(); 2585 } 2586 } 2587 2588 public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException { 2589 checkReady(); 2590 getRowsWithColumns_call method_call = new getRowsWithColumns_call(tableName, rows, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); 2591 this.___currentMethod = method_call; 2592 ___manager.call(method_call); 2593 } 2594 2595 public static class getRowsWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall { 2596 private ByteBuffer tableName; 2597 private List<ByteBuffer> rows; 2598 private List<ByteBuffer> columns; 2599 private Map<ByteBuffer,ByteBuffer> attributes; 2600 public getRowsWithColumns_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2601 super(client, protocolFactory, transport, resultHandler, false); 2602 this.tableName = tableName; 2603 this.rows = rows; 2604 this.columns = columns; 2605 this.attributes = attributes; 2606 } 2607 2608 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2609 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2610 getRowsWithColumns_args args = new getRowsWithColumns_args(); 2611 args.setTableName(tableName); 2612 args.setRows(rows); 2613 args.setColumns(columns); 2614 args.setAttributes(attributes); 2615 args.write(prot); 2616 prot.writeMessageEnd(); 2617 } 2618 2619 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2620 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2621 throw new IllegalStateException("Method call not finished!"); 2622 } 2623 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2624 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2625 return (new Client(prot)).recv_getRowsWithColumns(); 2626 } 2627 } 2628 2629 public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler) throws org.apache.thrift.TException { 2630 checkReady(); 2631 getRowsTs_call method_call = new getRowsTs_call(tableName, rows, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2632 this.___currentMethod = method_call; 2633 ___manager.call(method_call); 2634 } 2635 2636 public static class getRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2637 private ByteBuffer tableName; 2638 private List<ByteBuffer> rows; 2639 private long timestamp; 2640 private Map<ByteBuffer,ByteBuffer> attributes; 2641 public getRowsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2642 super(client, protocolFactory, transport, resultHandler, false); 2643 this.tableName = tableName; 2644 this.rows = rows; 2645 this.timestamp = timestamp; 2646 this.attributes = attributes; 2647 } 2648 2649 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2650 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2651 getRowsTs_args args = new getRowsTs_args(); 2652 args.setTableName(tableName); 2653 args.setRows(rows); 2654 args.setTimestamp(timestamp); 2655 args.setAttributes(attributes); 2656 args.write(prot); 2657 prot.writeMessageEnd(); 2658 } 2659 2660 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2661 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2662 throw new IllegalStateException("Method call not finished!"); 2663 } 2664 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2665 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2666 return (new Client(prot)).recv_getRowsTs(); 2667 } 2668 } 2669 2670 public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException { 2671 checkReady(); 2672 getRowsWithColumnsTs_call method_call = new getRowsWithColumnsTs_call(tableName, rows, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2673 this.___currentMethod = method_call; 2674 ___manager.call(method_call); 2675 } 2676 2677 public static class getRowsWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2678 private ByteBuffer tableName; 2679 private List<ByteBuffer> rows; 2680 private List<ByteBuffer> columns; 2681 private long timestamp; 2682 private Map<ByteBuffer,ByteBuffer> attributes; 2683 public getRowsWithColumnsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2684 super(client, protocolFactory, transport, resultHandler, false); 2685 this.tableName = tableName; 2686 this.rows = rows; 2687 this.columns = columns; 2688 this.timestamp = timestamp; 2689 this.attributes = attributes; 2690 } 2691 2692 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2693 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2694 getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args(); 2695 args.setTableName(tableName); 2696 args.setRows(rows); 2697 args.setColumns(columns); 2698 args.setTimestamp(timestamp); 2699 args.setAttributes(attributes); 2700 args.write(prot); 2701 prot.writeMessageEnd(); 2702 } 2703 2704 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException { 2705 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2706 throw new IllegalStateException("Method call not finished!"); 2707 } 2708 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2709 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2710 return (new Client(prot)).recv_getRowsWithColumnsTs(); 2711 } 2712 } 2713 2714 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler) throws org.apache.thrift.TException { 2715 checkReady(); 2716 mutateRow_call method_call = new mutateRow_call(tableName, row, mutations, attributes, resultHandler, this, ___protocolFactory, ___transport); 2717 this.___currentMethod = method_call; 2718 ___manager.call(method_call); 2719 } 2720 2721 public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall { 2722 private ByteBuffer tableName; 2723 private ByteBuffer row; 2724 private List<Mutation> mutations; 2725 private Map<ByteBuffer,ByteBuffer> attributes; 2726 public mutateRow_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2727 super(client, protocolFactory, transport, resultHandler, false); 2728 this.tableName = tableName; 2729 this.row = row; 2730 this.mutations = mutations; 2731 this.attributes = attributes; 2732 } 2733 2734 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2735 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRow", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2736 mutateRow_args args = new mutateRow_args(); 2737 args.setTableName(tableName); 2738 args.setRow(row); 2739 args.setMutations(mutations); 2740 args.setAttributes(attributes); 2741 args.write(prot); 2742 prot.writeMessageEnd(); 2743 } 2744 2745 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 2746 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2747 throw new IllegalStateException("Method call not finished!"); 2748 } 2749 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2750 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2751 (new Client(prot)).recv_mutateRow(); 2752 } 2753 } 2754 2755 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler) throws org.apache.thrift.TException { 2756 checkReady(); 2757 mutateRowTs_call method_call = new mutateRowTs_call(tableName, row, mutations, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2758 this.___currentMethod = method_call; 2759 ___manager.call(method_call); 2760 } 2761 2762 public static class mutateRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2763 private ByteBuffer tableName; 2764 private ByteBuffer row; 2765 private List<Mutation> mutations; 2766 private long timestamp; 2767 private Map<ByteBuffer,ByteBuffer> attributes; 2768 public mutateRowTs_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2769 super(client, protocolFactory, transport, resultHandler, false); 2770 this.tableName = tableName; 2771 this.row = row; 2772 this.mutations = mutations; 2773 this.timestamp = timestamp; 2774 this.attributes = attributes; 2775 } 2776 2777 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2778 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2779 mutateRowTs_args args = new mutateRowTs_args(); 2780 args.setTableName(tableName); 2781 args.setRow(row); 2782 args.setMutations(mutations); 2783 args.setTimestamp(timestamp); 2784 args.setAttributes(attributes); 2785 args.write(prot); 2786 prot.writeMessageEnd(); 2787 } 2788 2789 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 2790 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2791 throw new IllegalStateException("Method call not finished!"); 2792 } 2793 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2794 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2795 (new Client(prot)).recv_mutateRowTs(); 2796 } 2797 } 2798 2799 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler) throws org.apache.thrift.TException { 2800 checkReady(); 2801 mutateRows_call method_call = new mutateRows_call(tableName, rowBatches, attributes, resultHandler, this, ___protocolFactory, ___transport); 2802 this.___currentMethod = method_call; 2803 ___manager.call(method_call); 2804 } 2805 2806 public static class mutateRows_call extends org.apache.thrift.async.TAsyncMethodCall { 2807 private ByteBuffer tableName; 2808 private List<BatchMutation> rowBatches; 2809 private Map<ByteBuffer,ByteBuffer> attributes; 2810 public mutateRows_call(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2811 super(client, protocolFactory, transport, resultHandler, false); 2812 this.tableName = tableName; 2813 this.rowBatches = rowBatches; 2814 this.attributes = attributes; 2815 } 2816 2817 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2818 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRows", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2819 mutateRows_args args = new mutateRows_args(); 2820 args.setTableName(tableName); 2821 args.setRowBatches(rowBatches); 2822 args.setAttributes(attributes); 2823 args.write(prot); 2824 prot.writeMessageEnd(); 2825 } 2826 2827 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 2828 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2829 throw new IllegalStateException("Method call not finished!"); 2830 } 2831 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2832 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2833 (new Client(prot)).recv_mutateRows(); 2834 } 2835 } 2836 2837 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException { 2838 checkReady(); 2839 mutateRowsTs_call method_call = new mutateRowsTs_call(tableName, rowBatches, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2840 this.___currentMethod = method_call; 2841 ___manager.call(method_call); 2842 } 2843 2844 public static class mutateRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2845 private ByteBuffer tableName; 2846 private List<BatchMutation> rowBatches; 2847 private long timestamp; 2848 private Map<ByteBuffer,ByteBuffer> attributes; 2849 public mutateRowsTs_call(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2850 super(client, protocolFactory, transport, resultHandler, false); 2851 this.tableName = tableName; 2852 this.rowBatches = rowBatches; 2853 this.timestamp = timestamp; 2854 this.attributes = attributes; 2855 } 2856 2857 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2858 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2859 mutateRowsTs_args args = new mutateRowsTs_args(); 2860 args.setTableName(tableName); 2861 args.setRowBatches(rowBatches); 2862 args.setTimestamp(timestamp); 2863 args.setAttributes(attributes); 2864 args.write(prot); 2865 prot.writeMessageEnd(); 2866 } 2867 2868 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 2869 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2870 throw new IllegalStateException("Method call not finished!"); 2871 } 2872 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2873 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2874 (new Client(prot)).recv_mutateRowsTs(); 2875 } 2876 } 2877 2878 public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler) throws org.apache.thrift.TException { 2879 checkReady(); 2880 atomicIncrement_call method_call = new atomicIncrement_call(tableName, row, column, value, resultHandler, this, ___protocolFactory, ___transport); 2881 this.___currentMethod = method_call; 2882 ___manager.call(method_call); 2883 } 2884 2885 public static class atomicIncrement_call extends org.apache.thrift.async.TAsyncMethodCall { 2886 private ByteBuffer tableName; 2887 private ByteBuffer row; 2888 private ByteBuffer column; 2889 private long value; 2890 public atomicIncrement_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2891 super(client, protocolFactory, transport, resultHandler, false); 2892 this.tableName = tableName; 2893 this.row = row; 2894 this.column = column; 2895 this.value = value; 2896 } 2897 2898 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2899 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("atomicIncrement", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2900 atomicIncrement_args args = new atomicIncrement_args(); 2901 args.setTableName(tableName); 2902 args.setRow(row); 2903 args.setColumn(column); 2904 args.setValue(value); 2905 args.write(prot); 2906 prot.writeMessageEnd(); 2907 } 2908 2909 public long getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 2910 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2911 throw new IllegalStateException("Method call not finished!"); 2912 } 2913 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2914 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2915 return (new Client(prot)).recv_atomicIncrement(); 2916 } 2917 } 2918 2919 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler) throws org.apache.thrift.TException { 2920 checkReady(); 2921 deleteAll_call method_call = new deleteAll_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport); 2922 this.___currentMethod = method_call; 2923 ___manager.call(method_call); 2924 } 2925 2926 public static class deleteAll_call extends org.apache.thrift.async.TAsyncMethodCall { 2927 private ByteBuffer tableName; 2928 private ByteBuffer row; 2929 private ByteBuffer column; 2930 private Map<ByteBuffer,ByteBuffer> attributes; 2931 public deleteAll_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2932 super(client, protocolFactory, transport, resultHandler, false); 2933 this.tableName = tableName; 2934 this.row = row; 2935 this.column = column; 2936 this.attributes = attributes; 2937 } 2938 2939 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2940 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAll", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2941 deleteAll_args args = new deleteAll_args(); 2942 args.setTableName(tableName); 2943 args.setRow(row); 2944 args.setColumn(column); 2945 args.setAttributes(attributes); 2946 args.write(prot); 2947 prot.writeMessageEnd(); 2948 } 2949 2950 public void getResult() throws IOError, org.apache.thrift.TException { 2951 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2952 throw new IllegalStateException("Method call not finished!"); 2953 } 2954 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2955 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 2956 (new Client(prot)).recv_deleteAll(); 2957 } 2958 } 2959 2960 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler) throws org.apache.thrift.TException { 2961 checkReady(); 2962 deleteAllTs_call method_call = new deleteAllTs_call(tableName, row, column, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 2963 this.___currentMethod = method_call; 2964 ___manager.call(method_call); 2965 } 2966 2967 public static class deleteAllTs_call extends org.apache.thrift.async.TAsyncMethodCall { 2968 private ByteBuffer tableName; 2969 private ByteBuffer row; 2970 private ByteBuffer column; 2971 private long timestamp; 2972 private Map<ByteBuffer,ByteBuffer> attributes; 2973 public deleteAllTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 2974 super(client, protocolFactory, transport, resultHandler, false); 2975 this.tableName = tableName; 2976 this.row = row; 2977 this.column = column; 2978 this.timestamp = timestamp; 2979 this.attributes = attributes; 2980 } 2981 2982 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 2983 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 2984 deleteAllTs_args args = new deleteAllTs_args(); 2985 args.setTableName(tableName); 2986 args.setRow(row); 2987 args.setColumn(column); 2988 args.setTimestamp(timestamp); 2989 args.setAttributes(attributes); 2990 args.write(prot); 2991 prot.writeMessageEnd(); 2992 } 2993 2994 public void getResult() throws IOError, org.apache.thrift.TException { 2995 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 2996 throw new IllegalStateException("Method call not finished!"); 2997 } 2998 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 2999 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3000 (new Client(prot)).recv_deleteAllTs(); 3001 } 3002 } 3003 3004 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler) throws org.apache.thrift.TException { 3005 checkReady(); 3006 deleteAllRow_call method_call = new deleteAllRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport); 3007 this.___currentMethod = method_call; 3008 ___manager.call(method_call); 3009 } 3010 3011 public static class deleteAllRow_call extends org.apache.thrift.async.TAsyncMethodCall { 3012 private ByteBuffer tableName; 3013 private ByteBuffer row; 3014 private Map<ByteBuffer,ByteBuffer> attributes; 3015 public deleteAllRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3016 super(client, protocolFactory, transport, resultHandler, false); 3017 this.tableName = tableName; 3018 this.row = row; 3019 this.attributes = attributes; 3020 } 3021 3022 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3023 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRow", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3024 deleteAllRow_args args = new deleteAllRow_args(); 3025 args.setTableName(tableName); 3026 args.setRow(row); 3027 args.setAttributes(attributes); 3028 args.write(prot); 3029 prot.writeMessageEnd(); 3030 } 3031 3032 public void getResult() throws IOError, org.apache.thrift.TException { 3033 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3034 throw new IllegalStateException("Method call not finished!"); 3035 } 3036 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3037 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3038 (new Client(prot)).recv_deleteAllRow(); 3039 } 3040 } 3041 3042 public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler) throws org.apache.thrift.TException { 3043 checkReady(); 3044 increment_call method_call = new increment_call(increment, resultHandler, this, ___protocolFactory, ___transport); 3045 this.___currentMethod = method_call; 3046 ___manager.call(method_call); 3047 } 3048 3049 public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall { 3050 private TIncrement increment; 3051 public increment_call(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3052 super(client, protocolFactory, transport, resultHandler, false); 3053 this.increment = increment; 3054 } 3055 3056 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3057 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increment", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3058 increment_args args = new increment_args(); 3059 args.setIncrement(increment); 3060 args.write(prot); 3061 prot.writeMessageEnd(); 3062 } 3063 3064 public void getResult() throws IOError, org.apache.thrift.TException { 3065 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3066 throw new IllegalStateException("Method call not finished!"); 3067 } 3068 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3069 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3070 (new Client(prot)).recv_increment(); 3071 } 3072 } 3073 3074 public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler) throws org.apache.thrift.TException { 3075 checkReady(); 3076 incrementRows_call method_call = new incrementRows_call(increments, resultHandler, this, ___protocolFactory, ___transport); 3077 this.___currentMethod = method_call; 3078 ___manager.call(method_call); 3079 } 3080 3081 public static class incrementRows_call extends org.apache.thrift.async.TAsyncMethodCall { 3082 private List<TIncrement> increments; 3083 public incrementRows_call(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3084 super(client, protocolFactory, transport, resultHandler, false); 3085 this.increments = increments; 3086 } 3087 3088 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3089 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("incrementRows", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3090 incrementRows_args args = new incrementRows_args(); 3091 args.setIncrements(increments); 3092 args.write(prot); 3093 prot.writeMessageEnd(); 3094 } 3095 3096 public void getResult() throws IOError, org.apache.thrift.TException { 3097 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3098 throw new IllegalStateException("Method call not finished!"); 3099 } 3100 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3101 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3102 (new Client(prot)).recv_incrementRows(); 3103 } 3104 } 3105 3106 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException { 3107 checkReady(); 3108 deleteAllRowTs_call method_call = new deleteAllRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 3109 this.___currentMethod = method_call; 3110 ___manager.call(method_call); 3111 } 3112 3113 public static class deleteAllRowTs_call extends org.apache.thrift.async.TAsyncMethodCall { 3114 private ByteBuffer tableName; 3115 private ByteBuffer row; 3116 private long timestamp; 3117 private Map<ByteBuffer,ByteBuffer> attributes; 3118 public deleteAllRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3119 super(client, protocolFactory, transport, resultHandler, false); 3120 this.tableName = tableName; 3121 this.row = row; 3122 this.timestamp = timestamp; 3123 this.attributes = attributes; 3124 } 3125 3126 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3127 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3128 deleteAllRowTs_args args = new deleteAllRowTs_args(); 3129 args.setTableName(tableName); 3130 args.setRow(row); 3131 args.setTimestamp(timestamp); 3132 args.setAttributes(attributes); 3133 args.write(prot); 3134 prot.writeMessageEnd(); 3135 } 3136 3137 public void getResult() throws IOError, org.apache.thrift.TException { 3138 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3139 throw new IllegalStateException("Method call not finished!"); 3140 } 3141 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3142 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3143 (new Client(prot)).recv_deleteAllRowTs(); 3144 } 3145 } 3146 3147 public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException { 3148 checkReady(); 3149 scannerOpenWithScan_call method_call = new scannerOpenWithScan_call(tableName, scan, attributes, resultHandler, this, ___protocolFactory, ___transport); 3150 this.___currentMethod = method_call; 3151 ___manager.call(method_call); 3152 } 3153 3154 public static class scannerOpenWithScan_call extends org.apache.thrift.async.TAsyncMethodCall { 3155 private ByteBuffer tableName; 3156 private TScan scan; 3157 private Map<ByteBuffer,ByteBuffer> attributes; 3158 public scannerOpenWithScan_call(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3159 super(client, protocolFactory, transport, resultHandler, false); 3160 this.tableName = tableName; 3161 this.scan = scan; 3162 this.attributes = attributes; 3163 } 3164 3165 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3166 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithScan", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3167 scannerOpenWithScan_args args = new scannerOpenWithScan_args(); 3168 args.setTableName(tableName); 3169 args.setScan(scan); 3170 args.setAttributes(attributes); 3171 args.write(prot); 3172 prot.writeMessageEnd(); 3173 } 3174 3175 public int getResult() throws IOError, org.apache.thrift.TException { 3176 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3177 throw new IllegalStateException("Method call not finished!"); 3178 } 3179 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3180 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3181 return (new Client(prot)).recv_scannerOpenWithScan(); 3182 } 3183 } 3184 3185 public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler) throws org.apache.thrift.TException { 3186 checkReady(); 3187 scannerOpen_call method_call = new scannerOpen_call(tableName, startRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); 3188 this.___currentMethod = method_call; 3189 ___manager.call(method_call); 3190 } 3191 3192 public static class scannerOpen_call extends org.apache.thrift.async.TAsyncMethodCall { 3193 private ByteBuffer tableName; 3194 private ByteBuffer startRow; 3195 private List<ByteBuffer> columns; 3196 private Map<ByteBuffer,ByteBuffer> attributes; 3197 public scannerOpen_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3198 super(client, protocolFactory, transport, resultHandler, false); 3199 this.tableName = tableName; 3200 this.startRow = startRow; 3201 this.columns = columns; 3202 this.attributes = attributes; 3203 } 3204 3205 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3206 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpen", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3207 scannerOpen_args args = new scannerOpen_args(); 3208 args.setTableName(tableName); 3209 args.setStartRow(startRow); 3210 args.setColumns(columns); 3211 args.setAttributes(attributes); 3212 args.write(prot); 3213 prot.writeMessageEnd(); 3214 } 3215 3216 public int getResult() throws IOError, org.apache.thrift.TException { 3217 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3218 throw new IllegalStateException("Method call not finished!"); 3219 } 3220 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3221 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3222 return (new Client(prot)).recv_scannerOpen(); 3223 } 3224 } 3225 3226 public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException { 3227 checkReady(); 3228 scannerOpenWithStop_call method_call = new scannerOpenWithStop_call(tableName, startRow, stopRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); 3229 this.___currentMethod = method_call; 3230 ___manager.call(method_call); 3231 } 3232 3233 public static class scannerOpenWithStop_call extends org.apache.thrift.async.TAsyncMethodCall { 3234 private ByteBuffer tableName; 3235 private ByteBuffer startRow; 3236 private ByteBuffer stopRow; 3237 private List<ByteBuffer> columns; 3238 private Map<ByteBuffer,ByteBuffer> attributes; 3239 public scannerOpenWithStop_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3240 super(client, protocolFactory, transport, resultHandler, false); 3241 this.tableName = tableName; 3242 this.startRow = startRow; 3243 this.stopRow = stopRow; 3244 this.columns = columns; 3245 this.attributes = attributes; 3246 } 3247 3248 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3249 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStop", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3250 scannerOpenWithStop_args args = new scannerOpenWithStop_args(); 3251 args.setTableName(tableName); 3252 args.setStartRow(startRow); 3253 args.setStopRow(stopRow); 3254 args.setColumns(columns); 3255 args.setAttributes(attributes); 3256 args.write(prot); 3257 prot.writeMessageEnd(); 3258 } 3259 3260 public int getResult() throws IOError, org.apache.thrift.TException { 3261 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3262 throw new IllegalStateException("Method call not finished!"); 3263 } 3264 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3265 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3266 return (new Client(prot)).recv_scannerOpenWithStop(); 3267 } 3268 } 3269 3270 public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException { 3271 checkReady(); 3272 scannerOpenWithPrefix_call method_call = new scannerOpenWithPrefix_call(tableName, startAndPrefix, columns, attributes, resultHandler, this, ___protocolFactory, ___transport); 3273 this.___currentMethod = method_call; 3274 ___manager.call(method_call); 3275 } 3276 3277 public static class scannerOpenWithPrefix_call extends org.apache.thrift.async.TAsyncMethodCall { 3278 private ByteBuffer tableName; 3279 private ByteBuffer startAndPrefix; 3280 private List<ByteBuffer> columns; 3281 private Map<ByteBuffer,ByteBuffer> attributes; 3282 public scannerOpenWithPrefix_call(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3283 super(client, protocolFactory, transport, resultHandler, false); 3284 this.tableName = tableName; 3285 this.startAndPrefix = startAndPrefix; 3286 this.columns = columns; 3287 this.attributes = attributes; 3288 } 3289 3290 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3291 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithPrefix", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3292 scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args(); 3293 args.setTableName(tableName); 3294 args.setStartAndPrefix(startAndPrefix); 3295 args.setColumns(columns); 3296 args.setAttributes(attributes); 3297 args.write(prot); 3298 prot.writeMessageEnd(); 3299 } 3300 3301 public int getResult() throws IOError, org.apache.thrift.TException { 3302 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3303 throw new IllegalStateException("Method call not finished!"); 3304 } 3305 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3306 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3307 return (new Client(prot)).recv_scannerOpenWithPrefix(); 3308 } 3309 } 3310 3311 public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException { 3312 checkReady(); 3313 scannerOpenTs_call method_call = new scannerOpenTs_call(tableName, startRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 3314 this.___currentMethod = method_call; 3315 ___manager.call(method_call); 3316 } 3317 3318 public static class scannerOpenTs_call extends org.apache.thrift.async.TAsyncMethodCall { 3319 private ByteBuffer tableName; 3320 private ByteBuffer startRow; 3321 private List<ByteBuffer> columns; 3322 private long timestamp; 3323 private Map<ByteBuffer,ByteBuffer> attributes; 3324 public scannerOpenTs_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3325 super(client, protocolFactory, transport, resultHandler, false); 3326 this.tableName = tableName; 3327 this.startRow = startRow; 3328 this.columns = columns; 3329 this.timestamp = timestamp; 3330 this.attributes = attributes; 3331 } 3332 3333 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3334 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3335 scannerOpenTs_args args = new scannerOpenTs_args(); 3336 args.setTableName(tableName); 3337 args.setStartRow(startRow); 3338 args.setColumns(columns); 3339 args.setTimestamp(timestamp); 3340 args.setAttributes(attributes); 3341 args.write(prot); 3342 prot.writeMessageEnd(); 3343 } 3344 3345 public int getResult() throws IOError, org.apache.thrift.TException { 3346 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3347 throw new IllegalStateException("Method call not finished!"); 3348 } 3349 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3350 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3351 return (new Client(prot)).recv_scannerOpenTs(); 3352 } 3353 } 3354 3355 public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException { 3356 checkReady(); 3357 scannerOpenWithStopTs_call method_call = new scannerOpenWithStopTs_call(tableName, startRow, stopRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport); 3358 this.___currentMethod = method_call; 3359 ___manager.call(method_call); 3360 } 3361 3362 public static class scannerOpenWithStopTs_call extends org.apache.thrift.async.TAsyncMethodCall { 3363 private ByteBuffer tableName; 3364 private ByteBuffer startRow; 3365 private ByteBuffer stopRow; 3366 private List<ByteBuffer> columns; 3367 private long timestamp; 3368 private Map<ByteBuffer,ByteBuffer> attributes; 3369 public scannerOpenWithStopTs_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3370 super(client, protocolFactory, transport, resultHandler, false); 3371 this.tableName = tableName; 3372 this.startRow = startRow; 3373 this.stopRow = stopRow; 3374 this.columns = columns; 3375 this.timestamp = timestamp; 3376 this.attributes = attributes; 3377 } 3378 3379 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3380 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStopTs", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3381 scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args(); 3382 args.setTableName(tableName); 3383 args.setStartRow(startRow); 3384 args.setStopRow(stopRow); 3385 args.setColumns(columns); 3386 args.setTimestamp(timestamp); 3387 args.setAttributes(attributes); 3388 args.write(prot); 3389 prot.writeMessageEnd(); 3390 } 3391 3392 public int getResult() throws IOError, org.apache.thrift.TException { 3393 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3394 throw new IllegalStateException("Method call not finished!"); 3395 } 3396 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3397 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3398 return (new Client(prot)).recv_scannerOpenWithStopTs(); 3399 } 3400 } 3401 3402 public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler) throws org.apache.thrift.TException { 3403 checkReady(); 3404 scannerGet_call method_call = new scannerGet_call(id, resultHandler, this, ___protocolFactory, ___transport); 3405 this.___currentMethod = method_call; 3406 ___manager.call(method_call); 3407 } 3408 3409 public static class scannerGet_call extends org.apache.thrift.async.TAsyncMethodCall { 3410 private int id; 3411 public scannerGet_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3412 super(client, protocolFactory, transport, resultHandler, false); 3413 this.id = id; 3414 } 3415 3416 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3417 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGet", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3418 scannerGet_args args = new scannerGet_args(); 3419 args.setId(id); 3420 args.write(prot); 3421 prot.writeMessageEnd(); 3422 } 3423 3424 public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 3425 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3426 throw new IllegalStateException("Method call not finished!"); 3427 } 3428 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3429 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3430 return (new Client(prot)).recv_scannerGet(); 3431 } 3432 } 3433 3434 public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler) throws org.apache.thrift.TException { 3435 checkReady(); 3436 scannerGetList_call method_call = new scannerGetList_call(id, nbRows, resultHandler, this, ___protocolFactory, ___transport); 3437 this.___currentMethod = method_call; 3438 ___manager.call(method_call); 3439 } 3440 3441 public static class scannerGetList_call extends org.apache.thrift.async.TAsyncMethodCall { 3442 private int id; 3443 private int nbRows; 3444 public scannerGetList_call(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3445 super(client, protocolFactory, transport, resultHandler, false); 3446 this.id = id; 3447 this.nbRows = nbRows; 3448 } 3449 3450 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3451 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGetList", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3452 scannerGetList_args args = new scannerGetList_args(); 3453 args.setId(id); 3454 args.setNbRows(nbRows); 3455 args.write(prot); 3456 prot.writeMessageEnd(); 3457 } 3458 3459 public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 3460 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3461 throw new IllegalStateException("Method call not finished!"); 3462 } 3463 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3464 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3465 return (new Client(prot)).recv_scannerGetList(); 3466 } 3467 } 3468 3469 public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler) throws org.apache.thrift.TException { 3470 checkReady(); 3471 scannerClose_call method_call = new scannerClose_call(id, resultHandler, this, ___protocolFactory, ___transport); 3472 this.___currentMethod = method_call; 3473 ___manager.call(method_call); 3474 } 3475 3476 public static class scannerClose_call extends org.apache.thrift.async.TAsyncMethodCall { 3477 private int id; 3478 public scannerClose_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3479 super(client, protocolFactory, transport, resultHandler, false); 3480 this.id = id; 3481 } 3482 3483 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3484 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerClose", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3485 scannerClose_args args = new scannerClose_args(); 3486 args.setId(id); 3487 args.write(prot); 3488 prot.writeMessageEnd(); 3489 } 3490 3491 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException { 3492 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3493 throw new IllegalStateException("Method call not finished!"); 3494 } 3495 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3496 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3497 (new Client(prot)).recv_scannerClose(); 3498 } 3499 } 3500 3501 public void getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<getRowOrBefore_call> resultHandler) throws org.apache.thrift.TException { 3502 checkReady(); 3503 getRowOrBefore_call method_call = new getRowOrBefore_call(tableName, row, family, resultHandler, this, ___protocolFactory, ___transport); 3504 this.___currentMethod = method_call; 3505 ___manager.call(method_call); 3506 } 3507 3508 public static class getRowOrBefore_call extends org.apache.thrift.async.TAsyncMethodCall { 3509 private ByteBuffer tableName; 3510 private ByteBuffer row; 3511 private ByteBuffer family; 3512 public getRowOrBefore_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<getRowOrBefore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3513 super(client, protocolFactory, transport, resultHandler, false); 3514 this.tableName = tableName; 3515 this.row = row; 3516 this.family = family; 3517 } 3518 3519 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3520 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowOrBefore", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3521 getRowOrBefore_args args = new getRowOrBefore_args(); 3522 args.setTableName(tableName); 3523 args.setRow(row); 3524 args.setFamily(family); 3525 args.write(prot); 3526 prot.writeMessageEnd(); 3527 } 3528 3529 public List<TCell> getResult() throws IOError, org.apache.thrift.TException { 3530 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3531 throw new IllegalStateException("Method call not finished!"); 3532 } 3533 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3534 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3535 return (new Client(prot)).recv_getRowOrBefore(); 3536 } 3537 } 3538 3539 public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler) throws org.apache.thrift.TException { 3540 checkReady(); 3541 getRegionInfo_call method_call = new getRegionInfo_call(row, resultHandler, this, ___protocolFactory, ___transport); 3542 this.___currentMethod = method_call; 3543 ___manager.call(method_call); 3544 } 3545 3546 public static class getRegionInfo_call extends org.apache.thrift.async.TAsyncMethodCall { 3547 private ByteBuffer row; 3548 public getRegionInfo_call(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { 3549 super(client, protocolFactory, transport, resultHandler, false); 3550 this.row = row; 3551 } 3552 3553 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { 3554 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRegionInfo", org.apache.thrift.protocol.TMessageType.CALL, 0)); 3555 getRegionInfo_args args = new getRegionInfo_args(); 3556 args.setRow(row); 3557 args.write(prot); 3558 prot.writeMessageEnd(); 3559 } 3560 3561 public TRegionInfo getResult() throws IOError, org.apache.thrift.TException { 3562 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { 3563 throw new IllegalStateException("Method call not finished!"); 3564 } 3565 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); 3566 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); 3567 return (new Client(prot)).recv_getRegionInfo(); 3568 } 3569 } 3570 3571 } 3572 3573 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor { 3574 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName()); 3575 public Processor(I iface) { 3576 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>())); 3577 } 3578 3579 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { 3580 super(iface, getProcessMap(processMap)); 3581 } 3582 3583 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) { 3584 processMap.put("enableTable", new enableTable()); 3585 processMap.put("disableTable", new disableTable()); 3586 processMap.put("isTableEnabled", new isTableEnabled()); 3587 processMap.put("compact", new compact()); 3588 processMap.put("majorCompact", new majorCompact()); 3589 processMap.put("getTableNames", new getTableNames()); 3590 processMap.put("getColumnDescriptors", new getColumnDescriptors()); 3591 processMap.put("getTableRegions", new getTableRegions()); 3592 processMap.put("createTable", new createTable()); 3593 processMap.put("deleteTable", new deleteTable()); 3594 processMap.put("get", new get()); 3595 processMap.put("getVer", new getVer()); 3596 processMap.put("getVerTs", new getVerTs()); 3597 processMap.put("getRow", new getRow()); 3598 processMap.put("getRowWithColumns", new getRowWithColumns()); 3599 processMap.put("getRowTs", new getRowTs()); 3600 processMap.put("getRowWithColumnsTs", new getRowWithColumnsTs()); 3601 processMap.put("getRows", new getRows()); 3602 processMap.put("getRowsWithColumns", new getRowsWithColumns()); 3603 processMap.put("getRowsTs", new getRowsTs()); 3604 processMap.put("getRowsWithColumnsTs", new getRowsWithColumnsTs()); 3605 processMap.put("mutateRow", new mutateRow()); 3606 processMap.put("mutateRowTs", new mutateRowTs()); 3607 processMap.put("mutateRows", new mutateRows()); 3608 processMap.put("mutateRowsTs", new mutateRowsTs()); 3609 processMap.put("atomicIncrement", new atomicIncrement()); 3610 processMap.put("deleteAll", new deleteAll()); 3611 processMap.put("deleteAllTs", new deleteAllTs()); 3612 processMap.put("deleteAllRow", new deleteAllRow()); 3613 processMap.put("increment", new increment()); 3614 processMap.put("incrementRows", new incrementRows()); 3615 processMap.put("deleteAllRowTs", new deleteAllRowTs()); 3616 processMap.put("scannerOpenWithScan", new scannerOpenWithScan()); 3617 processMap.put("scannerOpen", new scannerOpen()); 3618 processMap.put("scannerOpenWithStop", new scannerOpenWithStop()); 3619 processMap.put("scannerOpenWithPrefix", new scannerOpenWithPrefix()); 3620 processMap.put("scannerOpenTs", new scannerOpenTs()); 3621 processMap.put("scannerOpenWithStopTs", new scannerOpenWithStopTs()); 3622 processMap.put("scannerGet", new scannerGet()); 3623 processMap.put("scannerGetList", new scannerGetList()); 3624 processMap.put("scannerClose", new scannerClose()); 3625 processMap.put("getRowOrBefore", new getRowOrBefore()); 3626 processMap.put("getRegionInfo", new getRegionInfo()); 3627 return processMap; 3628 } 3629 3630 private static class enableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableTable_args> { 3631 public enableTable() { 3632 super("enableTable"); 3633 } 3634 3635 protected enableTable_args getEmptyArgsInstance() { 3636 return new enableTable_args(); 3637 } 3638 3639 protected enableTable_result getResult(I iface, enableTable_args args) throws org.apache.thrift.TException { 3640 enableTable_result result = new enableTable_result(); 3641 try { 3642 iface.enableTable(args.tableName); 3643 } catch (IOError io) { 3644 result.io = io; 3645 } 3646 return result; 3647 } 3648 } 3649 3650 private static class disableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableTable_args> { 3651 public disableTable() { 3652 super("disableTable"); 3653 } 3654 3655 protected disableTable_args getEmptyArgsInstance() { 3656 return new disableTable_args(); 3657 } 3658 3659 protected disableTable_result getResult(I iface, disableTable_args args) throws org.apache.thrift.TException { 3660 disableTable_result result = new disableTable_result(); 3661 try { 3662 iface.disableTable(args.tableName); 3663 } catch (IOError io) { 3664 result.io = io; 3665 } 3666 return result; 3667 } 3668 } 3669 3670 private static class isTableEnabled<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isTableEnabled_args> { 3671 public isTableEnabled() { 3672 super("isTableEnabled"); 3673 } 3674 3675 protected isTableEnabled_args getEmptyArgsInstance() { 3676 return new isTableEnabled_args(); 3677 } 3678 3679 protected isTableEnabled_result getResult(I iface, isTableEnabled_args args) throws org.apache.thrift.TException { 3680 isTableEnabled_result result = new isTableEnabled_result(); 3681 try { 3682 result.success = iface.isTableEnabled(args.tableName); 3683 result.setSuccessIsSet(true); 3684 } catch (IOError io) { 3685 result.io = io; 3686 } 3687 return result; 3688 } 3689 } 3690 3691 private static class compact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, compact_args> { 3692 public compact() { 3693 super("compact"); 3694 } 3695 3696 protected compact_args getEmptyArgsInstance() { 3697 return new compact_args(); 3698 } 3699 3700 protected compact_result getResult(I iface, compact_args args) throws org.apache.thrift.TException { 3701 compact_result result = new compact_result(); 3702 try { 3703 iface.compact(args.tableNameOrRegionName); 3704 } catch (IOError io) { 3705 result.io = io; 3706 } 3707 return result; 3708 } 3709 } 3710 3711 private static class majorCompact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, majorCompact_args> { 3712 public majorCompact() { 3713 super("majorCompact"); 3714 } 3715 3716 protected majorCompact_args getEmptyArgsInstance() { 3717 return new majorCompact_args(); 3718 } 3719 3720 protected majorCompact_result getResult(I iface, majorCompact_args args) throws org.apache.thrift.TException { 3721 majorCompact_result result = new majorCompact_result(); 3722 try { 3723 iface.majorCompact(args.tableNameOrRegionName); 3724 } catch (IOError io) { 3725 result.io = io; 3726 } 3727 return result; 3728 } 3729 } 3730 3731 private static class getTableNames<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableNames_args> { 3732 public getTableNames() { 3733 super("getTableNames"); 3734 } 3735 3736 protected getTableNames_args getEmptyArgsInstance() { 3737 return new getTableNames_args(); 3738 } 3739 3740 protected getTableNames_result getResult(I iface, getTableNames_args args) throws org.apache.thrift.TException { 3741 getTableNames_result result = new getTableNames_result(); 3742 try { 3743 result.success = iface.getTableNames(); 3744 } catch (IOError io) { 3745 result.io = io; 3746 } 3747 return result; 3748 } 3749 } 3750 3751 private static class getColumnDescriptors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getColumnDescriptors_args> { 3752 public getColumnDescriptors() { 3753 super("getColumnDescriptors"); 3754 } 3755 3756 protected getColumnDescriptors_args getEmptyArgsInstance() { 3757 return new getColumnDescriptors_args(); 3758 } 3759 3760 protected getColumnDescriptors_result getResult(I iface, getColumnDescriptors_args args) throws org.apache.thrift.TException { 3761 getColumnDescriptors_result result = new getColumnDescriptors_result(); 3762 try { 3763 result.success = iface.getColumnDescriptors(args.tableName); 3764 } catch (IOError io) { 3765 result.io = io; 3766 } 3767 return result; 3768 } 3769 } 3770 3771 private static class getTableRegions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableRegions_args> { 3772 public getTableRegions() { 3773 super("getTableRegions"); 3774 } 3775 3776 protected getTableRegions_args getEmptyArgsInstance() { 3777 return new getTableRegions_args(); 3778 } 3779 3780 protected getTableRegions_result getResult(I iface, getTableRegions_args args) throws org.apache.thrift.TException { 3781 getTableRegions_result result = new getTableRegions_result(); 3782 try { 3783 result.success = iface.getTableRegions(args.tableName); 3784 } catch (IOError io) { 3785 result.io = io; 3786 } 3787 return result; 3788 } 3789 } 3790 3791 private static class createTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTable_args> { 3792 public createTable() { 3793 super("createTable"); 3794 } 3795 3796 protected createTable_args getEmptyArgsInstance() { 3797 return new createTable_args(); 3798 } 3799 3800 protected createTable_result getResult(I iface, createTable_args args) throws org.apache.thrift.TException { 3801 createTable_result result = new createTable_result(); 3802 try { 3803 iface.createTable(args.tableName, args.columnFamilies); 3804 } catch (IOError io) { 3805 result.io = io; 3806 } catch (IllegalArgument ia) { 3807 result.ia = ia; 3808 } catch (AlreadyExists exist) { 3809 result.exist = exist; 3810 } 3811 return result; 3812 } 3813 } 3814 3815 private static class deleteTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteTable_args> { 3816 public deleteTable() { 3817 super("deleteTable"); 3818 } 3819 3820 protected deleteTable_args getEmptyArgsInstance() { 3821 return new deleteTable_args(); 3822 } 3823 3824 protected deleteTable_result getResult(I iface, deleteTable_args args) throws org.apache.thrift.TException { 3825 deleteTable_result result = new deleteTable_result(); 3826 try { 3827 iface.deleteTable(args.tableName); 3828 } catch (IOError io) { 3829 result.io = io; 3830 } 3831 return result; 3832 } 3833 } 3834 3835 private static class get<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_args> { 3836 public get() { 3837 super("get"); 3838 } 3839 3840 protected get_args getEmptyArgsInstance() { 3841 return new get_args(); 3842 } 3843 3844 protected get_result getResult(I iface, get_args args) throws org.apache.thrift.TException { 3845 get_result result = new get_result(); 3846 try { 3847 result.success = iface.get(args.tableName, args.row, args.column, args.attributes); 3848 } catch (IOError io) { 3849 result.io = io; 3850 } 3851 return result; 3852 } 3853 } 3854 3855 private static class getVer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVer_args> { 3856 public getVer() { 3857 super("getVer"); 3858 } 3859 3860 protected getVer_args getEmptyArgsInstance() { 3861 return new getVer_args(); 3862 } 3863 3864 protected getVer_result getResult(I iface, getVer_args args) throws org.apache.thrift.TException { 3865 getVer_result result = new getVer_result(); 3866 try { 3867 result.success = iface.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes); 3868 } catch (IOError io) { 3869 result.io = io; 3870 } 3871 return result; 3872 } 3873 } 3874 3875 private static class getVerTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVerTs_args> { 3876 public getVerTs() { 3877 super("getVerTs"); 3878 } 3879 3880 protected getVerTs_args getEmptyArgsInstance() { 3881 return new getVerTs_args(); 3882 } 3883 3884 protected getVerTs_result getResult(I iface, getVerTs_args args) throws org.apache.thrift.TException { 3885 getVerTs_result result = new getVerTs_result(); 3886 try { 3887 result.success = iface.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes); 3888 } catch (IOError io) { 3889 result.io = io; 3890 } 3891 return result; 3892 } 3893 } 3894 3895 private static class getRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRow_args> { 3896 public getRow() { 3897 super("getRow"); 3898 } 3899 3900 protected getRow_args getEmptyArgsInstance() { 3901 return new getRow_args(); 3902 } 3903 3904 protected getRow_result getResult(I iface, getRow_args args) throws org.apache.thrift.TException { 3905 getRow_result result = new getRow_result(); 3906 try { 3907 result.success = iface.getRow(args.tableName, args.row, args.attributes); 3908 } catch (IOError io) { 3909 result.io = io; 3910 } 3911 return result; 3912 } 3913 } 3914 3915 private static class getRowWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumns_args> { 3916 public getRowWithColumns() { 3917 super("getRowWithColumns"); 3918 } 3919 3920 protected getRowWithColumns_args getEmptyArgsInstance() { 3921 return new getRowWithColumns_args(); 3922 } 3923 3924 protected getRowWithColumns_result getResult(I iface, getRowWithColumns_args args) throws org.apache.thrift.TException { 3925 getRowWithColumns_result result = new getRowWithColumns_result(); 3926 try { 3927 result.success = iface.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes); 3928 } catch (IOError io) { 3929 result.io = io; 3930 } 3931 return result; 3932 } 3933 } 3934 3935 private static class getRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowTs_args> { 3936 public getRowTs() { 3937 super("getRowTs"); 3938 } 3939 3940 protected getRowTs_args getEmptyArgsInstance() { 3941 return new getRowTs_args(); 3942 } 3943 3944 protected getRowTs_result getResult(I iface, getRowTs_args args) throws org.apache.thrift.TException { 3945 getRowTs_result result = new getRowTs_result(); 3946 try { 3947 result.success = iface.getRowTs(args.tableName, args.row, args.timestamp, args.attributes); 3948 } catch (IOError io) { 3949 result.io = io; 3950 } 3951 return result; 3952 } 3953 } 3954 3955 private static class getRowWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumnsTs_args> { 3956 public getRowWithColumnsTs() { 3957 super("getRowWithColumnsTs"); 3958 } 3959 3960 protected getRowWithColumnsTs_args getEmptyArgsInstance() { 3961 return new getRowWithColumnsTs_args(); 3962 } 3963 3964 protected getRowWithColumnsTs_result getResult(I iface, getRowWithColumnsTs_args args) throws org.apache.thrift.TException { 3965 getRowWithColumnsTs_result result = new getRowWithColumnsTs_result(); 3966 try { 3967 result.success = iface.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes); 3968 } catch (IOError io) { 3969 result.io = io; 3970 } 3971 return result; 3972 } 3973 } 3974 3975 private static class getRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRows_args> { 3976 public getRows() { 3977 super("getRows"); 3978 } 3979 3980 protected getRows_args getEmptyArgsInstance() { 3981 return new getRows_args(); 3982 } 3983 3984 protected getRows_result getResult(I iface, getRows_args args) throws org.apache.thrift.TException { 3985 getRows_result result = new getRows_result(); 3986 try { 3987 result.success = iface.getRows(args.tableName, args.rows, args.attributes); 3988 } catch (IOError io) { 3989 result.io = io; 3990 } 3991 return result; 3992 } 3993 } 3994 3995 private static class getRowsWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumns_args> { 3996 public getRowsWithColumns() { 3997 super("getRowsWithColumns"); 3998 } 3999 4000 protected getRowsWithColumns_args getEmptyArgsInstance() { 4001 return new getRowsWithColumns_args(); 4002 } 4003 4004 protected getRowsWithColumns_result getResult(I iface, getRowsWithColumns_args args) throws org.apache.thrift.TException { 4005 getRowsWithColumns_result result = new getRowsWithColumns_result(); 4006 try { 4007 result.success = iface.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes); 4008 } catch (IOError io) { 4009 result.io = io; 4010 } 4011 return result; 4012 } 4013 } 4014 4015 private static class getRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsTs_args> { 4016 public getRowsTs() { 4017 super("getRowsTs"); 4018 } 4019 4020 protected getRowsTs_args getEmptyArgsInstance() { 4021 return new getRowsTs_args(); 4022 } 4023 4024 protected getRowsTs_result getResult(I iface, getRowsTs_args args) throws org.apache.thrift.TException { 4025 getRowsTs_result result = new getRowsTs_result(); 4026 try { 4027 result.success = iface.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes); 4028 } catch (IOError io) { 4029 result.io = io; 4030 } 4031 return result; 4032 } 4033 } 4034 4035 private static class getRowsWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumnsTs_args> { 4036 public getRowsWithColumnsTs() { 4037 super("getRowsWithColumnsTs"); 4038 } 4039 4040 protected getRowsWithColumnsTs_args getEmptyArgsInstance() { 4041 return new getRowsWithColumnsTs_args(); 4042 } 4043 4044 protected getRowsWithColumnsTs_result getResult(I iface, getRowsWithColumnsTs_args args) throws org.apache.thrift.TException { 4045 getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result(); 4046 try { 4047 result.success = iface.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes); 4048 } catch (IOError io) { 4049 result.io = io; 4050 } 4051 return result; 4052 } 4053 } 4054 4055 private static class mutateRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRow_args> { 4056 public mutateRow() { 4057 super("mutateRow"); 4058 } 4059 4060 protected mutateRow_args getEmptyArgsInstance() { 4061 return new mutateRow_args(); 4062 } 4063 4064 protected mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException { 4065 mutateRow_result result = new mutateRow_result(); 4066 try { 4067 iface.mutateRow(args.tableName, args.row, args.mutations, args.attributes); 4068 } catch (IOError io) { 4069 result.io = io; 4070 } catch (IllegalArgument ia) { 4071 result.ia = ia; 4072 } 4073 return result; 4074 } 4075 } 4076 4077 private static class mutateRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowTs_args> { 4078 public mutateRowTs() { 4079 super("mutateRowTs"); 4080 } 4081 4082 protected mutateRowTs_args getEmptyArgsInstance() { 4083 return new mutateRowTs_args(); 4084 } 4085 4086 protected mutateRowTs_result getResult(I iface, mutateRowTs_args args) throws org.apache.thrift.TException { 4087 mutateRowTs_result result = new mutateRowTs_result(); 4088 try { 4089 iface.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes); 4090 } catch (IOError io) { 4091 result.io = io; 4092 } catch (IllegalArgument ia) { 4093 result.ia = ia; 4094 } 4095 return result; 4096 } 4097 } 4098 4099 private static class mutateRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRows_args> { 4100 public mutateRows() { 4101 super("mutateRows"); 4102 } 4103 4104 protected mutateRows_args getEmptyArgsInstance() { 4105 return new mutateRows_args(); 4106 } 4107 4108 protected mutateRows_result getResult(I iface, mutateRows_args args) throws org.apache.thrift.TException { 4109 mutateRows_result result = new mutateRows_result(); 4110 try { 4111 iface.mutateRows(args.tableName, args.rowBatches, args.attributes); 4112 } catch (IOError io) { 4113 result.io = io; 4114 } catch (IllegalArgument ia) { 4115 result.ia = ia; 4116 } 4117 return result; 4118 } 4119 } 4120 4121 private static class mutateRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowsTs_args> { 4122 public mutateRowsTs() { 4123 super("mutateRowsTs"); 4124 } 4125 4126 protected mutateRowsTs_args getEmptyArgsInstance() { 4127 return new mutateRowsTs_args(); 4128 } 4129 4130 protected mutateRowsTs_result getResult(I iface, mutateRowsTs_args args) throws org.apache.thrift.TException { 4131 mutateRowsTs_result result = new mutateRowsTs_result(); 4132 try { 4133 iface.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes); 4134 } catch (IOError io) { 4135 result.io = io; 4136 } catch (IllegalArgument ia) { 4137 result.ia = ia; 4138 } 4139 return result; 4140 } 4141 } 4142 4143 private static class atomicIncrement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, atomicIncrement_args> { 4144 public atomicIncrement() { 4145 super("atomicIncrement"); 4146 } 4147 4148 protected atomicIncrement_args getEmptyArgsInstance() { 4149 return new atomicIncrement_args(); 4150 } 4151 4152 protected atomicIncrement_result getResult(I iface, atomicIncrement_args args) throws org.apache.thrift.TException { 4153 atomicIncrement_result result = new atomicIncrement_result(); 4154 try { 4155 result.success = iface.atomicIncrement(args.tableName, args.row, args.column, args.value); 4156 result.setSuccessIsSet(true); 4157 } catch (IOError io) { 4158 result.io = io; 4159 } catch (IllegalArgument ia) { 4160 result.ia = ia; 4161 } 4162 return result; 4163 } 4164 } 4165 4166 private static class deleteAll<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAll_args> { 4167 public deleteAll() { 4168 super("deleteAll"); 4169 } 4170 4171 protected deleteAll_args getEmptyArgsInstance() { 4172 return new deleteAll_args(); 4173 } 4174 4175 protected deleteAll_result getResult(I iface, deleteAll_args args) throws org.apache.thrift.TException { 4176 deleteAll_result result = new deleteAll_result(); 4177 try { 4178 iface.deleteAll(args.tableName, args.row, args.column, args.attributes); 4179 } catch (IOError io) { 4180 result.io = io; 4181 } 4182 return result; 4183 } 4184 } 4185 4186 private static class deleteAllTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllTs_args> { 4187 public deleteAllTs() { 4188 super("deleteAllTs"); 4189 } 4190 4191 protected deleteAllTs_args getEmptyArgsInstance() { 4192 return new deleteAllTs_args(); 4193 } 4194 4195 protected deleteAllTs_result getResult(I iface, deleteAllTs_args args) throws org.apache.thrift.TException { 4196 deleteAllTs_result result = new deleteAllTs_result(); 4197 try { 4198 iface.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes); 4199 } catch (IOError io) { 4200 result.io = io; 4201 } 4202 return result; 4203 } 4204 } 4205 4206 private static class deleteAllRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRow_args> { 4207 public deleteAllRow() { 4208 super("deleteAllRow"); 4209 } 4210 4211 protected deleteAllRow_args getEmptyArgsInstance() { 4212 return new deleteAllRow_args(); 4213 } 4214 4215 protected deleteAllRow_result getResult(I iface, deleteAllRow_args args) throws org.apache.thrift.TException { 4216 deleteAllRow_result result = new deleteAllRow_result(); 4217 try { 4218 iface.deleteAllRow(args.tableName, args.row, args.attributes); 4219 } catch (IOError io) { 4220 result.io = io; 4221 } 4222 return result; 4223 } 4224 } 4225 4226 private static class increment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increment_args> { 4227 public increment() { 4228 super("increment"); 4229 } 4230 4231 protected increment_args getEmptyArgsInstance() { 4232 return new increment_args(); 4233 } 4234 4235 protected increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException { 4236 increment_result result = new increment_result(); 4237 try { 4238 iface.increment(args.increment); 4239 } catch (IOError io) { 4240 result.io = io; 4241 } 4242 return result; 4243 } 4244 } 4245 4246 private static class incrementRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, incrementRows_args> { 4247 public incrementRows() { 4248 super("incrementRows"); 4249 } 4250 4251 protected incrementRows_args getEmptyArgsInstance() { 4252 return new incrementRows_args(); 4253 } 4254 4255 protected incrementRows_result getResult(I iface, incrementRows_args args) throws org.apache.thrift.TException { 4256 incrementRows_result result = new incrementRows_result(); 4257 try { 4258 iface.incrementRows(args.increments); 4259 } catch (IOError io) { 4260 result.io = io; 4261 } 4262 return result; 4263 } 4264 } 4265 4266 private static class deleteAllRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRowTs_args> { 4267 public deleteAllRowTs() { 4268 super("deleteAllRowTs"); 4269 } 4270 4271 protected deleteAllRowTs_args getEmptyArgsInstance() { 4272 return new deleteAllRowTs_args(); 4273 } 4274 4275 protected deleteAllRowTs_result getResult(I iface, deleteAllRowTs_args args) throws org.apache.thrift.TException { 4276 deleteAllRowTs_result result = new deleteAllRowTs_result(); 4277 try { 4278 iface.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes); 4279 } catch (IOError io) { 4280 result.io = io; 4281 } 4282 return result; 4283 } 4284 } 4285 4286 private static class scannerOpenWithScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithScan_args> { 4287 public scannerOpenWithScan() { 4288 super("scannerOpenWithScan"); 4289 } 4290 4291 protected scannerOpenWithScan_args getEmptyArgsInstance() { 4292 return new scannerOpenWithScan_args(); 4293 } 4294 4295 protected scannerOpenWithScan_result getResult(I iface, scannerOpenWithScan_args args) throws org.apache.thrift.TException { 4296 scannerOpenWithScan_result result = new scannerOpenWithScan_result(); 4297 try { 4298 result.success = iface.scannerOpenWithScan(args.tableName, args.scan, args.attributes); 4299 result.setSuccessIsSet(true); 4300 } catch (IOError io) { 4301 result.io = io; 4302 } 4303 return result; 4304 } 4305 } 4306 4307 private static class scannerOpen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpen_args> { 4308 public scannerOpen() { 4309 super("scannerOpen"); 4310 } 4311 4312 protected scannerOpen_args getEmptyArgsInstance() { 4313 return new scannerOpen_args(); 4314 } 4315 4316 protected scannerOpen_result getResult(I iface, scannerOpen_args args) throws org.apache.thrift.TException { 4317 scannerOpen_result result = new scannerOpen_result(); 4318 try { 4319 result.success = iface.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes); 4320 result.setSuccessIsSet(true); 4321 } catch (IOError io) { 4322 result.io = io; 4323 } 4324 return result; 4325 } 4326 } 4327 4328 private static class scannerOpenWithStop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStop_args> { 4329 public scannerOpenWithStop() { 4330 super("scannerOpenWithStop"); 4331 } 4332 4333 protected scannerOpenWithStop_args getEmptyArgsInstance() { 4334 return new scannerOpenWithStop_args(); 4335 } 4336 4337 protected scannerOpenWithStop_result getResult(I iface, scannerOpenWithStop_args args) throws org.apache.thrift.TException { 4338 scannerOpenWithStop_result result = new scannerOpenWithStop_result(); 4339 try { 4340 result.success = iface.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes); 4341 result.setSuccessIsSet(true); 4342 } catch (IOError io) { 4343 result.io = io; 4344 } 4345 return result; 4346 } 4347 } 4348 4349 private static class scannerOpenWithPrefix<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithPrefix_args> { 4350 public scannerOpenWithPrefix() { 4351 super("scannerOpenWithPrefix"); 4352 } 4353 4354 protected scannerOpenWithPrefix_args getEmptyArgsInstance() { 4355 return new scannerOpenWithPrefix_args(); 4356 } 4357 4358 protected scannerOpenWithPrefix_result getResult(I iface, scannerOpenWithPrefix_args args) throws org.apache.thrift.TException { 4359 scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result(); 4360 try { 4361 result.success = iface.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes); 4362 result.setSuccessIsSet(true); 4363 } catch (IOError io) { 4364 result.io = io; 4365 } 4366 return result; 4367 } 4368 } 4369 4370 private static class scannerOpenTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenTs_args> { 4371 public scannerOpenTs() { 4372 super("scannerOpenTs"); 4373 } 4374 4375 protected scannerOpenTs_args getEmptyArgsInstance() { 4376 return new scannerOpenTs_args(); 4377 } 4378 4379 protected scannerOpenTs_result getResult(I iface, scannerOpenTs_args args) throws org.apache.thrift.TException { 4380 scannerOpenTs_result result = new scannerOpenTs_result(); 4381 try { 4382 result.success = iface.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes); 4383 result.setSuccessIsSet(true); 4384 } catch (IOError io) { 4385 result.io = io; 4386 } 4387 return result; 4388 } 4389 } 4390 4391 private static class scannerOpenWithStopTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStopTs_args> { 4392 public scannerOpenWithStopTs() { 4393 super("scannerOpenWithStopTs"); 4394 } 4395 4396 protected scannerOpenWithStopTs_args getEmptyArgsInstance() { 4397 return new scannerOpenWithStopTs_args(); 4398 } 4399 4400 protected scannerOpenWithStopTs_result getResult(I iface, scannerOpenWithStopTs_args args) throws org.apache.thrift.TException { 4401 scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result(); 4402 try { 4403 result.success = iface.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes); 4404 result.setSuccessIsSet(true); 4405 } catch (IOError io) { 4406 result.io = io; 4407 } 4408 return result; 4409 } 4410 } 4411 4412 private static class scannerGet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGet_args> { 4413 public scannerGet() { 4414 super("scannerGet"); 4415 } 4416 4417 protected scannerGet_args getEmptyArgsInstance() { 4418 return new scannerGet_args(); 4419 } 4420 4421 protected scannerGet_result getResult(I iface, scannerGet_args args) throws org.apache.thrift.TException { 4422 scannerGet_result result = new scannerGet_result(); 4423 try { 4424 result.success = iface.scannerGet(args.id); 4425 } catch (IOError io) { 4426 result.io = io; 4427 } catch (IllegalArgument ia) { 4428 result.ia = ia; 4429 } 4430 return result; 4431 } 4432 } 4433 4434 private static class scannerGetList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGetList_args> { 4435 public scannerGetList() { 4436 super("scannerGetList"); 4437 } 4438 4439 protected scannerGetList_args getEmptyArgsInstance() { 4440 return new scannerGetList_args(); 4441 } 4442 4443 protected scannerGetList_result getResult(I iface, scannerGetList_args args) throws org.apache.thrift.TException { 4444 scannerGetList_result result = new scannerGetList_result(); 4445 try { 4446 result.success = iface.scannerGetList(args.id, args.nbRows); 4447 } catch (IOError io) { 4448 result.io = io; 4449 } catch (IllegalArgument ia) { 4450 result.ia = ia; 4451 } 4452 return result; 4453 } 4454 } 4455 4456 private static class scannerClose<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerClose_args> { 4457 public scannerClose() { 4458 super("scannerClose"); 4459 } 4460 4461 protected scannerClose_args getEmptyArgsInstance() { 4462 return new scannerClose_args(); 4463 } 4464 4465 protected scannerClose_result getResult(I iface, scannerClose_args args) throws org.apache.thrift.TException { 4466 scannerClose_result result = new scannerClose_result(); 4467 try { 4468 iface.scannerClose(args.id); 4469 } catch (IOError io) { 4470 result.io = io; 4471 } catch (IllegalArgument ia) { 4472 result.ia = ia; 4473 } 4474 return result; 4475 } 4476 } 4477 4478 private static class getRowOrBefore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowOrBefore_args> { 4479 public getRowOrBefore() { 4480 super("getRowOrBefore"); 4481 } 4482 4483 protected getRowOrBefore_args getEmptyArgsInstance() { 4484 return new getRowOrBefore_args(); 4485 } 4486 4487 protected getRowOrBefore_result getResult(I iface, getRowOrBefore_args args) throws org.apache.thrift.TException { 4488 getRowOrBefore_result result = new getRowOrBefore_result(); 4489 try { 4490 result.success = iface.getRowOrBefore(args.tableName, args.row, args.family); 4491 } catch (IOError io) { 4492 result.io = io; 4493 } 4494 return result; 4495 } 4496 } 4497 4498 private static class getRegionInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRegionInfo_args> { 4499 public getRegionInfo() { 4500 super("getRegionInfo"); 4501 } 4502 4503 protected getRegionInfo_args getEmptyArgsInstance() { 4504 return new getRegionInfo_args(); 4505 } 4506 4507 protected getRegionInfo_result getResult(I iface, getRegionInfo_args args) throws org.apache.thrift.TException { 4508 getRegionInfo_result result = new getRegionInfo_result(); 4509 try { 4510 result.success = iface.getRegionInfo(args.row); 4511 } catch (IOError io) { 4512 result.io = io; 4513 } 4514 return result; 4515 } 4516 } 4517 4518 } 4519 4520 public static class enableTable_args implements org.apache.thrift.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable { 4521 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_args"); 4522 4523 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 4524 4525 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 4526 static { 4527 schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory()); 4528 schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory()); 4529 } 4530 4531 /** 4532 * name of the table 4533 */ 4534 public ByteBuffer tableName; // required 4535 4536 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 4537 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 4538 /** 4539 * name of the table 4540 */ 4541 TABLE_NAME((short)1, "tableName"); 4542 4543 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 4544 4545 static { 4546 for (_Fields field : EnumSet.allOf(_Fields.class)) { 4547 byName.put(field.getFieldName(), field); 4548 } 4549 } 4550 4551 /** 4552 * Find the _Fields constant that matches fieldId, or null if its not found. 4553 */ 4554 public static _Fields findByThriftId(int fieldId) { 4555 switch(fieldId) { 4556 case 1: // TABLE_NAME 4557 return TABLE_NAME; 4558 default: 4559 return null; 4560 } 4561 } 4562 4563 /** 4564 * Find the _Fields constant that matches fieldId, throwing an exception 4565 * if it is not found. 4566 */ 4567 public static _Fields findByThriftIdOrThrow(int fieldId) { 4568 _Fields fields = findByThriftId(fieldId); 4569 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 4570 return fields; 4571 } 4572 4573 /** 4574 * Find the _Fields constant that matches name, or null if its not found. 4575 */ 4576 public static _Fields findByName(String name) { 4577 return byName.get(name); 4578 } 4579 4580 private final short _thriftId; 4581 private final String _fieldName; 4582 4583 _Fields(short thriftId, String fieldName) { 4584 _thriftId = thriftId; 4585 _fieldName = fieldName; 4586 } 4587 4588 public short getThriftFieldId() { 4589 return _thriftId; 4590 } 4591 4592 public String getFieldName() { 4593 return _fieldName; 4594 } 4595 } 4596 4597 // isset id assignments 4598 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 4599 static { 4600 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 4601 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 4602 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); 4603 metaDataMap = Collections.unmodifiableMap(tmpMap); 4604 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap); 4605 } 4606 4607 public enableTable_args() { 4608 } 4609 4610 public enableTable_args( 4611 ByteBuffer tableName) 4612 { 4613 this(); 4614 this.tableName = tableName; 4615 } 4616 4617 /** 4618 * Performs a deep copy on <i>other</i>. 4619 */ 4620 public enableTable_args(enableTable_args other) { 4621 if (other.isSetTableName()) { 4622 this.tableName = other.tableName; 4623 } 4624 } 4625 4626 public enableTable_args deepCopy() { 4627 return new enableTable_args(this); 4628 } 4629 4630 @Override 4631 public void clear() { 4632 this.tableName = null; 4633 } 4634 4635 /** 4636 * name of the table 4637 */ 4638 public byte[] getTableName() { 4639 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 4640 return tableName == null ? null : tableName.array(); 4641 } 4642 4643 public ByteBuffer bufferForTableName() { 4644 return tableName; 4645 } 4646 4647 /** 4648 * name of the table 4649 */ 4650 public enableTable_args setTableName(byte[] tableName) { 4651 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 4652 return this; 4653 } 4654 4655 public enableTable_args setTableName(ByteBuffer tableName) { 4656 this.tableName = tableName; 4657 return this; 4658 } 4659 4660 public void unsetTableName() { 4661 this.tableName = null; 4662 } 4663 4664 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 4665 public boolean isSetTableName() { 4666 return this.tableName != null; 4667 } 4668 4669 public void setTableNameIsSet(boolean value) { 4670 if (!value) { 4671 this.tableName = null; 4672 } 4673 } 4674 4675 public void setFieldValue(_Fields field, Object value) { 4676 switch (field) { 4677 case TABLE_NAME: 4678 if (value == null) { 4679 unsetTableName(); 4680 } else { 4681 setTableName((ByteBuffer)value); 4682 } 4683 break; 4684 4685 } 4686 } 4687 4688 public Object getFieldValue(_Fields field) { 4689 switch (field) { 4690 case TABLE_NAME: 4691 return getTableName(); 4692 4693 } 4694 throw new IllegalStateException(); 4695 } 4696 4697 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 4698 public boolean isSet(_Fields field) { 4699 if (field == null) { 4700 throw new IllegalArgumentException(); 4701 } 4702 4703 switch (field) { 4704 case TABLE_NAME: 4705 return isSetTableName(); 4706 } 4707 throw new IllegalStateException(); 4708 } 4709 4710 @Override 4711 public boolean equals(Object that) { 4712 if (that == null) 4713 return false; 4714 if (that instanceof enableTable_args) 4715 return this.equals((enableTable_args)that); 4716 return false; 4717 } 4718 4719 public boolean equals(enableTable_args that) { 4720 if (that == null) 4721 return false; 4722 4723 boolean this_present_tableName = true && this.isSetTableName(); 4724 boolean that_present_tableName = true && that.isSetTableName(); 4725 if (this_present_tableName || that_present_tableName) { 4726 if (!(this_present_tableName && that_present_tableName)) 4727 return false; 4728 if (!this.tableName.equals(that.tableName)) 4729 return false; 4730 } 4731 4732 return true; 4733 } 4734 4735 @Override 4736 public int hashCode() { 4737 HashCodeBuilder builder = new HashCodeBuilder(); 4738 4739 boolean present_tableName = true && (isSetTableName()); 4740 builder.append(present_tableName); 4741 if (present_tableName) 4742 builder.append(tableName); 4743 4744 return builder.toHashCode(); 4745 } 4746 4747 public int compareTo(enableTable_args other) { 4748 if (!getClass().equals(other.getClass())) { 4749 return getClass().getName().compareTo(other.getClass().getName()); 4750 } 4751 4752 int lastComparison = 0; 4753 enableTable_args typedOther = (enableTable_args)other; 4754 4755 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 4756 if (lastComparison != 0) { 4757 return lastComparison; 4758 } 4759 if (isSetTableName()) { 4760 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 4761 if (lastComparison != 0) { 4762 return lastComparison; 4763 } 4764 } 4765 return 0; 4766 } 4767 4768 public _Fields fieldForId(int fieldId) { 4769 return _Fields.findByThriftId(fieldId); 4770 } 4771 4772 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 4773 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 4774 } 4775 4776 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 4777 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 4778 } 4779 4780 @Override 4781 public String toString() { 4782 StringBuilder sb = new StringBuilder("enableTable_args("); 4783 boolean first = true; 4784 4785 sb.append("tableName:"); 4786 if (this.tableName == null) { 4787 sb.append("null"); 4788 } else { 4789 sb.append(this.tableName); 4790 } 4791 first = false; 4792 sb.append(")"); 4793 return sb.toString(); 4794 } 4795 4796 public void validate() throws org.apache.thrift.TException { 4797 // check for required fields 4798 } 4799 4800 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 4801 try { 4802 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 4803 } catch (org.apache.thrift.TException te) { 4804 throw new java.io.IOException(te); 4805 } 4806 } 4807 4808 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 4809 try { 4810 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 4811 } catch (org.apache.thrift.TException te) { 4812 throw new java.io.IOException(te); 4813 } 4814 } 4815 4816 private static class enableTable_argsStandardSchemeFactory implements SchemeFactory { 4817 public enableTable_argsStandardScheme getScheme() { 4818 return new enableTable_argsStandardScheme(); 4819 } 4820 } 4821 4822 private static class enableTable_argsStandardScheme extends StandardScheme<enableTable_args> { 4823 4824 public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException { 4825 org.apache.thrift.protocol.TField schemeField; 4826 iprot.readStructBegin(); 4827 while (true) 4828 { 4829 schemeField = iprot.readFieldBegin(); 4830 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 4831 break; 4832 } 4833 switch (schemeField.id) { 4834 case 1: // TABLE_NAME 4835 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 4836 struct.tableName = iprot.readBinary(); 4837 struct.setTableNameIsSet(true); 4838 } else { 4839 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 4840 } 4841 break; 4842 default: 4843 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 4844 } 4845 iprot.readFieldEnd(); 4846 } 4847 iprot.readStructEnd(); 4848 4849 // check for required fields of primitive type, which can't be checked in the validate method 4850 struct.validate(); 4851 } 4852 4853 public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.thrift.TException { 4854 struct.validate(); 4855 4856 oprot.writeStructBegin(STRUCT_DESC); 4857 if (struct.tableName != null) { 4858 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 4859 oprot.writeBinary(struct.tableName); 4860 oprot.writeFieldEnd(); 4861 } 4862 oprot.writeFieldStop(); 4863 oprot.writeStructEnd(); 4864 } 4865 4866 } 4867 4868 private static class enableTable_argsTupleSchemeFactory implements SchemeFactory { 4869 public enableTable_argsTupleScheme getScheme() { 4870 return new enableTable_argsTupleScheme(); 4871 } 4872 } 4873 4874 private static class enableTable_argsTupleScheme extends TupleScheme<enableTable_args> { 4875 4876 @Override 4877 public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { 4878 TTupleProtocol oprot = (TTupleProtocol) prot; 4879 BitSet optionals = new BitSet(); 4880 if (struct.isSetTableName()) { 4881 optionals.set(0); 4882 } 4883 oprot.writeBitSet(optionals, 1); 4884 if (struct.isSetTableName()) { 4885 oprot.writeBinary(struct.tableName); 4886 } 4887 } 4888 4889 @Override 4890 public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException { 4891 TTupleProtocol iprot = (TTupleProtocol) prot; 4892 BitSet incoming = iprot.readBitSet(1); 4893 if (incoming.get(0)) { 4894 struct.tableName = iprot.readBinary(); 4895 struct.setTableNameIsSet(true); 4896 } 4897 } 4898 } 4899 4900 } 4901 4902 public static class enableTable_result implements org.apache.thrift.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable { 4903 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_result"); 4904 4905 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 4906 4907 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 4908 static { 4909 schemes.put(StandardScheme.class, new enableTable_resultStandardSchemeFactory()); 4910 schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory()); 4911 } 4912 4913 public IOError io; // required 4914 4915 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 4916 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 4917 IO((short)1, "io"); 4918 4919 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 4920 4921 static { 4922 for (_Fields field : EnumSet.allOf(_Fields.class)) { 4923 byName.put(field.getFieldName(), field); 4924 } 4925 } 4926 4927 /** 4928 * Find the _Fields constant that matches fieldId, or null if its not found. 4929 */ 4930 public static _Fields findByThriftId(int fieldId) { 4931 switch(fieldId) { 4932 case 1: // IO 4933 return IO; 4934 default: 4935 return null; 4936 } 4937 } 4938 4939 /** 4940 * Find the _Fields constant that matches fieldId, throwing an exception 4941 * if it is not found. 4942 */ 4943 public static _Fields findByThriftIdOrThrow(int fieldId) { 4944 _Fields fields = findByThriftId(fieldId); 4945 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 4946 return fields; 4947 } 4948 4949 /** 4950 * Find the _Fields constant that matches name, or null if its not found. 4951 */ 4952 public static _Fields findByName(String name) { 4953 return byName.get(name); 4954 } 4955 4956 private final short _thriftId; 4957 private final String _fieldName; 4958 4959 _Fields(short thriftId, String fieldName) { 4960 _thriftId = thriftId; 4961 _fieldName = fieldName; 4962 } 4963 4964 public short getThriftFieldId() { 4965 return _thriftId; 4966 } 4967 4968 public String getFieldName() { 4969 return _fieldName; 4970 } 4971 } 4972 4973 // isset id assignments 4974 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 4975 static { 4976 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 4977 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 4978 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 4979 metaDataMap = Collections.unmodifiableMap(tmpMap); 4980 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap); 4981 } 4982 4983 public enableTable_result() { 4984 } 4985 4986 public enableTable_result( 4987 IOError io) 4988 { 4989 this(); 4990 this.io = io; 4991 } 4992 4993 /** 4994 * Performs a deep copy on <i>other</i>. 4995 */ 4996 public enableTable_result(enableTable_result other) { 4997 if (other.isSetIo()) { 4998 this.io = new IOError(other.io); 4999 } 5000 } 5001 5002 public enableTable_result deepCopy() { 5003 return new enableTable_result(this); 5004 } 5005 5006 @Override 5007 public void clear() { 5008 this.io = null; 5009 } 5010 5011 public IOError getIo() { 5012 return this.io; 5013 } 5014 5015 public enableTable_result setIo(IOError io) { 5016 this.io = io; 5017 return this; 5018 } 5019 5020 public void unsetIo() { 5021 this.io = null; 5022 } 5023 5024 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 5025 public boolean isSetIo() { 5026 return this.io != null; 5027 } 5028 5029 public void setIoIsSet(boolean value) { 5030 if (!value) { 5031 this.io = null; 5032 } 5033 } 5034 5035 public void setFieldValue(_Fields field, Object value) { 5036 switch (field) { 5037 case IO: 5038 if (value == null) { 5039 unsetIo(); 5040 } else { 5041 setIo((IOError)value); 5042 } 5043 break; 5044 5045 } 5046 } 5047 5048 public Object getFieldValue(_Fields field) { 5049 switch (field) { 5050 case IO: 5051 return getIo(); 5052 5053 } 5054 throw new IllegalStateException(); 5055 } 5056 5057 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 5058 public boolean isSet(_Fields field) { 5059 if (field == null) { 5060 throw new IllegalArgumentException(); 5061 } 5062 5063 switch (field) { 5064 case IO: 5065 return isSetIo(); 5066 } 5067 throw new IllegalStateException(); 5068 } 5069 5070 @Override 5071 public boolean equals(Object that) { 5072 if (that == null) 5073 return false; 5074 if (that instanceof enableTable_result) 5075 return this.equals((enableTable_result)that); 5076 return false; 5077 } 5078 5079 public boolean equals(enableTable_result that) { 5080 if (that == null) 5081 return false; 5082 5083 boolean this_present_io = true && this.isSetIo(); 5084 boolean that_present_io = true && that.isSetIo(); 5085 if (this_present_io || that_present_io) { 5086 if (!(this_present_io && that_present_io)) 5087 return false; 5088 if (!this.io.equals(that.io)) 5089 return false; 5090 } 5091 5092 return true; 5093 } 5094 5095 @Override 5096 public int hashCode() { 5097 HashCodeBuilder builder = new HashCodeBuilder(); 5098 5099 boolean present_io = true && (isSetIo()); 5100 builder.append(present_io); 5101 if (present_io) 5102 builder.append(io); 5103 5104 return builder.toHashCode(); 5105 } 5106 5107 public int compareTo(enableTable_result other) { 5108 if (!getClass().equals(other.getClass())) { 5109 return getClass().getName().compareTo(other.getClass().getName()); 5110 } 5111 5112 int lastComparison = 0; 5113 enableTable_result typedOther = (enableTable_result)other; 5114 5115 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 5116 if (lastComparison != 0) { 5117 return lastComparison; 5118 } 5119 if (isSetIo()) { 5120 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 5121 if (lastComparison != 0) { 5122 return lastComparison; 5123 } 5124 } 5125 return 0; 5126 } 5127 5128 public _Fields fieldForId(int fieldId) { 5129 return _Fields.findByThriftId(fieldId); 5130 } 5131 5132 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 5133 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 5134 } 5135 5136 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 5137 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 5138 } 5139 5140 @Override 5141 public String toString() { 5142 StringBuilder sb = new StringBuilder("enableTable_result("); 5143 boolean first = true; 5144 5145 sb.append("io:"); 5146 if (this.io == null) { 5147 sb.append("null"); 5148 } else { 5149 sb.append(this.io); 5150 } 5151 first = false; 5152 sb.append(")"); 5153 return sb.toString(); 5154 } 5155 5156 public void validate() throws org.apache.thrift.TException { 5157 // check for required fields 5158 } 5159 5160 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 5161 try { 5162 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 5163 } catch (org.apache.thrift.TException te) { 5164 throw new java.io.IOException(te); 5165 } 5166 } 5167 5168 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 5169 try { 5170 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 5171 } catch (org.apache.thrift.TException te) { 5172 throw new java.io.IOException(te); 5173 } 5174 } 5175 5176 private static class enableTable_resultStandardSchemeFactory implements SchemeFactory { 5177 public enableTable_resultStandardScheme getScheme() { 5178 return new enableTable_resultStandardScheme(); 5179 } 5180 } 5181 5182 private static class enableTable_resultStandardScheme extends StandardScheme<enableTable_result> { 5183 5184 public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException { 5185 org.apache.thrift.protocol.TField schemeField; 5186 iprot.readStructBegin(); 5187 while (true) 5188 { 5189 schemeField = iprot.readFieldBegin(); 5190 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 5191 break; 5192 } 5193 switch (schemeField.id) { 5194 case 1: // IO 5195 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 5196 struct.io = new IOError(); 5197 struct.io.read(iprot); 5198 struct.setIoIsSet(true); 5199 } else { 5200 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5201 } 5202 break; 5203 default: 5204 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5205 } 5206 iprot.readFieldEnd(); 5207 } 5208 iprot.readStructEnd(); 5209 5210 // check for required fields of primitive type, which can't be checked in the validate method 5211 struct.validate(); 5212 } 5213 5214 public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.thrift.TException { 5215 struct.validate(); 5216 5217 oprot.writeStructBegin(STRUCT_DESC); 5218 if (struct.io != null) { 5219 oprot.writeFieldBegin(IO_FIELD_DESC); 5220 struct.io.write(oprot); 5221 oprot.writeFieldEnd(); 5222 } 5223 oprot.writeFieldStop(); 5224 oprot.writeStructEnd(); 5225 } 5226 5227 } 5228 5229 private static class enableTable_resultTupleSchemeFactory implements SchemeFactory { 5230 public enableTable_resultTupleScheme getScheme() { 5231 return new enableTable_resultTupleScheme(); 5232 } 5233 } 5234 5235 private static class enableTable_resultTupleScheme extends TupleScheme<enableTable_result> { 5236 5237 @Override 5238 public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { 5239 TTupleProtocol oprot = (TTupleProtocol) prot; 5240 BitSet optionals = new BitSet(); 5241 if (struct.isSetIo()) { 5242 optionals.set(0); 5243 } 5244 oprot.writeBitSet(optionals, 1); 5245 if (struct.isSetIo()) { 5246 struct.io.write(oprot); 5247 } 5248 } 5249 5250 @Override 5251 public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException { 5252 TTupleProtocol iprot = (TTupleProtocol) prot; 5253 BitSet incoming = iprot.readBitSet(1); 5254 if (incoming.get(0)) { 5255 struct.io = new IOError(); 5256 struct.io.read(iprot); 5257 struct.setIoIsSet(true); 5258 } 5259 } 5260 } 5261 5262 } 5263 5264 public static class disableTable_args implements org.apache.thrift.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable { 5265 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_args"); 5266 5267 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 5268 5269 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 5270 static { 5271 schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory()); 5272 schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory()); 5273 } 5274 5275 /** 5276 * name of the table 5277 */ 5278 public ByteBuffer tableName; // required 5279 5280 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 5281 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 5282 /** 5283 * name of the table 5284 */ 5285 TABLE_NAME((short)1, "tableName"); 5286 5287 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 5288 5289 static { 5290 for (_Fields field : EnumSet.allOf(_Fields.class)) { 5291 byName.put(field.getFieldName(), field); 5292 } 5293 } 5294 5295 /** 5296 * Find the _Fields constant that matches fieldId, or null if its not found. 5297 */ 5298 public static _Fields findByThriftId(int fieldId) { 5299 switch(fieldId) { 5300 case 1: // TABLE_NAME 5301 return TABLE_NAME; 5302 default: 5303 return null; 5304 } 5305 } 5306 5307 /** 5308 * Find the _Fields constant that matches fieldId, throwing an exception 5309 * if it is not found. 5310 */ 5311 public static _Fields findByThriftIdOrThrow(int fieldId) { 5312 _Fields fields = findByThriftId(fieldId); 5313 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 5314 return fields; 5315 } 5316 5317 /** 5318 * Find the _Fields constant that matches name, or null if its not found. 5319 */ 5320 public static _Fields findByName(String name) { 5321 return byName.get(name); 5322 } 5323 5324 private final short _thriftId; 5325 private final String _fieldName; 5326 5327 _Fields(short thriftId, String fieldName) { 5328 _thriftId = thriftId; 5329 _fieldName = fieldName; 5330 } 5331 5332 public short getThriftFieldId() { 5333 return _thriftId; 5334 } 5335 5336 public String getFieldName() { 5337 return _fieldName; 5338 } 5339 } 5340 5341 // isset id assignments 5342 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 5343 static { 5344 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 5345 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 5346 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); 5347 metaDataMap = Collections.unmodifiableMap(tmpMap); 5348 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap); 5349 } 5350 5351 public disableTable_args() { 5352 } 5353 5354 public disableTable_args( 5355 ByteBuffer tableName) 5356 { 5357 this(); 5358 this.tableName = tableName; 5359 } 5360 5361 /** 5362 * Performs a deep copy on <i>other</i>. 5363 */ 5364 public disableTable_args(disableTable_args other) { 5365 if (other.isSetTableName()) { 5366 this.tableName = other.tableName; 5367 } 5368 } 5369 5370 public disableTable_args deepCopy() { 5371 return new disableTable_args(this); 5372 } 5373 5374 @Override 5375 public void clear() { 5376 this.tableName = null; 5377 } 5378 5379 /** 5380 * name of the table 5381 */ 5382 public byte[] getTableName() { 5383 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 5384 return tableName == null ? null : tableName.array(); 5385 } 5386 5387 public ByteBuffer bufferForTableName() { 5388 return tableName; 5389 } 5390 5391 /** 5392 * name of the table 5393 */ 5394 public disableTable_args setTableName(byte[] tableName) { 5395 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 5396 return this; 5397 } 5398 5399 public disableTable_args setTableName(ByteBuffer tableName) { 5400 this.tableName = tableName; 5401 return this; 5402 } 5403 5404 public void unsetTableName() { 5405 this.tableName = null; 5406 } 5407 5408 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 5409 public boolean isSetTableName() { 5410 return this.tableName != null; 5411 } 5412 5413 public void setTableNameIsSet(boolean value) { 5414 if (!value) { 5415 this.tableName = null; 5416 } 5417 } 5418 5419 public void setFieldValue(_Fields field, Object value) { 5420 switch (field) { 5421 case TABLE_NAME: 5422 if (value == null) { 5423 unsetTableName(); 5424 } else { 5425 setTableName((ByteBuffer)value); 5426 } 5427 break; 5428 5429 } 5430 } 5431 5432 public Object getFieldValue(_Fields field) { 5433 switch (field) { 5434 case TABLE_NAME: 5435 return getTableName(); 5436 5437 } 5438 throw new IllegalStateException(); 5439 } 5440 5441 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 5442 public boolean isSet(_Fields field) { 5443 if (field == null) { 5444 throw new IllegalArgumentException(); 5445 } 5446 5447 switch (field) { 5448 case TABLE_NAME: 5449 return isSetTableName(); 5450 } 5451 throw new IllegalStateException(); 5452 } 5453 5454 @Override 5455 public boolean equals(Object that) { 5456 if (that == null) 5457 return false; 5458 if (that instanceof disableTable_args) 5459 return this.equals((disableTable_args)that); 5460 return false; 5461 } 5462 5463 public boolean equals(disableTable_args that) { 5464 if (that == null) 5465 return false; 5466 5467 boolean this_present_tableName = true && this.isSetTableName(); 5468 boolean that_present_tableName = true && that.isSetTableName(); 5469 if (this_present_tableName || that_present_tableName) { 5470 if (!(this_present_tableName && that_present_tableName)) 5471 return false; 5472 if (!this.tableName.equals(that.tableName)) 5473 return false; 5474 } 5475 5476 return true; 5477 } 5478 5479 @Override 5480 public int hashCode() { 5481 HashCodeBuilder builder = new HashCodeBuilder(); 5482 5483 boolean present_tableName = true && (isSetTableName()); 5484 builder.append(present_tableName); 5485 if (present_tableName) 5486 builder.append(tableName); 5487 5488 return builder.toHashCode(); 5489 } 5490 5491 public int compareTo(disableTable_args other) { 5492 if (!getClass().equals(other.getClass())) { 5493 return getClass().getName().compareTo(other.getClass().getName()); 5494 } 5495 5496 int lastComparison = 0; 5497 disableTable_args typedOther = (disableTable_args)other; 5498 5499 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 5500 if (lastComparison != 0) { 5501 return lastComparison; 5502 } 5503 if (isSetTableName()) { 5504 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 5505 if (lastComparison != 0) { 5506 return lastComparison; 5507 } 5508 } 5509 return 0; 5510 } 5511 5512 public _Fields fieldForId(int fieldId) { 5513 return _Fields.findByThriftId(fieldId); 5514 } 5515 5516 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 5517 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 5518 } 5519 5520 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 5521 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 5522 } 5523 5524 @Override 5525 public String toString() { 5526 StringBuilder sb = new StringBuilder("disableTable_args("); 5527 boolean first = true; 5528 5529 sb.append("tableName:"); 5530 if (this.tableName == null) { 5531 sb.append("null"); 5532 } else { 5533 sb.append(this.tableName); 5534 } 5535 first = false; 5536 sb.append(")"); 5537 return sb.toString(); 5538 } 5539 5540 public void validate() throws org.apache.thrift.TException { 5541 // check for required fields 5542 } 5543 5544 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 5545 try { 5546 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 5547 } catch (org.apache.thrift.TException te) { 5548 throw new java.io.IOException(te); 5549 } 5550 } 5551 5552 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 5553 try { 5554 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 5555 } catch (org.apache.thrift.TException te) { 5556 throw new java.io.IOException(te); 5557 } 5558 } 5559 5560 private static class disableTable_argsStandardSchemeFactory implements SchemeFactory { 5561 public disableTable_argsStandardScheme getScheme() { 5562 return new disableTable_argsStandardScheme(); 5563 } 5564 } 5565 5566 private static class disableTable_argsStandardScheme extends StandardScheme<disableTable_args> { 5567 5568 public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException { 5569 org.apache.thrift.protocol.TField schemeField; 5570 iprot.readStructBegin(); 5571 while (true) 5572 { 5573 schemeField = iprot.readFieldBegin(); 5574 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 5575 break; 5576 } 5577 switch (schemeField.id) { 5578 case 1: // TABLE_NAME 5579 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 5580 struct.tableName = iprot.readBinary(); 5581 struct.setTableNameIsSet(true); 5582 } else { 5583 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5584 } 5585 break; 5586 default: 5587 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5588 } 5589 iprot.readFieldEnd(); 5590 } 5591 iprot.readStructEnd(); 5592 5593 // check for required fields of primitive type, which can't be checked in the validate method 5594 struct.validate(); 5595 } 5596 5597 public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.thrift.TException { 5598 struct.validate(); 5599 5600 oprot.writeStructBegin(STRUCT_DESC); 5601 if (struct.tableName != null) { 5602 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 5603 oprot.writeBinary(struct.tableName); 5604 oprot.writeFieldEnd(); 5605 } 5606 oprot.writeFieldStop(); 5607 oprot.writeStructEnd(); 5608 } 5609 5610 } 5611 5612 private static class disableTable_argsTupleSchemeFactory implements SchemeFactory { 5613 public disableTable_argsTupleScheme getScheme() { 5614 return new disableTable_argsTupleScheme(); 5615 } 5616 } 5617 5618 private static class disableTable_argsTupleScheme extends TupleScheme<disableTable_args> { 5619 5620 @Override 5621 public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { 5622 TTupleProtocol oprot = (TTupleProtocol) prot; 5623 BitSet optionals = new BitSet(); 5624 if (struct.isSetTableName()) { 5625 optionals.set(0); 5626 } 5627 oprot.writeBitSet(optionals, 1); 5628 if (struct.isSetTableName()) { 5629 oprot.writeBinary(struct.tableName); 5630 } 5631 } 5632 5633 @Override 5634 public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException { 5635 TTupleProtocol iprot = (TTupleProtocol) prot; 5636 BitSet incoming = iprot.readBitSet(1); 5637 if (incoming.get(0)) { 5638 struct.tableName = iprot.readBinary(); 5639 struct.setTableNameIsSet(true); 5640 } 5641 } 5642 } 5643 5644 } 5645 5646 public static class disableTable_result implements org.apache.thrift.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable { 5647 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_result"); 5648 5649 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 5650 5651 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 5652 static { 5653 schemes.put(StandardScheme.class, new disableTable_resultStandardSchemeFactory()); 5654 schemes.put(TupleScheme.class, new disableTable_resultTupleSchemeFactory()); 5655 } 5656 5657 public IOError io; // required 5658 5659 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 5660 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 5661 IO((short)1, "io"); 5662 5663 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 5664 5665 static { 5666 for (_Fields field : EnumSet.allOf(_Fields.class)) { 5667 byName.put(field.getFieldName(), field); 5668 } 5669 } 5670 5671 /** 5672 * Find the _Fields constant that matches fieldId, or null if its not found. 5673 */ 5674 public static _Fields findByThriftId(int fieldId) { 5675 switch(fieldId) { 5676 case 1: // IO 5677 return IO; 5678 default: 5679 return null; 5680 } 5681 } 5682 5683 /** 5684 * Find the _Fields constant that matches fieldId, throwing an exception 5685 * if it is not found. 5686 */ 5687 public static _Fields findByThriftIdOrThrow(int fieldId) { 5688 _Fields fields = findByThriftId(fieldId); 5689 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 5690 return fields; 5691 } 5692 5693 /** 5694 * Find the _Fields constant that matches name, or null if its not found. 5695 */ 5696 public static _Fields findByName(String name) { 5697 return byName.get(name); 5698 } 5699 5700 private final short _thriftId; 5701 private final String _fieldName; 5702 5703 _Fields(short thriftId, String fieldName) { 5704 _thriftId = thriftId; 5705 _fieldName = fieldName; 5706 } 5707 5708 public short getThriftFieldId() { 5709 return _thriftId; 5710 } 5711 5712 public String getFieldName() { 5713 return _fieldName; 5714 } 5715 } 5716 5717 // isset id assignments 5718 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 5719 static { 5720 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 5721 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 5722 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 5723 metaDataMap = Collections.unmodifiableMap(tmpMap); 5724 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap); 5725 } 5726 5727 public disableTable_result() { 5728 } 5729 5730 public disableTable_result( 5731 IOError io) 5732 { 5733 this(); 5734 this.io = io; 5735 } 5736 5737 /** 5738 * Performs a deep copy on <i>other</i>. 5739 */ 5740 public disableTable_result(disableTable_result other) { 5741 if (other.isSetIo()) { 5742 this.io = new IOError(other.io); 5743 } 5744 } 5745 5746 public disableTable_result deepCopy() { 5747 return new disableTable_result(this); 5748 } 5749 5750 @Override 5751 public void clear() { 5752 this.io = null; 5753 } 5754 5755 public IOError getIo() { 5756 return this.io; 5757 } 5758 5759 public disableTable_result setIo(IOError io) { 5760 this.io = io; 5761 return this; 5762 } 5763 5764 public void unsetIo() { 5765 this.io = null; 5766 } 5767 5768 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 5769 public boolean isSetIo() { 5770 return this.io != null; 5771 } 5772 5773 public void setIoIsSet(boolean value) { 5774 if (!value) { 5775 this.io = null; 5776 } 5777 } 5778 5779 public void setFieldValue(_Fields field, Object value) { 5780 switch (field) { 5781 case IO: 5782 if (value == null) { 5783 unsetIo(); 5784 } else { 5785 setIo((IOError)value); 5786 } 5787 break; 5788 5789 } 5790 } 5791 5792 public Object getFieldValue(_Fields field) { 5793 switch (field) { 5794 case IO: 5795 return getIo(); 5796 5797 } 5798 throw new IllegalStateException(); 5799 } 5800 5801 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 5802 public boolean isSet(_Fields field) { 5803 if (field == null) { 5804 throw new IllegalArgumentException(); 5805 } 5806 5807 switch (field) { 5808 case IO: 5809 return isSetIo(); 5810 } 5811 throw new IllegalStateException(); 5812 } 5813 5814 @Override 5815 public boolean equals(Object that) { 5816 if (that == null) 5817 return false; 5818 if (that instanceof disableTable_result) 5819 return this.equals((disableTable_result)that); 5820 return false; 5821 } 5822 5823 public boolean equals(disableTable_result that) { 5824 if (that == null) 5825 return false; 5826 5827 boolean this_present_io = true && this.isSetIo(); 5828 boolean that_present_io = true && that.isSetIo(); 5829 if (this_present_io || that_present_io) { 5830 if (!(this_present_io && that_present_io)) 5831 return false; 5832 if (!this.io.equals(that.io)) 5833 return false; 5834 } 5835 5836 return true; 5837 } 5838 5839 @Override 5840 public int hashCode() { 5841 HashCodeBuilder builder = new HashCodeBuilder(); 5842 5843 boolean present_io = true && (isSetIo()); 5844 builder.append(present_io); 5845 if (present_io) 5846 builder.append(io); 5847 5848 return builder.toHashCode(); 5849 } 5850 5851 public int compareTo(disableTable_result other) { 5852 if (!getClass().equals(other.getClass())) { 5853 return getClass().getName().compareTo(other.getClass().getName()); 5854 } 5855 5856 int lastComparison = 0; 5857 disableTable_result typedOther = (disableTable_result)other; 5858 5859 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 5860 if (lastComparison != 0) { 5861 return lastComparison; 5862 } 5863 if (isSetIo()) { 5864 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 5865 if (lastComparison != 0) { 5866 return lastComparison; 5867 } 5868 } 5869 return 0; 5870 } 5871 5872 public _Fields fieldForId(int fieldId) { 5873 return _Fields.findByThriftId(fieldId); 5874 } 5875 5876 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 5877 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 5878 } 5879 5880 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 5881 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 5882 } 5883 5884 @Override 5885 public String toString() { 5886 StringBuilder sb = new StringBuilder("disableTable_result("); 5887 boolean first = true; 5888 5889 sb.append("io:"); 5890 if (this.io == null) { 5891 sb.append("null"); 5892 } else { 5893 sb.append(this.io); 5894 } 5895 first = false; 5896 sb.append(")"); 5897 return sb.toString(); 5898 } 5899 5900 public void validate() throws org.apache.thrift.TException { 5901 // check for required fields 5902 } 5903 5904 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 5905 try { 5906 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 5907 } catch (org.apache.thrift.TException te) { 5908 throw new java.io.IOException(te); 5909 } 5910 } 5911 5912 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 5913 try { 5914 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 5915 } catch (org.apache.thrift.TException te) { 5916 throw new java.io.IOException(te); 5917 } 5918 } 5919 5920 private static class disableTable_resultStandardSchemeFactory implements SchemeFactory { 5921 public disableTable_resultStandardScheme getScheme() { 5922 return new disableTable_resultStandardScheme(); 5923 } 5924 } 5925 5926 private static class disableTable_resultStandardScheme extends StandardScheme<disableTable_result> { 5927 5928 public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException { 5929 org.apache.thrift.protocol.TField schemeField; 5930 iprot.readStructBegin(); 5931 while (true) 5932 { 5933 schemeField = iprot.readFieldBegin(); 5934 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 5935 break; 5936 } 5937 switch (schemeField.id) { 5938 case 1: // IO 5939 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 5940 struct.io = new IOError(); 5941 struct.io.read(iprot); 5942 struct.setIoIsSet(true); 5943 } else { 5944 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5945 } 5946 break; 5947 default: 5948 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 5949 } 5950 iprot.readFieldEnd(); 5951 } 5952 iprot.readStructEnd(); 5953 5954 // check for required fields of primitive type, which can't be checked in the validate method 5955 struct.validate(); 5956 } 5957 5958 public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.thrift.TException { 5959 struct.validate(); 5960 5961 oprot.writeStructBegin(STRUCT_DESC); 5962 if (struct.io != null) { 5963 oprot.writeFieldBegin(IO_FIELD_DESC); 5964 struct.io.write(oprot); 5965 oprot.writeFieldEnd(); 5966 } 5967 oprot.writeFieldStop(); 5968 oprot.writeStructEnd(); 5969 } 5970 5971 } 5972 5973 private static class disableTable_resultTupleSchemeFactory implements SchemeFactory { 5974 public disableTable_resultTupleScheme getScheme() { 5975 return new disableTable_resultTupleScheme(); 5976 } 5977 } 5978 5979 private static class disableTable_resultTupleScheme extends TupleScheme<disableTable_result> { 5980 5981 @Override 5982 public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { 5983 TTupleProtocol oprot = (TTupleProtocol) prot; 5984 BitSet optionals = new BitSet(); 5985 if (struct.isSetIo()) { 5986 optionals.set(0); 5987 } 5988 oprot.writeBitSet(optionals, 1); 5989 if (struct.isSetIo()) { 5990 struct.io.write(oprot); 5991 } 5992 } 5993 5994 @Override 5995 public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException { 5996 TTupleProtocol iprot = (TTupleProtocol) prot; 5997 BitSet incoming = iprot.readBitSet(1); 5998 if (incoming.get(0)) { 5999 struct.io = new IOError(); 6000 struct.io.read(iprot); 6001 struct.setIoIsSet(true); 6002 } 6003 } 6004 } 6005 6006 } 6007 6008 public static class isTableEnabled_args implements org.apache.thrift.TBase<isTableEnabled_args, isTableEnabled_args._Fields>, java.io.Serializable, Cloneable { 6009 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_args"); 6010 6011 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 6012 6013 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 6014 static { 6015 schemes.put(StandardScheme.class, new isTableEnabled_argsStandardSchemeFactory()); 6016 schemes.put(TupleScheme.class, new isTableEnabled_argsTupleSchemeFactory()); 6017 } 6018 6019 /** 6020 * name of the table to check 6021 */ 6022 public ByteBuffer tableName; // required 6023 6024 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 6025 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 6026 /** 6027 * name of the table to check 6028 */ 6029 TABLE_NAME((short)1, "tableName"); 6030 6031 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 6032 6033 static { 6034 for (_Fields field : EnumSet.allOf(_Fields.class)) { 6035 byName.put(field.getFieldName(), field); 6036 } 6037 } 6038 6039 /** 6040 * Find the _Fields constant that matches fieldId, or null if its not found. 6041 */ 6042 public static _Fields findByThriftId(int fieldId) { 6043 switch(fieldId) { 6044 case 1: // TABLE_NAME 6045 return TABLE_NAME; 6046 default: 6047 return null; 6048 } 6049 } 6050 6051 /** 6052 * Find the _Fields constant that matches fieldId, throwing an exception 6053 * if it is not found. 6054 */ 6055 public static _Fields findByThriftIdOrThrow(int fieldId) { 6056 _Fields fields = findByThriftId(fieldId); 6057 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 6058 return fields; 6059 } 6060 6061 /** 6062 * Find the _Fields constant that matches name, or null if its not found. 6063 */ 6064 public static _Fields findByName(String name) { 6065 return byName.get(name); 6066 } 6067 6068 private final short _thriftId; 6069 private final String _fieldName; 6070 6071 _Fields(short thriftId, String fieldName) { 6072 _thriftId = thriftId; 6073 _fieldName = fieldName; 6074 } 6075 6076 public short getThriftFieldId() { 6077 return _thriftId; 6078 } 6079 6080 public String getFieldName() { 6081 return _fieldName; 6082 } 6083 } 6084 6085 // isset id assignments 6086 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 6087 static { 6088 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 6089 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 6090 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); 6091 metaDataMap = Collections.unmodifiableMap(tmpMap); 6092 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap); 6093 } 6094 6095 public isTableEnabled_args() { 6096 } 6097 6098 public isTableEnabled_args( 6099 ByteBuffer tableName) 6100 { 6101 this(); 6102 this.tableName = tableName; 6103 } 6104 6105 /** 6106 * Performs a deep copy on <i>other</i>. 6107 */ 6108 public isTableEnabled_args(isTableEnabled_args other) { 6109 if (other.isSetTableName()) { 6110 this.tableName = other.tableName; 6111 } 6112 } 6113 6114 public isTableEnabled_args deepCopy() { 6115 return new isTableEnabled_args(this); 6116 } 6117 6118 @Override 6119 public void clear() { 6120 this.tableName = null; 6121 } 6122 6123 /** 6124 * name of the table to check 6125 */ 6126 public byte[] getTableName() { 6127 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 6128 return tableName == null ? null : tableName.array(); 6129 } 6130 6131 public ByteBuffer bufferForTableName() { 6132 return tableName; 6133 } 6134 6135 /** 6136 * name of the table to check 6137 */ 6138 public isTableEnabled_args setTableName(byte[] tableName) { 6139 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 6140 return this; 6141 } 6142 6143 public isTableEnabled_args setTableName(ByteBuffer tableName) { 6144 this.tableName = tableName; 6145 return this; 6146 } 6147 6148 public void unsetTableName() { 6149 this.tableName = null; 6150 } 6151 6152 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 6153 public boolean isSetTableName() { 6154 return this.tableName != null; 6155 } 6156 6157 public void setTableNameIsSet(boolean value) { 6158 if (!value) { 6159 this.tableName = null; 6160 } 6161 } 6162 6163 public void setFieldValue(_Fields field, Object value) { 6164 switch (field) { 6165 case TABLE_NAME: 6166 if (value == null) { 6167 unsetTableName(); 6168 } else { 6169 setTableName((ByteBuffer)value); 6170 } 6171 break; 6172 6173 } 6174 } 6175 6176 public Object getFieldValue(_Fields field) { 6177 switch (field) { 6178 case TABLE_NAME: 6179 return getTableName(); 6180 6181 } 6182 throw new IllegalStateException(); 6183 } 6184 6185 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 6186 public boolean isSet(_Fields field) { 6187 if (field == null) { 6188 throw new IllegalArgumentException(); 6189 } 6190 6191 switch (field) { 6192 case TABLE_NAME: 6193 return isSetTableName(); 6194 } 6195 throw new IllegalStateException(); 6196 } 6197 6198 @Override 6199 public boolean equals(Object that) { 6200 if (that == null) 6201 return false; 6202 if (that instanceof isTableEnabled_args) 6203 return this.equals((isTableEnabled_args)that); 6204 return false; 6205 } 6206 6207 public boolean equals(isTableEnabled_args that) { 6208 if (that == null) 6209 return false; 6210 6211 boolean this_present_tableName = true && this.isSetTableName(); 6212 boolean that_present_tableName = true && that.isSetTableName(); 6213 if (this_present_tableName || that_present_tableName) { 6214 if (!(this_present_tableName && that_present_tableName)) 6215 return false; 6216 if (!this.tableName.equals(that.tableName)) 6217 return false; 6218 } 6219 6220 return true; 6221 } 6222 6223 @Override 6224 public int hashCode() { 6225 HashCodeBuilder builder = new HashCodeBuilder(); 6226 6227 boolean present_tableName = true && (isSetTableName()); 6228 builder.append(present_tableName); 6229 if (present_tableName) 6230 builder.append(tableName); 6231 6232 return builder.toHashCode(); 6233 } 6234 6235 public int compareTo(isTableEnabled_args other) { 6236 if (!getClass().equals(other.getClass())) { 6237 return getClass().getName().compareTo(other.getClass().getName()); 6238 } 6239 6240 int lastComparison = 0; 6241 isTableEnabled_args typedOther = (isTableEnabled_args)other; 6242 6243 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 6244 if (lastComparison != 0) { 6245 return lastComparison; 6246 } 6247 if (isSetTableName()) { 6248 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 6249 if (lastComparison != 0) { 6250 return lastComparison; 6251 } 6252 } 6253 return 0; 6254 } 6255 6256 public _Fields fieldForId(int fieldId) { 6257 return _Fields.findByThriftId(fieldId); 6258 } 6259 6260 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 6261 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 6262 } 6263 6264 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 6265 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 6266 } 6267 6268 @Override 6269 public String toString() { 6270 StringBuilder sb = new StringBuilder("isTableEnabled_args("); 6271 boolean first = true; 6272 6273 sb.append("tableName:"); 6274 if (this.tableName == null) { 6275 sb.append("null"); 6276 } else { 6277 sb.append(this.tableName); 6278 } 6279 first = false; 6280 sb.append(")"); 6281 return sb.toString(); 6282 } 6283 6284 public void validate() throws org.apache.thrift.TException { 6285 // check for required fields 6286 } 6287 6288 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 6289 try { 6290 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 6291 } catch (org.apache.thrift.TException te) { 6292 throw new java.io.IOException(te); 6293 } 6294 } 6295 6296 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 6297 try { 6298 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 6299 } catch (org.apache.thrift.TException te) { 6300 throw new java.io.IOException(te); 6301 } 6302 } 6303 6304 private static class isTableEnabled_argsStandardSchemeFactory implements SchemeFactory { 6305 public isTableEnabled_argsStandardScheme getScheme() { 6306 return new isTableEnabled_argsStandardScheme(); 6307 } 6308 } 6309 6310 private static class isTableEnabled_argsStandardScheme extends StandardScheme<isTableEnabled_args> { 6311 6312 public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException { 6313 org.apache.thrift.protocol.TField schemeField; 6314 iprot.readStructBegin(); 6315 while (true) 6316 { 6317 schemeField = iprot.readFieldBegin(); 6318 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 6319 break; 6320 } 6321 switch (schemeField.id) { 6322 case 1: // TABLE_NAME 6323 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 6324 struct.tableName = iprot.readBinary(); 6325 struct.setTableNameIsSet(true); 6326 } else { 6327 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 6328 } 6329 break; 6330 default: 6331 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 6332 } 6333 iprot.readFieldEnd(); 6334 } 6335 iprot.readStructEnd(); 6336 6337 // check for required fields of primitive type, which can't be checked in the validate method 6338 struct.validate(); 6339 } 6340 6341 public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_args struct) throws org.apache.thrift.TException { 6342 struct.validate(); 6343 6344 oprot.writeStructBegin(STRUCT_DESC); 6345 if (struct.tableName != null) { 6346 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 6347 oprot.writeBinary(struct.tableName); 6348 oprot.writeFieldEnd(); 6349 } 6350 oprot.writeFieldStop(); 6351 oprot.writeStructEnd(); 6352 } 6353 6354 } 6355 6356 private static class isTableEnabled_argsTupleSchemeFactory implements SchemeFactory { 6357 public isTableEnabled_argsTupleScheme getScheme() { 6358 return new isTableEnabled_argsTupleScheme(); 6359 } 6360 } 6361 6362 private static class isTableEnabled_argsTupleScheme extends TupleScheme<isTableEnabled_args> { 6363 6364 @Override 6365 public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { 6366 TTupleProtocol oprot = (TTupleProtocol) prot; 6367 BitSet optionals = new BitSet(); 6368 if (struct.isSetTableName()) { 6369 optionals.set(0); 6370 } 6371 oprot.writeBitSet(optionals, 1); 6372 if (struct.isSetTableName()) { 6373 oprot.writeBinary(struct.tableName); 6374 } 6375 } 6376 6377 @Override 6378 public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException { 6379 TTupleProtocol iprot = (TTupleProtocol) prot; 6380 BitSet incoming = iprot.readBitSet(1); 6381 if (incoming.get(0)) { 6382 struct.tableName = iprot.readBinary(); 6383 struct.setTableNameIsSet(true); 6384 } 6385 } 6386 } 6387 6388 } 6389 6390 public static class isTableEnabled_result implements org.apache.thrift.TBase<isTableEnabled_result, isTableEnabled_result._Fields>, java.io.Serializable, Cloneable { 6391 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_result"); 6392 6393 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); 6394 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 6395 6396 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 6397 static { 6398 schemes.put(StandardScheme.class, new isTableEnabled_resultStandardSchemeFactory()); 6399 schemes.put(TupleScheme.class, new isTableEnabled_resultTupleSchemeFactory()); 6400 } 6401 6402 public boolean success; // required 6403 public IOError io; // required 6404 6405 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 6406 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 6407 SUCCESS((short)0, "success"), 6408 IO((short)1, "io"); 6409 6410 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 6411 6412 static { 6413 for (_Fields field : EnumSet.allOf(_Fields.class)) { 6414 byName.put(field.getFieldName(), field); 6415 } 6416 } 6417 6418 /** 6419 * Find the _Fields constant that matches fieldId, or null if its not found. 6420 */ 6421 public static _Fields findByThriftId(int fieldId) { 6422 switch(fieldId) { 6423 case 0: // SUCCESS 6424 return SUCCESS; 6425 case 1: // IO 6426 return IO; 6427 default: 6428 return null; 6429 } 6430 } 6431 6432 /** 6433 * Find the _Fields constant that matches fieldId, throwing an exception 6434 * if it is not found. 6435 */ 6436 public static _Fields findByThriftIdOrThrow(int fieldId) { 6437 _Fields fields = findByThriftId(fieldId); 6438 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 6439 return fields; 6440 } 6441 6442 /** 6443 * Find the _Fields constant that matches name, or null if its not found. 6444 */ 6445 public static _Fields findByName(String name) { 6446 return byName.get(name); 6447 } 6448 6449 private final short _thriftId; 6450 private final String _fieldName; 6451 6452 _Fields(short thriftId, String fieldName) { 6453 _thriftId = thriftId; 6454 _fieldName = fieldName; 6455 } 6456 6457 public short getThriftFieldId() { 6458 return _thriftId; 6459 } 6460 6461 public String getFieldName() { 6462 return _fieldName; 6463 } 6464 } 6465 6466 // isset id assignments 6467 private static final int __SUCCESS_ISSET_ID = 0; 6468 private BitSet __isset_bit_vector = new BitSet(1); 6469 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 6470 static { 6471 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 6472 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 6473 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); 6474 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 6475 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 6476 metaDataMap = Collections.unmodifiableMap(tmpMap); 6477 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap); 6478 } 6479 6480 public isTableEnabled_result() { 6481 } 6482 6483 public isTableEnabled_result( 6484 boolean success, 6485 IOError io) 6486 { 6487 this(); 6488 this.success = success; 6489 setSuccessIsSet(true); 6490 this.io = io; 6491 } 6492 6493 /** 6494 * Performs a deep copy on <i>other</i>. 6495 */ 6496 public isTableEnabled_result(isTableEnabled_result other) { 6497 __isset_bit_vector.clear(); 6498 __isset_bit_vector.or(other.__isset_bit_vector); 6499 this.success = other.success; 6500 if (other.isSetIo()) { 6501 this.io = new IOError(other.io); 6502 } 6503 } 6504 6505 public isTableEnabled_result deepCopy() { 6506 return new isTableEnabled_result(this); 6507 } 6508 6509 @Override 6510 public void clear() { 6511 setSuccessIsSet(false); 6512 this.success = false; 6513 this.io = null; 6514 } 6515 6516 public boolean isSuccess() { 6517 return this.success; 6518 } 6519 6520 public isTableEnabled_result setSuccess(boolean success) { 6521 this.success = success; 6522 setSuccessIsSet(true); 6523 return this; 6524 } 6525 6526 public void unsetSuccess() { 6527 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 6528 } 6529 6530 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 6531 public boolean isSetSuccess() { 6532 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 6533 } 6534 6535 public void setSuccessIsSet(boolean value) { 6536 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 6537 } 6538 6539 public IOError getIo() { 6540 return this.io; 6541 } 6542 6543 public isTableEnabled_result setIo(IOError io) { 6544 this.io = io; 6545 return this; 6546 } 6547 6548 public void unsetIo() { 6549 this.io = null; 6550 } 6551 6552 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 6553 public boolean isSetIo() { 6554 return this.io != null; 6555 } 6556 6557 public void setIoIsSet(boolean value) { 6558 if (!value) { 6559 this.io = null; 6560 } 6561 } 6562 6563 public void setFieldValue(_Fields field, Object value) { 6564 switch (field) { 6565 case SUCCESS: 6566 if (value == null) { 6567 unsetSuccess(); 6568 } else { 6569 setSuccess((Boolean)value); 6570 } 6571 break; 6572 6573 case IO: 6574 if (value == null) { 6575 unsetIo(); 6576 } else { 6577 setIo((IOError)value); 6578 } 6579 break; 6580 6581 } 6582 } 6583 6584 public Object getFieldValue(_Fields field) { 6585 switch (field) { 6586 case SUCCESS: 6587 return Boolean.valueOf(isSuccess()); 6588 6589 case IO: 6590 return getIo(); 6591 6592 } 6593 throw new IllegalStateException(); 6594 } 6595 6596 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 6597 public boolean isSet(_Fields field) { 6598 if (field == null) { 6599 throw new IllegalArgumentException(); 6600 } 6601 6602 switch (field) { 6603 case SUCCESS: 6604 return isSetSuccess(); 6605 case IO: 6606 return isSetIo(); 6607 } 6608 throw new IllegalStateException(); 6609 } 6610 6611 @Override 6612 public boolean equals(Object that) { 6613 if (that == null) 6614 return false; 6615 if (that instanceof isTableEnabled_result) 6616 return this.equals((isTableEnabled_result)that); 6617 return false; 6618 } 6619 6620 public boolean equals(isTableEnabled_result that) { 6621 if (that == null) 6622 return false; 6623 6624 boolean this_present_success = true; 6625 boolean that_present_success = true; 6626 if (this_present_success || that_present_success) { 6627 if (!(this_present_success && that_present_success)) 6628 return false; 6629 if (this.success != that.success) 6630 return false; 6631 } 6632 6633 boolean this_present_io = true && this.isSetIo(); 6634 boolean that_present_io = true && that.isSetIo(); 6635 if (this_present_io || that_present_io) { 6636 if (!(this_present_io && that_present_io)) 6637 return false; 6638 if (!this.io.equals(that.io)) 6639 return false; 6640 } 6641 6642 return true; 6643 } 6644 6645 @Override 6646 public int hashCode() { 6647 HashCodeBuilder builder = new HashCodeBuilder(); 6648 6649 boolean present_success = true; 6650 builder.append(present_success); 6651 if (present_success) 6652 builder.append(success); 6653 6654 boolean present_io = true && (isSetIo()); 6655 builder.append(present_io); 6656 if (present_io) 6657 builder.append(io); 6658 6659 return builder.toHashCode(); 6660 } 6661 6662 public int compareTo(isTableEnabled_result other) { 6663 if (!getClass().equals(other.getClass())) { 6664 return getClass().getName().compareTo(other.getClass().getName()); 6665 } 6666 6667 int lastComparison = 0; 6668 isTableEnabled_result typedOther = (isTableEnabled_result)other; 6669 6670 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 6671 if (lastComparison != 0) { 6672 return lastComparison; 6673 } 6674 if (isSetSuccess()) { 6675 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 6676 if (lastComparison != 0) { 6677 return lastComparison; 6678 } 6679 } 6680 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 6681 if (lastComparison != 0) { 6682 return lastComparison; 6683 } 6684 if (isSetIo()) { 6685 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 6686 if (lastComparison != 0) { 6687 return lastComparison; 6688 } 6689 } 6690 return 0; 6691 } 6692 6693 public _Fields fieldForId(int fieldId) { 6694 return _Fields.findByThriftId(fieldId); 6695 } 6696 6697 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 6698 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 6699 } 6700 6701 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 6702 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 6703 } 6704 6705 @Override 6706 public String toString() { 6707 StringBuilder sb = new StringBuilder("isTableEnabled_result("); 6708 boolean first = true; 6709 6710 sb.append("success:"); 6711 sb.append(this.success); 6712 first = false; 6713 if (!first) sb.append(", "); 6714 sb.append("io:"); 6715 if (this.io == null) { 6716 sb.append("null"); 6717 } else { 6718 sb.append(this.io); 6719 } 6720 first = false; 6721 sb.append(")"); 6722 return sb.toString(); 6723 } 6724 6725 public void validate() throws org.apache.thrift.TException { 6726 // check for required fields 6727 } 6728 6729 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 6730 try { 6731 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 6732 } catch (org.apache.thrift.TException te) { 6733 throw new java.io.IOException(te); 6734 } 6735 } 6736 6737 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 6738 try { 6739 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 6740 } catch (org.apache.thrift.TException te) { 6741 throw new java.io.IOException(te); 6742 } 6743 } 6744 6745 private static class isTableEnabled_resultStandardSchemeFactory implements SchemeFactory { 6746 public isTableEnabled_resultStandardScheme getScheme() { 6747 return new isTableEnabled_resultStandardScheme(); 6748 } 6749 } 6750 6751 private static class isTableEnabled_resultStandardScheme extends StandardScheme<isTableEnabled_result> { 6752 6753 public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException { 6754 org.apache.thrift.protocol.TField schemeField; 6755 iprot.readStructBegin(); 6756 while (true) 6757 { 6758 schemeField = iprot.readFieldBegin(); 6759 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 6760 break; 6761 } 6762 switch (schemeField.id) { 6763 case 0: // SUCCESS 6764 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { 6765 struct.success = iprot.readBool(); 6766 struct.setSuccessIsSet(true); 6767 } else { 6768 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 6769 } 6770 break; 6771 case 1: // IO 6772 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 6773 struct.io = new IOError(); 6774 struct.io.read(iprot); 6775 struct.setIoIsSet(true); 6776 } else { 6777 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 6778 } 6779 break; 6780 default: 6781 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 6782 } 6783 iprot.readFieldEnd(); 6784 } 6785 iprot.readStructEnd(); 6786 6787 // check for required fields of primitive type, which can't be checked in the validate method 6788 struct.validate(); 6789 } 6790 6791 public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_result struct) throws org.apache.thrift.TException { 6792 struct.validate(); 6793 6794 oprot.writeStructBegin(STRUCT_DESC); 6795 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 6796 oprot.writeBool(struct.success); 6797 oprot.writeFieldEnd(); 6798 if (struct.io != null) { 6799 oprot.writeFieldBegin(IO_FIELD_DESC); 6800 struct.io.write(oprot); 6801 oprot.writeFieldEnd(); 6802 } 6803 oprot.writeFieldStop(); 6804 oprot.writeStructEnd(); 6805 } 6806 6807 } 6808 6809 private static class isTableEnabled_resultTupleSchemeFactory implements SchemeFactory { 6810 public isTableEnabled_resultTupleScheme getScheme() { 6811 return new isTableEnabled_resultTupleScheme(); 6812 } 6813 } 6814 6815 private static class isTableEnabled_resultTupleScheme extends TupleScheme<isTableEnabled_result> { 6816 6817 @Override 6818 public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { 6819 TTupleProtocol oprot = (TTupleProtocol) prot; 6820 BitSet optionals = new BitSet(); 6821 if (struct.isSetSuccess()) { 6822 optionals.set(0); 6823 } 6824 if (struct.isSetIo()) { 6825 optionals.set(1); 6826 } 6827 oprot.writeBitSet(optionals, 2); 6828 if (struct.isSetSuccess()) { 6829 oprot.writeBool(struct.success); 6830 } 6831 if (struct.isSetIo()) { 6832 struct.io.write(oprot); 6833 } 6834 } 6835 6836 @Override 6837 public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException { 6838 TTupleProtocol iprot = (TTupleProtocol) prot; 6839 BitSet incoming = iprot.readBitSet(2); 6840 if (incoming.get(0)) { 6841 struct.success = iprot.readBool(); 6842 struct.setSuccessIsSet(true); 6843 } 6844 if (incoming.get(1)) { 6845 struct.io = new IOError(); 6846 struct.io.read(iprot); 6847 struct.setIoIsSet(true); 6848 } 6849 } 6850 } 6851 6852 } 6853 6854 public static class compact_args implements org.apache.thrift.TBase<compact_args, compact_args._Fields>, java.io.Serializable, Cloneable { 6855 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args"); 6856 6857 private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1); 6858 6859 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 6860 static { 6861 schemes.put(StandardScheme.class, new compact_argsStandardSchemeFactory()); 6862 schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory()); 6863 } 6864 6865 public ByteBuffer tableNameOrRegionName; // required 6866 6867 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 6868 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 6869 TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName"); 6870 6871 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 6872 6873 static { 6874 for (_Fields field : EnumSet.allOf(_Fields.class)) { 6875 byName.put(field.getFieldName(), field); 6876 } 6877 } 6878 6879 /** 6880 * Find the _Fields constant that matches fieldId, or null if its not found. 6881 */ 6882 public static _Fields findByThriftId(int fieldId) { 6883 switch(fieldId) { 6884 case 1: // TABLE_NAME_OR_REGION_NAME 6885 return TABLE_NAME_OR_REGION_NAME; 6886 default: 6887 return null; 6888 } 6889 } 6890 6891 /** 6892 * Find the _Fields constant that matches fieldId, throwing an exception 6893 * if it is not found. 6894 */ 6895 public static _Fields findByThriftIdOrThrow(int fieldId) { 6896 _Fields fields = findByThriftId(fieldId); 6897 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 6898 return fields; 6899 } 6900 6901 /** 6902 * Find the _Fields constant that matches name, or null if its not found. 6903 */ 6904 public static _Fields findByName(String name) { 6905 return byName.get(name); 6906 } 6907 6908 private final short _thriftId; 6909 private final String _fieldName; 6910 6911 _Fields(short thriftId, String fieldName) { 6912 _thriftId = thriftId; 6913 _fieldName = fieldName; 6914 } 6915 6916 public short getThriftFieldId() { 6917 return _thriftId; 6918 } 6919 6920 public String getFieldName() { 6921 return _fieldName; 6922 } 6923 } 6924 6925 // isset id assignments 6926 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 6927 static { 6928 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 6929 tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, 6930 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); 6931 metaDataMap = Collections.unmodifiableMap(tmpMap); 6932 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap); 6933 } 6934 6935 public compact_args() { 6936 } 6937 6938 public compact_args( 6939 ByteBuffer tableNameOrRegionName) 6940 { 6941 this(); 6942 this.tableNameOrRegionName = tableNameOrRegionName; 6943 } 6944 6945 /** 6946 * Performs a deep copy on <i>other</i>. 6947 */ 6948 public compact_args(compact_args other) { 6949 if (other.isSetTableNameOrRegionName()) { 6950 this.tableNameOrRegionName = other.tableNameOrRegionName; 6951 } 6952 } 6953 6954 public compact_args deepCopy() { 6955 return new compact_args(this); 6956 } 6957 6958 @Override 6959 public void clear() { 6960 this.tableNameOrRegionName = null; 6961 } 6962 6963 public byte[] getTableNameOrRegionName() { 6964 setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName)); 6965 return tableNameOrRegionName == null ? null : tableNameOrRegionName.array(); 6966 } 6967 6968 public ByteBuffer bufferForTableNameOrRegionName() { 6969 return tableNameOrRegionName; 6970 } 6971 6972 public compact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { 6973 setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName)); 6974 return this; 6975 } 6976 6977 public compact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { 6978 this.tableNameOrRegionName = tableNameOrRegionName; 6979 return this; 6980 } 6981 6982 public void unsetTableNameOrRegionName() { 6983 this.tableNameOrRegionName = null; 6984 } 6985 6986 /** Returns true if field tableNameOrRegionName is set (has been assigned a value) and false otherwise */ 6987 public boolean isSetTableNameOrRegionName() { 6988 return this.tableNameOrRegionName != null; 6989 } 6990 6991 public void setTableNameOrRegionNameIsSet(boolean value) { 6992 if (!value) { 6993 this.tableNameOrRegionName = null; 6994 } 6995 } 6996 6997 public void setFieldValue(_Fields field, Object value) { 6998 switch (field) { 6999 case TABLE_NAME_OR_REGION_NAME: 7000 if (value == null) { 7001 unsetTableNameOrRegionName(); 7002 } else { 7003 setTableNameOrRegionName((ByteBuffer)value); 7004 } 7005 break; 7006 7007 } 7008 } 7009 7010 public Object getFieldValue(_Fields field) { 7011 switch (field) { 7012 case TABLE_NAME_OR_REGION_NAME: 7013 return getTableNameOrRegionName(); 7014 7015 } 7016 throw new IllegalStateException(); 7017 } 7018 7019 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 7020 public boolean isSet(_Fields field) { 7021 if (field == null) { 7022 throw new IllegalArgumentException(); 7023 } 7024 7025 switch (field) { 7026 case TABLE_NAME_OR_REGION_NAME: 7027 return isSetTableNameOrRegionName(); 7028 } 7029 throw new IllegalStateException(); 7030 } 7031 7032 @Override 7033 public boolean equals(Object that) { 7034 if (that == null) 7035 return false; 7036 if (that instanceof compact_args) 7037 return this.equals((compact_args)that); 7038 return false; 7039 } 7040 7041 public boolean equals(compact_args that) { 7042 if (that == null) 7043 return false; 7044 7045 boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName(); 7046 boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName(); 7047 if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) { 7048 if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName)) 7049 return false; 7050 if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName)) 7051 return false; 7052 } 7053 7054 return true; 7055 } 7056 7057 @Override 7058 public int hashCode() { 7059 HashCodeBuilder builder = new HashCodeBuilder(); 7060 7061 boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); 7062 builder.append(present_tableNameOrRegionName); 7063 if (present_tableNameOrRegionName) 7064 builder.append(tableNameOrRegionName); 7065 7066 return builder.toHashCode(); 7067 } 7068 7069 public int compareTo(compact_args other) { 7070 if (!getClass().equals(other.getClass())) { 7071 return getClass().getName().compareTo(other.getClass().getName()); 7072 } 7073 7074 int lastComparison = 0; 7075 compact_args typedOther = (compact_args)other; 7076 7077 lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName()); 7078 if (lastComparison != 0) { 7079 return lastComparison; 7080 } 7081 if (isSetTableNameOrRegionName()) { 7082 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName); 7083 if (lastComparison != 0) { 7084 return lastComparison; 7085 } 7086 } 7087 return 0; 7088 } 7089 7090 public _Fields fieldForId(int fieldId) { 7091 return _Fields.findByThriftId(fieldId); 7092 } 7093 7094 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 7095 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 7096 } 7097 7098 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 7099 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 7100 } 7101 7102 @Override 7103 public String toString() { 7104 StringBuilder sb = new StringBuilder("compact_args("); 7105 boolean first = true; 7106 7107 sb.append("tableNameOrRegionName:"); 7108 if (this.tableNameOrRegionName == null) { 7109 sb.append("null"); 7110 } else { 7111 sb.append(this.tableNameOrRegionName); 7112 } 7113 first = false; 7114 sb.append(")"); 7115 return sb.toString(); 7116 } 7117 7118 public void validate() throws org.apache.thrift.TException { 7119 // check for required fields 7120 } 7121 7122 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 7123 try { 7124 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 7125 } catch (org.apache.thrift.TException te) { 7126 throw new java.io.IOException(te); 7127 } 7128 } 7129 7130 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 7131 try { 7132 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 7133 } catch (org.apache.thrift.TException te) { 7134 throw new java.io.IOException(te); 7135 } 7136 } 7137 7138 private static class compact_argsStandardSchemeFactory implements SchemeFactory { 7139 public compact_argsStandardScheme getScheme() { 7140 return new compact_argsStandardScheme(); 7141 } 7142 } 7143 7144 private static class compact_argsStandardScheme extends StandardScheme<compact_args> { 7145 7146 public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct) throws org.apache.thrift.TException { 7147 org.apache.thrift.protocol.TField schemeField; 7148 iprot.readStructBegin(); 7149 while (true) 7150 { 7151 schemeField = iprot.readFieldBegin(); 7152 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 7153 break; 7154 } 7155 switch (schemeField.id) { 7156 case 1: // TABLE_NAME_OR_REGION_NAME 7157 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 7158 struct.tableNameOrRegionName = iprot.readBinary(); 7159 struct.setTableNameOrRegionNameIsSet(true); 7160 } else { 7161 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7162 } 7163 break; 7164 default: 7165 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7166 } 7167 iprot.readFieldEnd(); 7168 } 7169 iprot.readStructEnd(); 7170 7171 // check for required fields of primitive type, which can't be checked in the validate method 7172 struct.validate(); 7173 } 7174 7175 public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struct) throws org.apache.thrift.TException { 7176 struct.validate(); 7177 7178 oprot.writeStructBegin(STRUCT_DESC); 7179 if (struct.tableNameOrRegionName != null) { 7180 oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC); 7181 oprot.writeBinary(struct.tableNameOrRegionName); 7182 oprot.writeFieldEnd(); 7183 } 7184 oprot.writeFieldStop(); 7185 oprot.writeStructEnd(); 7186 } 7187 7188 } 7189 7190 private static class compact_argsTupleSchemeFactory implements SchemeFactory { 7191 public compact_argsTupleScheme getScheme() { 7192 return new compact_argsTupleScheme(); 7193 } 7194 } 7195 7196 private static class compact_argsTupleScheme extends TupleScheme<compact_args> { 7197 7198 @Override 7199 public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { 7200 TTupleProtocol oprot = (TTupleProtocol) prot; 7201 BitSet optionals = new BitSet(); 7202 if (struct.isSetTableNameOrRegionName()) { 7203 optionals.set(0); 7204 } 7205 oprot.writeBitSet(optionals, 1); 7206 if (struct.isSetTableNameOrRegionName()) { 7207 oprot.writeBinary(struct.tableNameOrRegionName); 7208 } 7209 } 7210 7211 @Override 7212 public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException { 7213 TTupleProtocol iprot = (TTupleProtocol) prot; 7214 BitSet incoming = iprot.readBitSet(1); 7215 if (incoming.get(0)) { 7216 struct.tableNameOrRegionName = iprot.readBinary(); 7217 struct.setTableNameOrRegionNameIsSet(true); 7218 } 7219 } 7220 } 7221 7222 } 7223 7224 public static class compact_result implements org.apache.thrift.TBase<compact_result, compact_result._Fields>, java.io.Serializable, Cloneable { 7225 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result"); 7226 7227 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 7228 7229 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 7230 static { 7231 schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory()); 7232 schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory()); 7233 } 7234 7235 public IOError io; // required 7236 7237 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 7238 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 7239 IO((short)1, "io"); 7240 7241 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 7242 7243 static { 7244 for (_Fields field : EnumSet.allOf(_Fields.class)) { 7245 byName.put(field.getFieldName(), field); 7246 } 7247 } 7248 7249 /** 7250 * Find the _Fields constant that matches fieldId, or null if its not found. 7251 */ 7252 public static _Fields findByThriftId(int fieldId) { 7253 switch(fieldId) { 7254 case 1: // IO 7255 return IO; 7256 default: 7257 return null; 7258 } 7259 } 7260 7261 /** 7262 * Find the _Fields constant that matches fieldId, throwing an exception 7263 * if it is not found. 7264 */ 7265 public static _Fields findByThriftIdOrThrow(int fieldId) { 7266 _Fields fields = findByThriftId(fieldId); 7267 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 7268 return fields; 7269 } 7270 7271 /** 7272 * Find the _Fields constant that matches name, or null if its not found. 7273 */ 7274 public static _Fields findByName(String name) { 7275 return byName.get(name); 7276 } 7277 7278 private final short _thriftId; 7279 private final String _fieldName; 7280 7281 _Fields(short thriftId, String fieldName) { 7282 _thriftId = thriftId; 7283 _fieldName = fieldName; 7284 } 7285 7286 public short getThriftFieldId() { 7287 return _thriftId; 7288 } 7289 7290 public String getFieldName() { 7291 return _fieldName; 7292 } 7293 } 7294 7295 // isset id assignments 7296 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 7297 static { 7298 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 7299 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 7300 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 7301 metaDataMap = Collections.unmodifiableMap(tmpMap); 7302 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap); 7303 } 7304 7305 public compact_result() { 7306 } 7307 7308 public compact_result( 7309 IOError io) 7310 { 7311 this(); 7312 this.io = io; 7313 } 7314 7315 /** 7316 * Performs a deep copy on <i>other</i>. 7317 */ 7318 public compact_result(compact_result other) { 7319 if (other.isSetIo()) { 7320 this.io = new IOError(other.io); 7321 } 7322 } 7323 7324 public compact_result deepCopy() { 7325 return new compact_result(this); 7326 } 7327 7328 @Override 7329 public void clear() { 7330 this.io = null; 7331 } 7332 7333 public IOError getIo() { 7334 return this.io; 7335 } 7336 7337 public compact_result setIo(IOError io) { 7338 this.io = io; 7339 return this; 7340 } 7341 7342 public void unsetIo() { 7343 this.io = null; 7344 } 7345 7346 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 7347 public boolean isSetIo() { 7348 return this.io != null; 7349 } 7350 7351 public void setIoIsSet(boolean value) { 7352 if (!value) { 7353 this.io = null; 7354 } 7355 } 7356 7357 public void setFieldValue(_Fields field, Object value) { 7358 switch (field) { 7359 case IO: 7360 if (value == null) { 7361 unsetIo(); 7362 } else { 7363 setIo((IOError)value); 7364 } 7365 break; 7366 7367 } 7368 } 7369 7370 public Object getFieldValue(_Fields field) { 7371 switch (field) { 7372 case IO: 7373 return getIo(); 7374 7375 } 7376 throw new IllegalStateException(); 7377 } 7378 7379 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 7380 public boolean isSet(_Fields field) { 7381 if (field == null) { 7382 throw new IllegalArgumentException(); 7383 } 7384 7385 switch (field) { 7386 case IO: 7387 return isSetIo(); 7388 } 7389 throw new IllegalStateException(); 7390 } 7391 7392 @Override 7393 public boolean equals(Object that) { 7394 if (that == null) 7395 return false; 7396 if (that instanceof compact_result) 7397 return this.equals((compact_result)that); 7398 return false; 7399 } 7400 7401 public boolean equals(compact_result that) { 7402 if (that == null) 7403 return false; 7404 7405 boolean this_present_io = true && this.isSetIo(); 7406 boolean that_present_io = true && that.isSetIo(); 7407 if (this_present_io || that_present_io) { 7408 if (!(this_present_io && that_present_io)) 7409 return false; 7410 if (!this.io.equals(that.io)) 7411 return false; 7412 } 7413 7414 return true; 7415 } 7416 7417 @Override 7418 public int hashCode() { 7419 HashCodeBuilder builder = new HashCodeBuilder(); 7420 7421 boolean present_io = true && (isSetIo()); 7422 builder.append(present_io); 7423 if (present_io) 7424 builder.append(io); 7425 7426 return builder.toHashCode(); 7427 } 7428 7429 public int compareTo(compact_result other) { 7430 if (!getClass().equals(other.getClass())) { 7431 return getClass().getName().compareTo(other.getClass().getName()); 7432 } 7433 7434 int lastComparison = 0; 7435 compact_result typedOther = (compact_result)other; 7436 7437 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 7438 if (lastComparison != 0) { 7439 return lastComparison; 7440 } 7441 if (isSetIo()) { 7442 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 7443 if (lastComparison != 0) { 7444 return lastComparison; 7445 } 7446 } 7447 return 0; 7448 } 7449 7450 public _Fields fieldForId(int fieldId) { 7451 return _Fields.findByThriftId(fieldId); 7452 } 7453 7454 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 7455 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 7456 } 7457 7458 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 7459 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 7460 } 7461 7462 @Override 7463 public String toString() { 7464 StringBuilder sb = new StringBuilder("compact_result("); 7465 boolean first = true; 7466 7467 sb.append("io:"); 7468 if (this.io == null) { 7469 sb.append("null"); 7470 } else { 7471 sb.append(this.io); 7472 } 7473 first = false; 7474 sb.append(")"); 7475 return sb.toString(); 7476 } 7477 7478 public void validate() throws org.apache.thrift.TException { 7479 // check for required fields 7480 } 7481 7482 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 7483 try { 7484 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 7485 } catch (org.apache.thrift.TException te) { 7486 throw new java.io.IOException(te); 7487 } 7488 } 7489 7490 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 7491 try { 7492 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 7493 } catch (org.apache.thrift.TException te) { 7494 throw new java.io.IOException(te); 7495 } 7496 } 7497 7498 private static class compact_resultStandardSchemeFactory implements SchemeFactory { 7499 public compact_resultStandardScheme getScheme() { 7500 return new compact_resultStandardScheme(); 7501 } 7502 } 7503 7504 private static class compact_resultStandardScheme extends StandardScheme<compact_result> { 7505 7506 public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException { 7507 org.apache.thrift.protocol.TField schemeField; 7508 iprot.readStructBegin(); 7509 while (true) 7510 { 7511 schemeField = iprot.readFieldBegin(); 7512 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 7513 break; 7514 } 7515 switch (schemeField.id) { 7516 case 1: // IO 7517 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 7518 struct.io = new IOError(); 7519 struct.io.read(iprot); 7520 struct.setIoIsSet(true); 7521 } else { 7522 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7523 } 7524 break; 7525 default: 7526 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7527 } 7528 iprot.readFieldEnd(); 7529 } 7530 iprot.readStructEnd(); 7531 7532 // check for required fields of primitive type, which can't be checked in the validate method 7533 struct.validate(); 7534 } 7535 7536 public void write(org.apache.thrift.protocol.TProtocol oprot, compact_result struct) throws org.apache.thrift.TException { 7537 struct.validate(); 7538 7539 oprot.writeStructBegin(STRUCT_DESC); 7540 if (struct.io != null) { 7541 oprot.writeFieldBegin(IO_FIELD_DESC); 7542 struct.io.write(oprot); 7543 oprot.writeFieldEnd(); 7544 } 7545 oprot.writeFieldStop(); 7546 oprot.writeStructEnd(); 7547 } 7548 7549 } 7550 7551 private static class compact_resultTupleSchemeFactory implements SchemeFactory { 7552 public compact_resultTupleScheme getScheme() { 7553 return new compact_resultTupleScheme(); 7554 } 7555 } 7556 7557 private static class compact_resultTupleScheme extends TupleScheme<compact_result> { 7558 7559 @Override 7560 public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { 7561 TTupleProtocol oprot = (TTupleProtocol) prot; 7562 BitSet optionals = new BitSet(); 7563 if (struct.isSetIo()) { 7564 optionals.set(0); 7565 } 7566 oprot.writeBitSet(optionals, 1); 7567 if (struct.isSetIo()) { 7568 struct.io.write(oprot); 7569 } 7570 } 7571 7572 @Override 7573 public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException { 7574 TTupleProtocol iprot = (TTupleProtocol) prot; 7575 BitSet incoming = iprot.readBitSet(1); 7576 if (incoming.get(0)) { 7577 struct.io = new IOError(); 7578 struct.io.read(iprot); 7579 struct.setIoIsSet(true); 7580 } 7581 } 7582 } 7583 7584 } 7585 7586 public static class majorCompact_args implements org.apache.thrift.TBase<majorCompact_args, majorCompact_args._Fields>, java.io.Serializable, Cloneable { 7587 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_args"); 7588 7589 private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1); 7590 7591 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 7592 static { 7593 schemes.put(StandardScheme.class, new majorCompact_argsStandardSchemeFactory()); 7594 schemes.put(TupleScheme.class, new majorCompact_argsTupleSchemeFactory()); 7595 } 7596 7597 public ByteBuffer tableNameOrRegionName; // required 7598 7599 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 7600 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 7601 TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName"); 7602 7603 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 7604 7605 static { 7606 for (_Fields field : EnumSet.allOf(_Fields.class)) { 7607 byName.put(field.getFieldName(), field); 7608 } 7609 } 7610 7611 /** 7612 * Find the _Fields constant that matches fieldId, or null if its not found. 7613 */ 7614 public static _Fields findByThriftId(int fieldId) { 7615 switch(fieldId) { 7616 case 1: // TABLE_NAME_OR_REGION_NAME 7617 return TABLE_NAME_OR_REGION_NAME; 7618 default: 7619 return null; 7620 } 7621 } 7622 7623 /** 7624 * Find the _Fields constant that matches fieldId, throwing an exception 7625 * if it is not found. 7626 */ 7627 public static _Fields findByThriftIdOrThrow(int fieldId) { 7628 _Fields fields = findByThriftId(fieldId); 7629 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 7630 return fields; 7631 } 7632 7633 /** 7634 * Find the _Fields constant that matches name, or null if its not found. 7635 */ 7636 public static _Fields findByName(String name) { 7637 return byName.get(name); 7638 } 7639 7640 private final short _thriftId; 7641 private final String _fieldName; 7642 7643 _Fields(short thriftId, String fieldName) { 7644 _thriftId = thriftId; 7645 _fieldName = fieldName; 7646 } 7647 7648 public short getThriftFieldId() { 7649 return _thriftId; 7650 } 7651 7652 public String getFieldName() { 7653 return _fieldName; 7654 } 7655 } 7656 7657 // isset id assignments 7658 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 7659 static { 7660 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 7661 tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT, 7662 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes"))); 7663 metaDataMap = Collections.unmodifiableMap(tmpMap); 7664 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_args.class, metaDataMap); 7665 } 7666 7667 public majorCompact_args() { 7668 } 7669 7670 public majorCompact_args( 7671 ByteBuffer tableNameOrRegionName) 7672 { 7673 this(); 7674 this.tableNameOrRegionName = tableNameOrRegionName; 7675 } 7676 7677 /** 7678 * Performs a deep copy on <i>other</i>. 7679 */ 7680 public majorCompact_args(majorCompact_args other) { 7681 if (other.isSetTableNameOrRegionName()) { 7682 this.tableNameOrRegionName = other.tableNameOrRegionName; 7683 } 7684 } 7685 7686 public majorCompact_args deepCopy() { 7687 return new majorCompact_args(this); 7688 } 7689 7690 @Override 7691 public void clear() { 7692 this.tableNameOrRegionName = null; 7693 } 7694 7695 public byte[] getTableNameOrRegionName() { 7696 setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName)); 7697 return tableNameOrRegionName == null ? null : tableNameOrRegionName.array(); 7698 } 7699 7700 public ByteBuffer bufferForTableNameOrRegionName() { 7701 return tableNameOrRegionName; 7702 } 7703 7704 public majorCompact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) { 7705 setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName)); 7706 return this; 7707 } 7708 7709 public majorCompact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) { 7710 this.tableNameOrRegionName = tableNameOrRegionName; 7711 return this; 7712 } 7713 7714 public void unsetTableNameOrRegionName() { 7715 this.tableNameOrRegionName = null; 7716 } 7717 7718 /** Returns true if field tableNameOrRegionName is set (has been assigned a value) and false otherwise */ 7719 public boolean isSetTableNameOrRegionName() { 7720 return this.tableNameOrRegionName != null; 7721 } 7722 7723 public void setTableNameOrRegionNameIsSet(boolean value) { 7724 if (!value) { 7725 this.tableNameOrRegionName = null; 7726 } 7727 } 7728 7729 public void setFieldValue(_Fields field, Object value) { 7730 switch (field) { 7731 case TABLE_NAME_OR_REGION_NAME: 7732 if (value == null) { 7733 unsetTableNameOrRegionName(); 7734 } else { 7735 setTableNameOrRegionName((ByteBuffer)value); 7736 } 7737 break; 7738 7739 } 7740 } 7741 7742 public Object getFieldValue(_Fields field) { 7743 switch (field) { 7744 case TABLE_NAME_OR_REGION_NAME: 7745 return getTableNameOrRegionName(); 7746 7747 } 7748 throw new IllegalStateException(); 7749 } 7750 7751 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 7752 public boolean isSet(_Fields field) { 7753 if (field == null) { 7754 throw new IllegalArgumentException(); 7755 } 7756 7757 switch (field) { 7758 case TABLE_NAME_OR_REGION_NAME: 7759 return isSetTableNameOrRegionName(); 7760 } 7761 throw new IllegalStateException(); 7762 } 7763 7764 @Override 7765 public boolean equals(Object that) { 7766 if (that == null) 7767 return false; 7768 if (that instanceof majorCompact_args) 7769 return this.equals((majorCompact_args)that); 7770 return false; 7771 } 7772 7773 public boolean equals(majorCompact_args that) { 7774 if (that == null) 7775 return false; 7776 7777 boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName(); 7778 boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName(); 7779 if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) { 7780 if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName)) 7781 return false; 7782 if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName)) 7783 return false; 7784 } 7785 7786 return true; 7787 } 7788 7789 @Override 7790 public int hashCode() { 7791 HashCodeBuilder builder = new HashCodeBuilder(); 7792 7793 boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName()); 7794 builder.append(present_tableNameOrRegionName); 7795 if (present_tableNameOrRegionName) 7796 builder.append(tableNameOrRegionName); 7797 7798 return builder.toHashCode(); 7799 } 7800 7801 public int compareTo(majorCompact_args other) { 7802 if (!getClass().equals(other.getClass())) { 7803 return getClass().getName().compareTo(other.getClass().getName()); 7804 } 7805 7806 int lastComparison = 0; 7807 majorCompact_args typedOther = (majorCompact_args)other; 7808 7809 lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName()); 7810 if (lastComparison != 0) { 7811 return lastComparison; 7812 } 7813 if (isSetTableNameOrRegionName()) { 7814 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName); 7815 if (lastComparison != 0) { 7816 return lastComparison; 7817 } 7818 } 7819 return 0; 7820 } 7821 7822 public _Fields fieldForId(int fieldId) { 7823 return _Fields.findByThriftId(fieldId); 7824 } 7825 7826 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 7827 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 7828 } 7829 7830 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 7831 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 7832 } 7833 7834 @Override 7835 public String toString() { 7836 StringBuilder sb = new StringBuilder("majorCompact_args("); 7837 boolean first = true; 7838 7839 sb.append("tableNameOrRegionName:"); 7840 if (this.tableNameOrRegionName == null) { 7841 sb.append("null"); 7842 } else { 7843 sb.append(this.tableNameOrRegionName); 7844 } 7845 first = false; 7846 sb.append(")"); 7847 return sb.toString(); 7848 } 7849 7850 public void validate() throws org.apache.thrift.TException { 7851 // check for required fields 7852 } 7853 7854 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 7855 try { 7856 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 7857 } catch (org.apache.thrift.TException te) { 7858 throw new java.io.IOException(te); 7859 } 7860 } 7861 7862 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 7863 try { 7864 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 7865 } catch (org.apache.thrift.TException te) { 7866 throw new java.io.IOException(te); 7867 } 7868 } 7869 7870 private static class majorCompact_argsStandardSchemeFactory implements SchemeFactory { 7871 public majorCompact_argsStandardScheme getScheme() { 7872 return new majorCompact_argsStandardScheme(); 7873 } 7874 } 7875 7876 private static class majorCompact_argsStandardScheme extends StandardScheme<majorCompact_args> { 7877 7878 public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_args struct) throws org.apache.thrift.TException { 7879 org.apache.thrift.protocol.TField schemeField; 7880 iprot.readStructBegin(); 7881 while (true) 7882 { 7883 schemeField = iprot.readFieldBegin(); 7884 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 7885 break; 7886 } 7887 switch (schemeField.id) { 7888 case 1: // TABLE_NAME_OR_REGION_NAME 7889 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 7890 struct.tableNameOrRegionName = iprot.readBinary(); 7891 struct.setTableNameOrRegionNameIsSet(true); 7892 } else { 7893 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7894 } 7895 break; 7896 default: 7897 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 7898 } 7899 iprot.readFieldEnd(); 7900 } 7901 iprot.readStructEnd(); 7902 7903 // check for required fields of primitive type, which can't be checked in the validate method 7904 struct.validate(); 7905 } 7906 7907 public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_args struct) throws org.apache.thrift.TException { 7908 struct.validate(); 7909 7910 oprot.writeStructBegin(STRUCT_DESC); 7911 if (struct.tableNameOrRegionName != null) { 7912 oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC); 7913 oprot.writeBinary(struct.tableNameOrRegionName); 7914 oprot.writeFieldEnd(); 7915 } 7916 oprot.writeFieldStop(); 7917 oprot.writeStructEnd(); 7918 } 7919 7920 } 7921 7922 private static class majorCompact_argsTupleSchemeFactory implements SchemeFactory { 7923 public majorCompact_argsTupleScheme getScheme() { 7924 return new majorCompact_argsTupleScheme(); 7925 } 7926 } 7927 7928 private static class majorCompact_argsTupleScheme extends TupleScheme<majorCompact_args> { 7929 7930 @Override 7931 public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException { 7932 TTupleProtocol oprot = (TTupleProtocol) prot; 7933 BitSet optionals = new BitSet(); 7934 if (struct.isSetTableNameOrRegionName()) { 7935 optionals.set(0); 7936 } 7937 oprot.writeBitSet(optionals, 1); 7938 if (struct.isSetTableNameOrRegionName()) { 7939 oprot.writeBinary(struct.tableNameOrRegionName); 7940 } 7941 } 7942 7943 @Override 7944 public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException { 7945 TTupleProtocol iprot = (TTupleProtocol) prot; 7946 BitSet incoming = iprot.readBitSet(1); 7947 if (incoming.get(0)) { 7948 struct.tableNameOrRegionName = iprot.readBinary(); 7949 struct.setTableNameOrRegionNameIsSet(true); 7950 } 7951 } 7952 } 7953 7954 } 7955 7956 public static class majorCompact_result implements org.apache.thrift.TBase<majorCompact_result, majorCompact_result._Fields>, java.io.Serializable, Cloneable { 7957 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_result"); 7958 7959 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 7960 7961 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 7962 static { 7963 schemes.put(StandardScheme.class, new majorCompact_resultStandardSchemeFactory()); 7964 schemes.put(TupleScheme.class, new majorCompact_resultTupleSchemeFactory()); 7965 } 7966 7967 public IOError io; // required 7968 7969 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 7970 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 7971 IO((short)1, "io"); 7972 7973 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 7974 7975 static { 7976 for (_Fields field : EnumSet.allOf(_Fields.class)) { 7977 byName.put(field.getFieldName(), field); 7978 } 7979 } 7980 7981 /** 7982 * Find the _Fields constant that matches fieldId, or null if its not found. 7983 */ 7984 public static _Fields findByThriftId(int fieldId) { 7985 switch(fieldId) { 7986 case 1: // IO 7987 return IO; 7988 default: 7989 return null; 7990 } 7991 } 7992 7993 /** 7994 * Find the _Fields constant that matches fieldId, throwing an exception 7995 * if it is not found. 7996 */ 7997 public static _Fields findByThriftIdOrThrow(int fieldId) { 7998 _Fields fields = findByThriftId(fieldId); 7999 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 8000 return fields; 8001 } 8002 8003 /** 8004 * Find the _Fields constant that matches name, or null if its not found. 8005 */ 8006 public static _Fields findByName(String name) { 8007 return byName.get(name); 8008 } 8009 8010 private final short _thriftId; 8011 private final String _fieldName; 8012 8013 _Fields(short thriftId, String fieldName) { 8014 _thriftId = thriftId; 8015 _fieldName = fieldName; 8016 } 8017 8018 public short getThriftFieldId() { 8019 return _thriftId; 8020 } 8021 8022 public String getFieldName() { 8023 return _fieldName; 8024 } 8025 } 8026 8027 // isset id assignments 8028 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 8029 static { 8030 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 8031 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 8032 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 8033 metaDataMap = Collections.unmodifiableMap(tmpMap); 8034 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_result.class, metaDataMap); 8035 } 8036 8037 public majorCompact_result() { 8038 } 8039 8040 public majorCompact_result( 8041 IOError io) 8042 { 8043 this(); 8044 this.io = io; 8045 } 8046 8047 /** 8048 * Performs a deep copy on <i>other</i>. 8049 */ 8050 public majorCompact_result(majorCompact_result other) { 8051 if (other.isSetIo()) { 8052 this.io = new IOError(other.io); 8053 } 8054 } 8055 8056 public majorCompact_result deepCopy() { 8057 return new majorCompact_result(this); 8058 } 8059 8060 @Override 8061 public void clear() { 8062 this.io = null; 8063 } 8064 8065 public IOError getIo() { 8066 return this.io; 8067 } 8068 8069 public majorCompact_result setIo(IOError io) { 8070 this.io = io; 8071 return this; 8072 } 8073 8074 public void unsetIo() { 8075 this.io = null; 8076 } 8077 8078 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 8079 public boolean isSetIo() { 8080 return this.io != null; 8081 } 8082 8083 public void setIoIsSet(boolean value) { 8084 if (!value) { 8085 this.io = null; 8086 } 8087 } 8088 8089 public void setFieldValue(_Fields field, Object value) { 8090 switch (field) { 8091 case IO: 8092 if (value == null) { 8093 unsetIo(); 8094 } else { 8095 setIo((IOError)value); 8096 } 8097 break; 8098 8099 } 8100 } 8101 8102 public Object getFieldValue(_Fields field) { 8103 switch (field) { 8104 case IO: 8105 return getIo(); 8106 8107 } 8108 throw new IllegalStateException(); 8109 } 8110 8111 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 8112 public boolean isSet(_Fields field) { 8113 if (field == null) { 8114 throw new IllegalArgumentException(); 8115 } 8116 8117 switch (field) { 8118 case IO: 8119 return isSetIo(); 8120 } 8121 throw new IllegalStateException(); 8122 } 8123 8124 @Override 8125 public boolean equals(Object that) { 8126 if (that == null) 8127 return false; 8128 if (that instanceof majorCompact_result) 8129 return this.equals((majorCompact_result)that); 8130 return false; 8131 } 8132 8133 public boolean equals(majorCompact_result that) { 8134 if (that == null) 8135 return false; 8136 8137 boolean this_present_io = true && this.isSetIo(); 8138 boolean that_present_io = true && that.isSetIo(); 8139 if (this_present_io || that_present_io) { 8140 if (!(this_present_io && that_present_io)) 8141 return false; 8142 if (!this.io.equals(that.io)) 8143 return false; 8144 } 8145 8146 return true; 8147 } 8148 8149 @Override 8150 public int hashCode() { 8151 HashCodeBuilder builder = new HashCodeBuilder(); 8152 8153 boolean present_io = true && (isSetIo()); 8154 builder.append(present_io); 8155 if (present_io) 8156 builder.append(io); 8157 8158 return builder.toHashCode(); 8159 } 8160 8161 public int compareTo(majorCompact_result other) { 8162 if (!getClass().equals(other.getClass())) { 8163 return getClass().getName().compareTo(other.getClass().getName()); 8164 } 8165 8166 int lastComparison = 0; 8167 majorCompact_result typedOther = (majorCompact_result)other; 8168 8169 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 8170 if (lastComparison != 0) { 8171 return lastComparison; 8172 } 8173 if (isSetIo()) { 8174 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 8175 if (lastComparison != 0) { 8176 return lastComparison; 8177 } 8178 } 8179 return 0; 8180 } 8181 8182 public _Fields fieldForId(int fieldId) { 8183 return _Fields.findByThriftId(fieldId); 8184 } 8185 8186 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 8187 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 8188 } 8189 8190 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 8191 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 8192 } 8193 8194 @Override 8195 public String toString() { 8196 StringBuilder sb = new StringBuilder("majorCompact_result("); 8197 boolean first = true; 8198 8199 sb.append("io:"); 8200 if (this.io == null) { 8201 sb.append("null"); 8202 } else { 8203 sb.append(this.io); 8204 } 8205 first = false; 8206 sb.append(")"); 8207 return sb.toString(); 8208 } 8209 8210 public void validate() throws org.apache.thrift.TException { 8211 // check for required fields 8212 } 8213 8214 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 8215 try { 8216 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 8217 } catch (org.apache.thrift.TException te) { 8218 throw new java.io.IOException(te); 8219 } 8220 } 8221 8222 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 8223 try { 8224 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 8225 } catch (org.apache.thrift.TException te) { 8226 throw new java.io.IOException(te); 8227 } 8228 } 8229 8230 private static class majorCompact_resultStandardSchemeFactory implements SchemeFactory { 8231 public majorCompact_resultStandardScheme getScheme() { 8232 return new majorCompact_resultStandardScheme(); 8233 } 8234 } 8235 8236 private static class majorCompact_resultStandardScheme extends StandardScheme<majorCompact_result> { 8237 8238 public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_result struct) throws org.apache.thrift.TException { 8239 org.apache.thrift.protocol.TField schemeField; 8240 iprot.readStructBegin(); 8241 while (true) 8242 { 8243 schemeField = iprot.readFieldBegin(); 8244 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 8245 break; 8246 } 8247 switch (schemeField.id) { 8248 case 1: // IO 8249 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 8250 struct.io = new IOError(); 8251 struct.io.read(iprot); 8252 struct.setIoIsSet(true); 8253 } else { 8254 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8255 } 8256 break; 8257 default: 8258 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8259 } 8260 iprot.readFieldEnd(); 8261 } 8262 iprot.readStructEnd(); 8263 8264 // check for required fields of primitive type, which can't be checked in the validate method 8265 struct.validate(); 8266 } 8267 8268 public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_result struct) throws org.apache.thrift.TException { 8269 struct.validate(); 8270 8271 oprot.writeStructBegin(STRUCT_DESC); 8272 if (struct.io != null) { 8273 oprot.writeFieldBegin(IO_FIELD_DESC); 8274 struct.io.write(oprot); 8275 oprot.writeFieldEnd(); 8276 } 8277 oprot.writeFieldStop(); 8278 oprot.writeStructEnd(); 8279 } 8280 8281 } 8282 8283 private static class majorCompact_resultTupleSchemeFactory implements SchemeFactory { 8284 public majorCompact_resultTupleScheme getScheme() { 8285 return new majorCompact_resultTupleScheme(); 8286 } 8287 } 8288 8289 private static class majorCompact_resultTupleScheme extends TupleScheme<majorCompact_result> { 8290 8291 @Override 8292 public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException { 8293 TTupleProtocol oprot = (TTupleProtocol) prot; 8294 BitSet optionals = new BitSet(); 8295 if (struct.isSetIo()) { 8296 optionals.set(0); 8297 } 8298 oprot.writeBitSet(optionals, 1); 8299 if (struct.isSetIo()) { 8300 struct.io.write(oprot); 8301 } 8302 } 8303 8304 @Override 8305 public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException { 8306 TTupleProtocol iprot = (TTupleProtocol) prot; 8307 BitSet incoming = iprot.readBitSet(1); 8308 if (incoming.get(0)) { 8309 struct.io = new IOError(); 8310 struct.io.read(iprot); 8311 struct.setIoIsSet(true); 8312 } 8313 } 8314 } 8315 8316 } 8317 8318 public static class getTableNames_args implements org.apache.thrift.TBase<getTableNames_args, getTableNames_args._Fields>, java.io.Serializable, Cloneable { 8319 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_args"); 8320 8321 8322 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 8323 static { 8324 schemes.put(StandardScheme.class, new getTableNames_argsStandardSchemeFactory()); 8325 schemes.put(TupleScheme.class, new getTableNames_argsTupleSchemeFactory()); 8326 } 8327 8328 8329 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 8330 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 8331; 8332 8333 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 8334 8335 static { 8336 for (_Fields field : EnumSet.allOf(_Fields.class)) { 8337 byName.put(field.getFieldName(), field); 8338 } 8339 } 8340 8341 /** 8342 * Find the _Fields constant that matches fieldId, or null if its not found. 8343 */ 8344 public static _Fields findByThriftId(int fieldId) { 8345 switch(fieldId) { 8346 default: 8347 return null; 8348 } 8349 } 8350 8351 /** 8352 * Find the _Fields constant that matches fieldId, throwing an exception 8353 * if it is not found. 8354 */ 8355 public static _Fields findByThriftIdOrThrow(int fieldId) { 8356 _Fields fields = findByThriftId(fieldId); 8357 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 8358 return fields; 8359 } 8360 8361 /** 8362 * Find the _Fields constant that matches name, or null if its not found. 8363 */ 8364 public static _Fields findByName(String name) { 8365 return byName.get(name); 8366 } 8367 8368 private final short _thriftId; 8369 private final String _fieldName; 8370 8371 _Fields(short thriftId, String fieldName) { 8372 _thriftId = thriftId; 8373 _fieldName = fieldName; 8374 } 8375 8376 public short getThriftFieldId() { 8377 return _thriftId; 8378 } 8379 8380 public String getFieldName() { 8381 return _fieldName; 8382 } 8383 } 8384 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 8385 static { 8386 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 8387 metaDataMap = Collections.unmodifiableMap(tmpMap); 8388 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_args.class, metaDataMap); 8389 } 8390 8391 public getTableNames_args() { 8392 } 8393 8394 /** 8395 * Performs a deep copy on <i>other</i>. 8396 */ 8397 public getTableNames_args(getTableNames_args other) { 8398 } 8399 8400 public getTableNames_args deepCopy() { 8401 return new getTableNames_args(this); 8402 } 8403 8404 @Override 8405 public void clear() { 8406 } 8407 8408 public void setFieldValue(_Fields field, Object value) { 8409 switch (field) { 8410 } 8411 } 8412 8413 public Object getFieldValue(_Fields field) { 8414 switch (field) { 8415 } 8416 throw new IllegalStateException(); 8417 } 8418 8419 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 8420 public boolean isSet(_Fields field) { 8421 if (field == null) { 8422 throw new IllegalArgumentException(); 8423 } 8424 8425 switch (field) { 8426 } 8427 throw new IllegalStateException(); 8428 } 8429 8430 @Override 8431 public boolean equals(Object that) { 8432 if (that == null) 8433 return false; 8434 if (that instanceof getTableNames_args) 8435 return this.equals((getTableNames_args)that); 8436 return false; 8437 } 8438 8439 public boolean equals(getTableNames_args that) { 8440 if (that == null) 8441 return false; 8442 8443 return true; 8444 } 8445 8446 @Override 8447 public int hashCode() { 8448 HashCodeBuilder builder = new HashCodeBuilder(); 8449 8450 return builder.toHashCode(); 8451 } 8452 8453 public int compareTo(getTableNames_args other) { 8454 if (!getClass().equals(other.getClass())) { 8455 return getClass().getName().compareTo(other.getClass().getName()); 8456 } 8457 8458 int lastComparison = 0; 8459 getTableNames_args typedOther = (getTableNames_args)other; 8460 8461 return 0; 8462 } 8463 8464 public _Fields fieldForId(int fieldId) { 8465 return _Fields.findByThriftId(fieldId); 8466 } 8467 8468 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 8469 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 8470 } 8471 8472 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 8473 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 8474 } 8475 8476 @Override 8477 public String toString() { 8478 StringBuilder sb = new StringBuilder("getTableNames_args("); 8479 boolean first = true; 8480 8481 sb.append(")"); 8482 return sb.toString(); 8483 } 8484 8485 public void validate() throws org.apache.thrift.TException { 8486 // check for required fields 8487 } 8488 8489 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 8490 try { 8491 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 8492 } catch (org.apache.thrift.TException te) { 8493 throw new java.io.IOException(te); 8494 } 8495 } 8496 8497 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 8498 try { 8499 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 8500 } catch (org.apache.thrift.TException te) { 8501 throw new java.io.IOException(te); 8502 } 8503 } 8504 8505 private static class getTableNames_argsStandardSchemeFactory implements SchemeFactory { 8506 public getTableNames_argsStandardScheme getScheme() { 8507 return new getTableNames_argsStandardScheme(); 8508 } 8509 } 8510 8511 private static class getTableNames_argsStandardScheme extends StandardScheme<getTableNames_args> { 8512 8513 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_args struct) throws org.apache.thrift.TException { 8514 org.apache.thrift.protocol.TField schemeField; 8515 iprot.readStructBegin(); 8516 while (true) 8517 { 8518 schemeField = iprot.readFieldBegin(); 8519 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 8520 break; 8521 } 8522 switch (schemeField.id) { 8523 default: 8524 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8525 } 8526 iprot.readFieldEnd(); 8527 } 8528 iprot.readStructEnd(); 8529 8530 // check for required fields of primitive type, which can't be checked in the validate method 8531 struct.validate(); 8532 } 8533 8534 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_args struct) throws org.apache.thrift.TException { 8535 struct.validate(); 8536 8537 oprot.writeStructBegin(STRUCT_DESC); 8538 oprot.writeFieldStop(); 8539 oprot.writeStructEnd(); 8540 } 8541 8542 } 8543 8544 private static class getTableNames_argsTupleSchemeFactory implements SchemeFactory { 8545 public getTableNames_argsTupleScheme getScheme() { 8546 return new getTableNames_argsTupleScheme(); 8547 } 8548 } 8549 8550 private static class getTableNames_argsTupleScheme extends TupleScheme<getTableNames_args> { 8551 8552 @Override 8553 public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException { 8554 TTupleProtocol oprot = (TTupleProtocol) prot; 8555 } 8556 8557 @Override 8558 public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException { 8559 TTupleProtocol iprot = (TTupleProtocol) prot; 8560 } 8561 } 8562 8563 } 8564 8565 public static class getTableNames_result implements org.apache.thrift.TBase<getTableNames_result, getTableNames_result._Fields>, java.io.Serializable, Cloneable { 8566 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_result"); 8567 8568 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 8569 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 8570 8571 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 8572 static { 8573 schemes.put(StandardScheme.class, new getTableNames_resultStandardSchemeFactory()); 8574 schemes.put(TupleScheme.class, new getTableNames_resultTupleSchemeFactory()); 8575 } 8576 8577 public List<ByteBuffer> success; // required 8578 public IOError io; // required 8579 8580 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 8581 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 8582 SUCCESS((short)0, "success"), 8583 IO((short)1, "io"); 8584 8585 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 8586 8587 static { 8588 for (_Fields field : EnumSet.allOf(_Fields.class)) { 8589 byName.put(field.getFieldName(), field); 8590 } 8591 } 8592 8593 /** 8594 * Find the _Fields constant that matches fieldId, or null if its not found. 8595 */ 8596 public static _Fields findByThriftId(int fieldId) { 8597 switch(fieldId) { 8598 case 0: // SUCCESS 8599 return SUCCESS; 8600 case 1: // IO 8601 return IO; 8602 default: 8603 return null; 8604 } 8605 } 8606 8607 /** 8608 * Find the _Fields constant that matches fieldId, throwing an exception 8609 * if it is not found. 8610 */ 8611 public static _Fields findByThriftIdOrThrow(int fieldId) { 8612 _Fields fields = findByThriftId(fieldId); 8613 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 8614 return fields; 8615 } 8616 8617 /** 8618 * Find the _Fields constant that matches name, or null if its not found. 8619 */ 8620 public static _Fields findByName(String name) { 8621 return byName.get(name); 8622 } 8623 8624 private final short _thriftId; 8625 private final String _fieldName; 8626 8627 _Fields(short thriftId, String fieldName) { 8628 _thriftId = thriftId; 8629 _fieldName = fieldName; 8630 } 8631 8632 public short getThriftFieldId() { 8633 return _thriftId; 8634 } 8635 8636 public String getFieldName() { 8637 return _fieldName; 8638 } 8639 } 8640 8641 // isset id assignments 8642 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 8643 static { 8644 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 8645 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 8646 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 8647 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 8648 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 8649 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 8650 metaDataMap = Collections.unmodifiableMap(tmpMap); 8651 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_result.class, metaDataMap); 8652 } 8653 8654 public getTableNames_result() { 8655 } 8656 8657 public getTableNames_result( 8658 List<ByteBuffer> success, 8659 IOError io) 8660 { 8661 this(); 8662 this.success = success; 8663 this.io = io; 8664 } 8665 8666 /** 8667 * Performs a deep copy on <i>other</i>. 8668 */ 8669 public getTableNames_result(getTableNames_result other) { 8670 if (other.isSetSuccess()) { 8671 List<ByteBuffer> __this__success = new ArrayList<ByteBuffer>(); 8672 for (ByteBuffer other_element : other.success) { 8673 __this__success.add(other_element); 8674 } 8675 this.success = __this__success; 8676 } 8677 if (other.isSetIo()) { 8678 this.io = new IOError(other.io); 8679 } 8680 } 8681 8682 public getTableNames_result deepCopy() { 8683 return new getTableNames_result(this); 8684 } 8685 8686 @Override 8687 public void clear() { 8688 this.success = null; 8689 this.io = null; 8690 } 8691 8692 public int getSuccessSize() { 8693 return (this.success == null) ? 0 : this.success.size(); 8694 } 8695 8696 public java.util.Iterator<ByteBuffer> getSuccessIterator() { 8697 return (this.success == null) ? null : this.success.iterator(); 8698 } 8699 8700 public void addToSuccess(ByteBuffer elem) { 8701 if (this.success == null) { 8702 this.success = new ArrayList<ByteBuffer>(); 8703 } 8704 this.success.add(elem); 8705 } 8706 8707 public List<ByteBuffer> getSuccess() { 8708 return this.success; 8709 } 8710 8711 public getTableNames_result setSuccess(List<ByteBuffer> success) { 8712 this.success = success; 8713 return this; 8714 } 8715 8716 public void unsetSuccess() { 8717 this.success = null; 8718 } 8719 8720 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 8721 public boolean isSetSuccess() { 8722 return this.success != null; 8723 } 8724 8725 public void setSuccessIsSet(boolean value) { 8726 if (!value) { 8727 this.success = null; 8728 } 8729 } 8730 8731 public IOError getIo() { 8732 return this.io; 8733 } 8734 8735 public getTableNames_result setIo(IOError io) { 8736 this.io = io; 8737 return this; 8738 } 8739 8740 public void unsetIo() { 8741 this.io = null; 8742 } 8743 8744 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 8745 public boolean isSetIo() { 8746 return this.io != null; 8747 } 8748 8749 public void setIoIsSet(boolean value) { 8750 if (!value) { 8751 this.io = null; 8752 } 8753 } 8754 8755 public void setFieldValue(_Fields field, Object value) { 8756 switch (field) { 8757 case SUCCESS: 8758 if (value == null) { 8759 unsetSuccess(); 8760 } else { 8761 setSuccess((List<ByteBuffer>)value); 8762 } 8763 break; 8764 8765 case IO: 8766 if (value == null) { 8767 unsetIo(); 8768 } else { 8769 setIo((IOError)value); 8770 } 8771 break; 8772 8773 } 8774 } 8775 8776 public Object getFieldValue(_Fields field) { 8777 switch (field) { 8778 case SUCCESS: 8779 return getSuccess(); 8780 8781 case IO: 8782 return getIo(); 8783 8784 } 8785 throw new IllegalStateException(); 8786 } 8787 8788 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 8789 public boolean isSet(_Fields field) { 8790 if (field == null) { 8791 throw new IllegalArgumentException(); 8792 } 8793 8794 switch (field) { 8795 case SUCCESS: 8796 return isSetSuccess(); 8797 case IO: 8798 return isSetIo(); 8799 } 8800 throw new IllegalStateException(); 8801 } 8802 8803 @Override 8804 public boolean equals(Object that) { 8805 if (that == null) 8806 return false; 8807 if (that instanceof getTableNames_result) 8808 return this.equals((getTableNames_result)that); 8809 return false; 8810 } 8811 8812 public boolean equals(getTableNames_result that) { 8813 if (that == null) 8814 return false; 8815 8816 boolean this_present_success = true && this.isSetSuccess(); 8817 boolean that_present_success = true && that.isSetSuccess(); 8818 if (this_present_success || that_present_success) { 8819 if (!(this_present_success && that_present_success)) 8820 return false; 8821 if (!this.success.equals(that.success)) 8822 return false; 8823 } 8824 8825 boolean this_present_io = true && this.isSetIo(); 8826 boolean that_present_io = true && that.isSetIo(); 8827 if (this_present_io || that_present_io) { 8828 if (!(this_present_io && that_present_io)) 8829 return false; 8830 if (!this.io.equals(that.io)) 8831 return false; 8832 } 8833 8834 return true; 8835 } 8836 8837 @Override 8838 public int hashCode() { 8839 HashCodeBuilder builder = new HashCodeBuilder(); 8840 8841 boolean present_success = true && (isSetSuccess()); 8842 builder.append(present_success); 8843 if (present_success) 8844 builder.append(success); 8845 8846 boolean present_io = true && (isSetIo()); 8847 builder.append(present_io); 8848 if (present_io) 8849 builder.append(io); 8850 8851 return builder.toHashCode(); 8852 } 8853 8854 public int compareTo(getTableNames_result other) { 8855 if (!getClass().equals(other.getClass())) { 8856 return getClass().getName().compareTo(other.getClass().getName()); 8857 } 8858 8859 int lastComparison = 0; 8860 getTableNames_result typedOther = (getTableNames_result)other; 8861 8862 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 8863 if (lastComparison != 0) { 8864 return lastComparison; 8865 } 8866 if (isSetSuccess()) { 8867 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 8868 if (lastComparison != 0) { 8869 return lastComparison; 8870 } 8871 } 8872 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 8873 if (lastComparison != 0) { 8874 return lastComparison; 8875 } 8876 if (isSetIo()) { 8877 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 8878 if (lastComparison != 0) { 8879 return lastComparison; 8880 } 8881 } 8882 return 0; 8883 } 8884 8885 public _Fields fieldForId(int fieldId) { 8886 return _Fields.findByThriftId(fieldId); 8887 } 8888 8889 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 8890 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 8891 } 8892 8893 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 8894 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 8895 } 8896 8897 @Override 8898 public String toString() { 8899 StringBuilder sb = new StringBuilder("getTableNames_result("); 8900 boolean first = true; 8901 8902 sb.append("success:"); 8903 if (this.success == null) { 8904 sb.append("null"); 8905 } else { 8906 sb.append(this.success); 8907 } 8908 first = false; 8909 if (!first) sb.append(", "); 8910 sb.append("io:"); 8911 if (this.io == null) { 8912 sb.append("null"); 8913 } else { 8914 sb.append(this.io); 8915 } 8916 first = false; 8917 sb.append(")"); 8918 return sb.toString(); 8919 } 8920 8921 public void validate() throws org.apache.thrift.TException { 8922 // check for required fields 8923 } 8924 8925 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 8926 try { 8927 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 8928 } catch (org.apache.thrift.TException te) { 8929 throw new java.io.IOException(te); 8930 } 8931 } 8932 8933 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 8934 try { 8935 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 8936 } catch (org.apache.thrift.TException te) { 8937 throw new java.io.IOException(te); 8938 } 8939 } 8940 8941 private static class getTableNames_resultStandardSchemeFactory implements SchemeFactory { 8942 public getTableNames_resultStandardScheme getScheme() { 8943 return new getTableNames_resultStandardScheme(); 8944 } 8945 } 8946 8947 private static class getTableNames_resultStandardScheme extends StandardScheme<getTableNames_result> { 8948 8949 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_result struct) throws org.apache.thrift.TException { 8950 org.apache.thrift.protocol.TField schemeField; 8951 iprot.readStructBegin(); 8952 while (true) 8953 { 8954 schemeField = iprot.readFieldBegin(); 8955 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 8956 break; 8957 } 8958 switch (schemeField.id) { 8959 case 0: // SUCCESS 8960 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 8961 { 8962 org.apache.thrift.protocol.TList _list34 = iprot.readListBegin(); 8963 struct.success = new ArrayList<ByteBuffer>(_list34.size); 8964 for (int _i35 = 0; _i35 < _list34.size; ++_i35) 8965 { 8966 ByteBuffer _elem36; // required 8967 _elem36 = iprot.readBinary(); 8968 struct.success.add(_elem36); 8969 } 8970 iprot.readListEnd(); 8971 } 8972 struct.setSuccessIsSet(true); 8973 } else { 8974 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8975 } 8976 break; 8977 case 1: // IO 8978 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 8979 struct.io = new IOError(); 8980 struct.io.read(iprot); 8981 struct.setIoIsSet(true); 8982 } else { 8983 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8984 } 8985 break; 8986 default: 8987 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 8988 } 8989 iprot.readFieldEnd(); 8990 } 8991 iprot.readStructEnd(); 8992 8993 // check for required fields of primitive type, which can't be checked in the validate method 8994 struct.validate(); 8995 } 8996 8997 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_result struct) throws org.apache.thrift.TException { 8998 struct.validate(); 8999 9000 oprot.writeStructBegin(STRUCT_DESC); 9001 if (struct.success != null) { 9002 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 9003 { 9004 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); 9005 for (ByteBuffer _iter37 : struct.success) 9006 { 9007 oprot.writeBinary(_iter37); 9008 } 9009 oprot.writeListEnd(); 9010 } 9011 oprot.writeFieldEnd(); 9012 } 9013 if (struct.io != null) { 9014 oprot.writeFieldBegin(IO_FIELD_DESC); 9015 struct.io.write(oprot); 9016 oprot.writeFieldEnd(); 9017 } 9018 oprot.writeFieldStop(); 9019 oprot.writeStructEnd(); 9020 } 9021 9022 } 9023 9024 private static class getTableNames_resultTupleSchemeFactory implements SchemeFactory { 9025 public getTableNames_resultTupleScheme getScheme() { 9026 return new getTableNames_resultTupleScheme(); 9027 } 9028 } 9029 9030 private static class getTableNames_resultTupleScheme extends TupleScheme<getTableNames_result> { 9031 9032 @Override 9033 public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException { 9034 TTupleProtocol oprot = (TTupleProtocol) prot; 9035 BitSet optionals = new BitSet(); 9036 if (struct.isSetSuccess()) { 9037 optionals.set(0); 9038 } 9039 if (struct.isSetIo()) { 9040 optionals.set(1); 9041 } 9042 oprot.writeBitSet(optionals, 2); 9043 if (struct.isSetSuccess()) { 9044 { 9045 oprot.writeI32(struct.success.size()); 9046 for (ByteBuffer _iter38 : struct.success) 9047 { 9048 oprot.writeBinary(_iter38); 9049 } 9050 } 9051 } 9052 if (struct.isSetIo()) { 9053 struct.io.write(oprot); 9054 } 9055 } 9056 9057 @Override 9058 public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException { 9059 TTupleProtocol iprot = (TTupleProtocol) prot; 9060 BitSet incoming = iprot.readBitSet(2); 9061 if (incoming.get(0)) { 9062 { 9063 org.apache.thrift.protocol.TList _list39 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 9064 struct.success = new ArrayList<ByteBuffer>(_list39.size); 9065 for (int _i40 = 0; _i40 < _list39.size; ++_i40) 9066 { 9067 ByteBuffer _elem41; // required 9068 _elem41 = iprot.readBinary(); 9069 struct.success.add(_elem41); 9070 } 9071 } 9072 struct.setSuccessIsSet(true); 9073 } 9074 if (incoming.get(1)) { 9075 struct.io = new IOError(); 9076 struct.io.read(iprot); 9077 struct.setIoIsSet(true); 9078 } 9079 } 9080 } 9081 9082 } 9083 9084 public static class getColumnDescriptors_args implements org.apache.thrift.TBase<getColumnDescriptors_args, getColumnDescriptors_args._Fields>, java.io.Serializable, Cloneable { 9085 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_args"); 9086 9087 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 9088 9089 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 9090 static { 9091 schemes.put(StandardScheme.class, new getColumnDescriptors_argsStandardSchemeFactory()); 9092 schemes.put(TupleScheme.class, new getColumnDescriptors_argsTupleSchemeFactory()); 9093 } 9094 9095 /** 9096 * table name 9097 */ 9098 public ByteBuffer tableName; // required 9099 9100 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 9101 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 9102 /** 9103 * table name 9104 */ 9105 TABLE_NAME((short)1, "tableName"); 9106 9107 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 9108 9109 static { 9110 for (_Fields field : EnumSet.allOf(_Fields.class)) { 9111 byName.put(field.getFieldName(), field); 9112 } 9113 } 9114 9115 /** 9116 * Find the _Fields constant that matches fieldId, or null if its not found. 9117 */ 9118 public static _Fields findByThriftId(int fieldId) { 9119 switch(fieldId) { 9120 case 1: // TABLE_NAME 9121 return TABLE_NAME; 9122 default: 9123 return null; 9124 } 9125 } 9126 9127 /** 9128 * Find the _Fields constant that matches fieldId, throwing an exception 9129 * if it is not found. 9130 */ 9131 public static _Fields findByThriftIdOrThrow(int fieldId) { 9132 _Fields fields = findByThriftId(fieldId); 9133 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 9134 return fields; 9135 } 9136 9137 /** 9138 * Find the _Fields constant that matches name, or null if its not found. 9139 */ 9140 public static _Fields findByName(String name) { 9141 return byName.get(name); 9142 } 9143 9144 private final short _thriftId; 9145 private final String _fieldName; 9146 9147 _Fields(short thriftId, String fieldName) { 9148 _thriftId = thriftId; 9149 _fieldName = fieldName; 9150 } 9151 9152 public short getThriftFieldId() { 9153 return _thriftId; 9154 } 9155 9156 public String getFieldName() { 9157 return _fieldName; 9158 } 9159 } 9160 9161 // isset id assignments 9162 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 9163 static { 9164 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 9165 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 9166 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 9167 metaDataMap = Collections.unmodifiableMap(tmpMap); 9168 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_args.class, metaDataMap); 9169 } 9170 9171 public getColumnDescriptors_args() { 9172 } 9173 9174 public getColumnDescriptors_args( 9175 ByteBuffer tableName) 9176 { 9177 this(); 9178 this.tableName = tableName; 9179 } 9180 9181 /** 9182 * Performs a deep copy on <i>other</i>. 9183 */ 9184 public getColumnDescriptors_args(getColumnDescriptors_args other) { 9185 if (other.isSetTableName()) { 9186 this.tableName = other.tableName; 9187 } 9188 } 9189 9190 public getColumnDescriptors_args deepCopy() { 9191 return new getColumnDescriptors_args(this); 9192 } 9193 9194 @Override 9195 public void clear() { 9196 this.tableName = null; 9197 } 9198 9199 /** 9200 * table name 9201 */ 9202 public byte[] getTableName() { 9203 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 9204 return tableName == null ? null : tableName.array(); 9205 } 9206 9207 public ByteBuffer bufferForTableName() { 9208 return tableName; 9209 } 9210 9211 /** 9212 * table name 9213 */ 9214 public getColumnDescriptors_args setTableName(byte[] tableName) { 9215 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 9216 return this; 9217 } 9218 9219 public getColumnDescriptors_args setTableName(ByteBuffer tableName) { 9220 this.tableName = tableName; 9221 return this; 9222 } 9223 9224 public void unsetTableName() { 9225 this.tableName = null; 9226 } 9227 9228 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 9229 public boolean isSetTableName() { 9230 return this.tableName != null; 9231 } 9232 9233 public void setTableNameIsSet(boolean value) { 9234 if (!value) { 9235 this.tableName = null; 9236 } 9237 } 9238 9239 public void setFieldValue(_Fields field, Object value) { 9240 switch (field) { 9241 case TABLE_NAME: 9242 if (value == null) { 9243 unsetTableName(); 9244 } else { 9245 setTableName((ByteBuffer)value); 9246 } 9247 break; 9248 9249 } 9250 } 9251 9252 public Object getFieldValue(_Fields field) { 9253 switch (field) { 9254 case TABLE_NAME: 9255 return getTableName(); 9256 9257 } 9258 throw new IllegalStateException(); 9259 } 9260 9261 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 9262 public boolean isSet(_Fields field) { 9263 if (field == null) { 9264 throw new IllegalArgumentException(); 9265 } 9266 9267 switch (field) { 9268 case TABLE_NAME: 9269 return isSetTableName(); 9270 } 9271 throw new IllegalStateException(); 9272 } 9273 9274 @Override 9275 public boolean equals(Object that) { 9276 if (that == null) 9277 return false; 9278 if (that instanceof getColumnDescriptors_args) 9279 return this.equals((getColumnDescriptors_args)that); 9280 return false; 9281 } 9282 9283 public boolean equals(getColumnDescriptors_args that) { 9284 if (that == null) 9285 return false; 9286 9287 boolean this_present_tableName = true && this.isSetTableName(); 9288 boolean that_present_tableName = true && that.isSetTableName(); 9289 if (this_present_tableName || that_present_tableName) { 9290 if (!(this_present_tableName && that_present_tableName)) 9291 return false; 9292 if (!this.tableName.equals(that.tableName)) 9293 return false; 9294 } 9295 9296 return true; 9297 } 9298 9299 @Override 9300 public int hashCode() { 9301 HashCodeBuilder builder = new HashCodeBuilder(); 9302 9303 boolean present_tableName = true && (isSetTableName()); 9304 builder.append(present_tableName); 9305 if (present_tableName) 9306 builder.append(tableName); 9307 9308 return builder.toHashCode(); 9309 } 9310 9311 public int compareTo(getColumnDescriptors_args other) { 9312 if (!getClass().equals(other.getClass())) { 9313 return getClass().getName().compareTo(other.getClass().getName()); 9314 } 9315 9316 int lastComparison = 0; 9317 getColumnDescriptors_args typedOther = (getColumnDescriptors_args)other; 9318 9319 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 9320 if (lastComparison != 0) { 9321 return lastComparison; 9322 } 9323 if (isSetTableName()) { 9324 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 9325 if (lastComparison != 0) { 9326 return lastComparison; 9327 } 9328 } 9329 return 0; 9330 } 9331 9332 public _Fields fieldForId(int fieldId) { 9333 return _Fields.findByThriftId(fieldId); 9334 } 9335 9336 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 9337 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 9338 } 9339 9340 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 9341 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 9342 } 9343 9344 @Override 9345 public String toString() { 9346 StringBuilder sb = new StringBuilder("getColumnDescriptors_args("); 9347 boolean first = true; 9348 9349 sb.append("tableName:"); 9350 if (this.tableName == null) { 9351 sb.append("null"); 9352 } else { 9353 sb.append(this.tableName); 9354 } 9355 first = false; 9356 sb.append(")"); 9357 return sb.toString(); 9358 } 9359 9360 public void validate() throws org.apache.thrift.TException { 9361 // check for required fields 9362 } 9363 9364 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 9365 try { 9366 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 9367 } catch (org.apache.thrift.TException te) { 9368 throw new java.io.IOException(te); 9369 } 9370 } 9371 9372 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 9373 try { 9374 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 9375 } catch (org.apache.thrift.TException te) { 9376 throw new java.io.IOException(te); 9377 } 9378 } 9379 9380 private static class getColumnDescriptors_argsStandardSchemeFactory implements SchemeFactory { 9381 public getColumnDescriptors_argsStandardScheme getScheme() { 9382 return new getColumnDescriptors_argsStandardScheme(); 9383 } 9384 } 9385 9386 private static class getColumnDescriptors_argsStandardScheme extends StandardScheme<getColumnDescriptors_args> { 9387 9388 public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { 9389 org.apache.thrift.protocol.TField schemeField; 9390 iprot.readStructBegin(); 9391 while (true) 9392 { 9393 schemeField = iprot.readFieldBegin(); 9394 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 9395 break; 9396 } 9397 switch (schemeField.id) { 9398 case 1: // TABLE_NAME 9399 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 9400 struct.tableName = iprot.readBinary(); 9401 struct.setTableNameIsSet(true); 9402 } else { 9403 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 9404 } 9405 break; 9406 default: 9407 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 9408 } 9409 iprot.readFieldEnd(); 9410 } 9411 iprot.readStructEnd(); 9412 9413 // check for required fields of primitive type, which can't be checked in the validate method 9414 struct.validate(); 9415 } 9416 9417 public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { 9418 struct.validate(); 9419 9420 oprot.writeStructBegin(STRUCT_DESC); 9421 if (struct.tableName != null) { 9422 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 9423 oprot.writeBinary(struct.tableName); 9424 oprot.writeFieldEnd(); 9425 } 9426 oprot.writeFieldStop(); 9427 oprot.writeStructEnd(); 9428 } 9429 9430 } 9431 9432 private static class getColumnDescriptors_argsTupleSchemeFactory implements SchemeFactory { 9433 public getColumnDescriptors_argsTupleScheme getScheme() { 9434 return new getColumnDescriptors_argsTupleScheme(); 9435 } 9436 } 9437 9438 private static class getColumnDescriptors_argsTupleScheme extends TupleScheme<getColumnDescriptors_args> { 9439 9440 @Override 9441 public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { 9442 TTupleProtocol oprot = (TTupleProtocol) prot; 9443 BitSet optionals = new BitSet(); 9444 if (struct.isSetTableName()) { 9445 optionals.set(0); 9446 } 9447 oprot.writeBitSet(optionals, 1); 9448 if (struct.isSetTableName()) { 9449 oprot.writeBinary(struct.tableName); 9450 } 9451 } 9452 9453 @Override 9454 public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException { 9455 TTupleProtocol iprot = (TTupleProtocol) prot; 9456 BitSet incoming = iprot.readBitSet(1); 9457 if (incoming.get(0)) { 9458 struct.tableName = iprot.readBinary(); 9459 struct.setTableNameIsSet(true); 9460 } 9461 } 9462 } 9463 9464 } 9465 9466 public static class getColumnDescriptors_result implements org.apache.thrift.TBase<getColumnDescriptors_result, getColumnDescriptors_result._Fields>, java.io.Serializable, Cloneable { 9467 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_result"); 9468 9469 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); 9470 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 9471 9472 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 9473 static { 9474 schemes.put(StandardScheme.class, new getColumnDescriptors_resultStandardSchemeFactory()); 9475 schemes.put(TupleScheme.class, new getColumnDescriptors_resultTupleSchemeFactory()); 9476 } 9477 9478 public Map<ByteBuffer,ColumnDescriptor> success; // required 9479 public IOError io; // required 9480 9481 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 9482 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 9483 SUCCESS((short)0, "success"), 9484 IO((short)1, "io"); 9485 9486 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 9487 9488 static { 9489 for (_Fields field : EnumSet.allOf(_Fields.class)) { 9490 byName.put(field.getFieldName(), field); 9491 } 9492 } 9493 9494 /** 9495 * Find the _Fields constant that matches fieldId, or null if its not found. 9496 */ 9497 public static _Fields findByThriftId(int fieldId) { 9498 switch(fieldId) { 9499 case 0: // SUCCESS 9500 return SUCCESS; 9501 case 1: // IO 9502 return IO; 9503 default: 9504 return null; 9505 } 9506 } 9507 9508 /** 9509 * Find the _Fields constant that matches fieldId, throwing an exception 9510 * if it is not found. 9511 */ 9512 public static _Fields findByThriftIdOrThrow(int fieldId) { 9513 _Fields fields = findByThriftId(fieldId); 9514 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 9515 return fields; 9516 } 9517 9518 /** 9519 * Find the _Fields constant that matches name, or null if its not found. 9520 */ 9521 public static _Fields findByName(String name) { 9522 return byName.get(name); 9523 } 9524 9525 private final short _thriftId; 9526 private final String _fieldName; 9527 9528 _Fields(short thriftId, String fieldName) { 9529 _thriftId = thriftId; 9530 _fieldName = fieldName; 9531 } 9532 9533 public short getThriftFieldId() { 9534 return _thriftId; 9535 } 9536 9537 public String getFieldName() { 9538 return _fieldName; 9539 } 9540 } 9541 9542 // isset id assignments 9543 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 9544 static { 9545 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 9546 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 9547 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 9548 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 9549 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class)))); 9550 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 9551 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 9552 metaDataMap = Collections.unmodifiableMap(tmpMap); 9553 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_result.class, metaDataMap); 9554 } 9555 9556 public getColumnDescriptors_result() { 9557 } 9558 9559 public getColumnDescriptors_result( 9560 Map<ByteBuffer,ColumnDescriptor> success, 9561 IOError io) 9562 { 9563 this(); 9564 this.success = success; 9565 this.io = io; 9566 } 9567 9568 /** 9569 * Performs a deep copy on <i>other</i>. 9570 */ 9571 public getColumnDescriptors_result(getColumnDescriptors_result other) { 9572 if (other.isSetSuccess()) { 9573 Map<ByteBuffer,ColumnDescriptor> __this__success = new HashMap<ByteBuffer,ColumnDescriptor>(); 9574 for (Map.Entry<ByteBuffer, ColumnDescriptor> other_element : other.success.entrySet()) { 9575 9576 ByteBuffer other_element_key = other_element.getKey(); 9577 ColumnDescriptor other_element_value = other_element.getValue(); 9578 9579 ByteBuffer __this__success_copy_key = other_element_key; 9580 9581 ColumnDescriptor __this__success_copy_value = new ColumnDescriptor(other_element_value); 9582 9583 __this__success.put(__this__success_copy_key, __this__success_copy_value); 9584 } 9585 this.success = __this__success; 9586 } 9587 if (other.isSetIo()) { 9588 this.io = new IOError(other.io); 9589 } 9590 } 9591 9592 public getColumnDescriptors_result deepCopy() { 9593 return new getColumnDescriptors_result(this); 9594 } 9595 9596 @Override 9597 public void clear() { 9598 this.success = null; 9599 this.io = null; 9600 } 9601 9602 public int getSuccessSize() { 9603 return (this.success == null) ? 0 : this.success.size(); 9604 } 9605 9606 public void putToSuccess(ByteBuffer key, ColumnDescriptor val) { 9607 if (this.success == null) { 9608 this.success = new HashMap<ByteBuffer,ColumnDescriptor>(); 9609 } 9610 this.success.put(key, val); 9611 } 9612 9613 public Map<ByteBuffer,ColumnDescriptor> getSuccess() { 9614 return this.success; 9615 } 9616 9617 public getColumnDescriptors_result setSuccess(Map<ByteBuffer,ColumnDescriptor> success) { 9618 this.success = success; 9619 return this; 9620 } 9621 9622 public void unsetSuccess() { 9623 this.success = null; 9624 } 9625 9626 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 9627 public boolean isSetSuccess() { 9628 return this.success != null; 9629 } 9630 9631 public void setSuccessIsSet(boolean value) { 9632 if (!value) { 9633 this.success = null; 9634 } 9635 } 9636 9637 public IOError getIo() { 9638 return this.io; 9639 } 9640 9641 public getColumnDescriptors_result setIo(IOError io) { 9642 this.io = io; 9643 return this; 9644 } 9645 9646 public void unsetIo() { 9647 this.io = null; 9648 } 9649 9650 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 9651 public boolean isSetIo() { 9652 return this.io != null; 9653 } 9654 9655 public void setIoIsSet(boolean value) { 9656 if (!value) { 9657 this.io = null; 9658 } 9659 } 9660 9661 public void setFieldValue(_Fields field, Object value) { 9662 switch (field) { 9663 case SUCCESS: 9664 if (value == null) { 9665 unsetSuccess(); 9666 } else { 9667 setSuccess((Map<ByteBuffer,ColumnDescriptor>)value); 9668 } 9669 break; 9670 9671 case IO: 9672 if (value == null) { 9673 unsetIo(); 9674 } else { 9675 setIo((IOError)value); 9676 } 9677 break; 9678 9679 } 9680 } 9681 9682 public Object getFieldValue(_Fields field) { 9683 switch (field) { 9684 case SUCCESS: 9685 return getSuccess(); 9686 9687 case IO: 9688 return getIo(); 9689 9690 } 9691 throw new IllegalStateException(); 9692 } 9693 9694 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 9695 public boolean isSet(_Fields field) { 9696 if (field == null) { 9697 throw new IllegalArgumentException(); 9698 } 9699 9700 switch (field) { 9701 case SUCCESS: 9702 return isSetSuccess(); 9703 case IO: 9704 return isSetIo(); 9705 } 9706 throw new IllegalStateException(); 9707 } 9708 9709 @Override 9710 public boolean equals(Object that) { 9711 if (that == null) 9712 return false; 9713 if (that instanceof getColumnDescriptors_result) 9714 return this.equals((getColumnDescriptors_result)that); 9715 return false; 9716 } 9717 9718 public boolean equals(getColumnDescriptors_result that) { 9719 if (that == null) 9720 return false; 9721 9722 boolean this_present_success = true && this.isSetSuccess(); 9723 boolean that_present_success = true && that.isSetSuccess(); 9724 if (this_present_success || that_present_success) { 9725 if (!(this_present_success && that_present_success)) 9726 return false; 9727 if (!this.success.equals(that.success)) 9728 return false; 9729 } 9730 9731 boolean this_present_io = true && this.isSetIo(); 9732 boolean that_present_io = true && that.isSetIo(); 9733 if (this_present_io || that_present_io) { 9734 if (!(this_present_io && that_present_io)) 9735 return false; 9736 if (!this.io.equals(that.io)) 9737 return false; 9738 } 9739 9740 return true; 9741 } 9742 9743 @Override 9744 public int hashCode() { 9745 HashCodeBuilder builder = new HashCodeBuilder(); 9746 9747 boolean present_success = true && (isSetSuccess()); 9748 builder.append(present_success); 9749 if (present_success) 9750 builder.append(success); 9751 9752 boolean present_io = true && (isSetIo()); 9753 builder.append(present_io); 9754 if (present_io) 9755 builder.append(io); 9756 9757 return builder.toHashCode(); 9758 } 9759 9760 public int compareTo(getColumnDescriptors_result other) { 9761 if (!getClass().equals(other.getClass())) { 9762 return getClass().getName().compareTo(other.getClass().getName()); 9763 } 9764 9765 int lastComparison = 0; 9766 getColumnDescriptors_result typedOther = (getColumnDescriptors_result)other; 9767 9768 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 9769 if (lastComparison != 0) { 9770 return lastComparison; 9771 } 9772 if (isSetSuccess()) { 9773 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 9774 if (lastComparison != 0) { 9775 return lastComparison; 9776 } 9777 } 9778 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 9779 if (lastComparison != 0) { 9780 return lastComparison; 9781 } 9782 if (isSetIo()) { 9783 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 9784 if (lastComparison != 0) { 9785 return lastComparison; 9786 } 9787 } 9788 return 0; 9789 } 9790 9791 public _Fields fieldForId(int fieldId) { 9792 return _Fields.findByThriftId(fieldId); 9793 } 9794 9795 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 9796 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 9797 } 9798 9799 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 9800 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 9801 } 9802 9803 @Override 9804 public String toString() { 9805 StringBuilder sb = new StringBuilder("getColumnDescriptors_result("); 9806 boolean first = true; 9807 9808 sb.append("success:"); 9809 if (this.success == null) { 9810 sb.append("null"); 9811 } else { 9812 sb.append(this.success); 9813 } 9814 first = false; 9815 if (!first) sb.append(", "); 9816 sb.append("io:"); 9817 if (this.io == null) { 9818 sb.append("null"); 9819 } else { 9820 sb.append(this.io); 9821 } 9822 first = false; 9823 sb.append(")"); 9824 return sb.toString(); 9825 } 9826 9827 public void validate() throws org.apache.thrift.TException { 9828 // check for required fields 9829 } 9830 9831 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 9832 try { 9833 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 9834 } catch (org.apache.thrift.TException te) { 9835 throw new java.io.IOException(te); 9836 } 9837 } 9838 9839 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 9840 try { 9841 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 9842 } catch (org.apache.thrift.TException te) { 9843 throw new java.io.IOException(te); 9844 } 9845 } 9846 9847 private static class getColumnDescriptors_resultStandardSchemeFactory implements SchemeFactory { 9848 public getColumnDescriptors_resultStandardScheme getScheme() { 9849 return new getColumnDescriptors_resultStandardScheme(); 9850 } 9851 } 9852 9853 private static class getColumnDescriptors_resultStandardScheme extends StandardScheme<getColumnDescriptors_result> { 9854 9855 public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { 9856 org.apache.thrift.protocol.TField schemeField; 9857 iprot.readStructBegin(); 9858 while (true) 9859 { 9860 schemeField = iprot.readFieldBegin(); 9861 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 9862 break; 9863 } 9864 switch (schemeField.id) { 9865 case 0: // SUCCESS 9866 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 9867 { 9868 org.apache.thrift.protocol.TMap _map42 = iprot.readMapBegin(); 9869 struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map42.size); 9870 for (int _i43 = 0; _i43 < _map42.size; ++_i43) 9871 { 9872 ByteBuffer _key44; // required 9873 ColumnDescriptor _val45; // required 9874 _key44 = iprot.readBinary(); 9875 _val45 = new ColumnDescriptor(); 9876 _val45.read(iprot); 9877 struct.success.put(_key44, _val45); 9878 } 9879 iprot.readMapEnd(); 9880 } 9881 struct.setSuccessIsSet(true); 9882 } else { 9883 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 9884 } 9885 break; 9886 case 1: // IO 9887 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 9888 struct.io = new IOError(); 9889 struct.io.read(iprot); 9890 struct.setIoIsSet(true); 9891 } else { 9892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 9893 } 9894 break; 9895 default: 9896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 9897 } 9898 iprot.readFieldEnd(); 9899 } 9900 iprot.readStructEnd(); 9901 9902 // check for required fields of primitive type, which can't be checked in the validate method 9903 struct.validate(); 9904 } 9905 9906 public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { 9907 struct.validate(); 9908 9909 oprot.writeStructBegin(STRUCT_DESC); 9910 if (struct.success != null) { 9911 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 9912 { 9913 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 9914 for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter46 : struct.success.entrySet()) 9915 { 9916 oprot.writeBinary(_iter46.getKey()); 9917 _iter46.getValue().write(oprot); 9918 } 9919 oprot.writeMapEnd(); 9920 } 9921 oprot.writeFieldEnd(); 9922 } 9923 if (struct.io != null) { 9924 oprot.writeFieldBegin(IO_FIELD_DESC); 9925 struct.io.write(oprot); 9926 oprot.writeFieldEnd(); 9927 } 9928 oprot.writeFieldStop(); 9929 oprot.writeStructEnd(); 9930 } 9931 9932 } 9933 9934 private static class getColumnDescriptors_resultTupleSchemeFactory implements SchemeFactory { 9935 public getColumnDescriptors_resultTupleScheme getScheme() { 9936 return new getColumnDescriptors_resultTupleScheme(); 9937 } 9938 } 9939 9940 private static class getColumnDescriptors_resultTupleScheme extends TupleScheme<getColumnDescriptors_result> { 9941 9942 @Override 9943 public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { 9944 TTupleProtocol oprot = (TTupleProtocol) prot; 9945 BitSet optionals = new BitSet(); 9946 if (struct.isSetSuccess()) { 9947 optionals.set(0); 9948 } 9949 if (struct.isSetIo()) { 9950 optionals.set(1); 9951 } 9952 oprot.writeBitSet(optionals, 2); 9953 if (struct.isSetSuccess()) { 9954 { 9955 oprot.writeI32(struct.success.size()); 9956 for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter47 : struct.success.entrySet()) 9957 { 9958 oprot.writeBinary(_iter47.getKey()); 9959 _iter47.getValue().write(oprot); 9960 } 9961 } 9962 } 9963 if (struct.isSetIo()) { 9964 struct.io.write(oprot); 9965 } 9966 } 9967 9968 @Override 9969 public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException { 9970 TTupleProtocol iprot = (TTupleProtocol) prot; 9971 BitSet incoming = iprot.readBitSet(2); 9972 if (incoming.get(0)) { 9973 { 9974 org.apache.thrift.protocol.TMap _map48 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 9975 struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map48.size); 9976 for (int _i49 = 0; _i49 < _map48.size; ++_i49) 9977 { 9978 ByteBuffer _key50; // required 9979 ColumnDescriptor _val51; // required 9980 _key50 = iprot.readBinary(); 9981 _val51 = new ColumnDescriptor(); 9982 _val51.read(iprot); 9983 struct.success.put(_key50, _val51); 9984 } 9985 } 9986 struct.setSuccessIsSet(true); 9987 } 9988 if (incoming.get(1)) { 9989 struct.io = new IOError(); 9990 struct.io.read(iprot); 9991 struct.setIoIsSet(true); 9992 } 9993 } 9994 } 9995 9996 } 9997 9998 public static class getTableRegions_args implements org.apache.thrift.TBase<getTableRegions_args, getTableRegions_args._Fields>, java.io.Serializable, Cloneable { 9999 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_args"); 10000 10001 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 10002 10003 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 10004 static { 10005 schemes.put(StandardScheme.class, new getTableRegions_argsStandardSchemeFactory()); 10006 schemes.put(TupleScheme.class, new getTableRegions_argsTupleSchemeFactory()); 10007 } 10008 10009 /** 10010 * table name 10011 */ 10012 public ByteBuffer tableName; // required 10013 10014 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 10015 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 10016 /** 10017 * table name 10018 */ 10019 TABLE_NAME((short)1, "tableName"); 10020 10021 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 10022 10023 static { 10024 for (_Fields field : EnumSet.allOf(_Fields.class)) { 10025 byName.put(field.getFieldName(), field); 10026 } 10027 } 10028 10029 /** 10030 * Find the _Fields constant that matches fieldId, or null if its not found. 10031 */ 10032 public static _Fields findByThriftId(int fieldId) { 10033 switch(fieldId) { 10034 case 1: // TABLE_NAME 10035 return TABLE_NAME; 10036 default: 10037 return null; 10038 } 10039 } 10040 10041 /** 10042 * Find the _Fields constant that matches fieldId, throwing an exception 10043 * if it is not found. 10044 */ 10045 public static _Fields findByThriftIdOrThrow(int fieldId) { 10046 _Fields fields = findByThriftId(fieldId); 10047 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 10048 return fields; 10049 } 10050 10051 /** 10052 * Find the _Fields constant that matches name, or null if its not found. 10053 */ 10054 public static _Fields findByName(String name) { 10055 return byName.get(name); 10056 } 10057 10058 private final short _thriftId; 10059 private final String _fieldName; 10060 10061 _Fields(short thriftId, String fieldName) { 10062 _thriftId = thriftId; 10063 _fieldName = fieldName; 10064 } 10065 10066 public short getThriftFieldId() { 10067 return _thriftId; 10068 } 10069 10070 public String getFieldName() { 10071 return _fieldName; 10072 } 10073 } 10074 10075 // isset id assignments 10076 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 10077 static { 10078 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 10079 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 10080 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 10081 metaDataMap = Collections.unmodifiableMap(tmpMap); 10082 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_args.class, metaDataMap); 10083 } 10084 10085 public getTableRegions_args() { 10086 } 10087 10088 public getTableRegions_args( 10089 ByteBuffer tableName) 10090 { 10091 this(); 10092 this.tableName = tableName; 10093 } 10094 10095 /** 10096 * Performs a deep copy on <i>other</i>. 10097 */ 10098 public getTableRegions_args(getTableRegions_args other) { 10099 if (other.isSetTableName()) { 10100 this.tableName = other.tableName; 10101 } 10102 } 10103 10104 public getTableRegions_args deepCopy() { 10105 return new getTableRegions_args(this); 10106 } 10107 10108 @Override 10109 public void clear() { 10110 this.tableName = null; 10111 } 10112 10113 /** 10114 * table name 10115 */ 10116 public byte[] getTableName() { 10117 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 10118 return tableName == null ? null : tableName.array(); 10119 } 10120 10121 public ByteBuffer bufferForTableName() { 10122 return tableName; 10123 } 10124 10125 /** 10126 * table name 10127 */ 10128 public getTableRegions_args setTableName(byte[] tableName) { 10129 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 10130 return this; 10131 } 10132 10133 public getTableRegions_args setTableName(ByteBuffer tableName) { 10134 this.tableName = tableName; 10135 return this; 10136 } 10137 10138 public void unsetTableName() { 10139 this.tableName = null; 10140 } 10141 10142 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 10143 public boolean isSetTableName() { 10144 return this.tableName != null; 10145 } 10146 10147 public void setTableNameIsSet(boolean value) { 10148 if (!value) { 10149 this.tableName = null; 10150 } 10151 } 10152 10153 public void setFieldValue(_Fields field, Object value) { 10154 switch (field) { 10155 case TABLE_NAME: 10156 if (value == null) { 10157 unsetTableName(); 10158 } else { 10159 setTableName((ByteBuffer)value); 10160 } 10161 break; 10162 10163 } 10164 } 10165 10166 public Object getFieldValue(_Fields field) { 10167 switch (field) { 10168 case TABLE_NAME: 10169 return getTableName(); 10170 10171 } 10172 throw new IllegalStateException(); 10173 } 10174 10175 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 10176 public boolean isSet(_Fields field) { 10177 if (field == null) { 10178 throw new IllegalArgumentException(); 10179 } 10180 10181 switch (field) { 10182 case TABLE_NAME: 10183 return isSetTableName(); 10184 } 10185 throw new IllegalStateException(); 10186 } 10187 10188 @Override 10189 public boolean equals(Object that) { 10190 if (that == null) 10191 return false; 10192 if (that instanceof getTableRegions_args) 10193 return this.equals((getTableRegions_args)that); 10194 return false; 10195 } 10196 10197 public boolean equals(getTableRegions_args that) { 10198 if (that == null) 10199 return false; 10200 10201 boolean this_present_tableName = true && this.isSetTableName(); 10202 boolean that_present_tableName = true && that.isSetTableName(); 10203 if (this_present_tableName || that_present_tableName) { 10204 if (!(this_present_tableName && that_present_tableName)) 10205 return false; 10206 if (!this.tableName.equals(that.tableName)) 10207 return false; 10208 } 10209 10210 return true; 10211 } 10212 10213 @Override 10214 public int hashCode() { 10215 HashCodeBuilder builder = new HashCodeBuilder(); 10216 10217 boolean present_tableName = true && (isSetTableName()); 10218 builder.append(present_tableName); 10219 if (present_tableName) 10220 builder.append(tableName); 10221 10222 return builder.toHashCode(); 10223 } 10224 10225 public int compareTo(getTableRegions_args other) { 10226 if (!getClass().equals(other.getClass())) { 10227 return getClass().getName().compareTo(other.getClass().getName()); 10228 } 10229 10230 int lastComparison = 0; 10231 getTableRegions_args typedOther = (getTableRegions_args)other; 10232 10233 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 10234 if (lastComparison != 0) { 10235 return lastComparison; 10236 } 10237 if (isSetTableName()) { 10238 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 10239 if (lastComparison != 0) { 10240 return lastComparison; 10241 } 10242 } 10243 return 0; 10244 } 10245 10246 public _Fields fieldForId(int fieldId) { 10247 return _Fields.findByThriftId(fieldId); 10248 } 10249 10250 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 10251 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 10252 } 10253 10254 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 10255 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 10256 } 10257 10258 @Override 10259 public String toString() { 10260 StringBuilder sb = new StringBuilder("getTableRegions_args("); 10261 boolean first = true; 10262 10263 sb.append("tableName:"); 10264 if (this.tableName == null) { 10265 sb.append("null"); 10266 } else { 10267 sb.append(this.tableName); 10268 } 10269 first = false; 10270 sb.append(")"); 10271 return sb.toString(); 10272 } 10273 10274 public void validate() throws org.apache.thrift.TException { 10275 // check for required fields 10276 } 10277 10278 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 10279 try { 10280 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 10281 } catch (org.apache.thrift.TException te) { 10282 throw new java.io.IOException(te); 10283 } 10284 } 10285 10286 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 10287 try { 10288 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 10289 } catch (org.apache.thrift.TException te) { 10290 throw new java.io.IOException(te); 10291 } 10292 } 10293 10294 private static class getTableRegions_argsStandardSchemeFactory implements SchemeFactory { 10295 public getTableRegions_argsStandardScheme getScheme() { 10296 return new getTableRegions_argsStandardScheme(); 10297 } 10298 } 10299 10300 private static class getTableRegions_argsStandardScheme extends StandardScheme<getTableRegions_args> { 10301 10302 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_args struct) throws org.apache.thrift.TException { 10303 org.apache.thrift.protocol.TField schemeField; 10304 iprot.readStructBegin(); 10305 while (true) 10306 { 10307 schemeField = iprot.readFieldBegin(); 10308 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 10309 break; 10310 } 10311 switch (schemeField.id) { 10312 case 1: // TABLE_NAME 10313 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 10314 struct.tableName = iprot.readBinary(); 10315 struct.setTableNameIsSet(true); 10316 } else { 10317 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 10318 } 10319 break; 10320 default: 10321 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 10322 } 10323 iprot.readFieldEnd(); 10324 } 10325 iprot.readStructEnd(); 10326 10327 // check for required fields of primitive type, which can't be checked in the validate method 10328 struct.validate(); 10329 } 10330 10331 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_args struct) throws org.apache.thrift.TException { 10332 struct.validate(); 10333 10334 oprot.writeStructBegin(STRUCT_DESC); 10335 if (struct.tableName != null) { 10336 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 10337 oprot.writeBinary(struct.tableName); 10338 oprot.writeFieldEnd(); 10339 } 10340 oprot.writeFieldStop(); 10341 oprot.writeStructEnd(); 10342 } 10343 10344 } 10345 10346 private static class getTableRegions_argsTupleSchemeFactory implements SchemeFactory { 10347 public getTableRegions_argsTupleScheme getScheme() { 10348 return new getTableRegions_argsTupleScheme(); 10349 } 10350 } 10351 10352 private static class getTableRegions_argsTupleScheme extends TupleScheme<getTableRegions_args> { 10353 10354 @Override 10355 public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException { 10356 TTupleProtocol oprot = (TTupleProtocol) prot; 10357 BitSet optionals = new BitSet(); 10358 if (struct.isSetTableName()) { 10359 optionals.set(0); 10360 } 10361 oprot.writeBitSet(optionals, 1); 10362 if (struct.isSetTableName()) { 10363 oprot.writeBinary(struct.tableName); 10364 } 10365 } 10366 10367 @Override 10368 public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException { 10369 TTupleProtocol iprot = (TTupleProtocol) prot; 10370 BitSet incoming = iprot.readBitSet(1); 10371 if (incoming.get(0)) { 10372 struct.tableName = iprot.readBinary(); 10373 struct.setTableNameIsSet(true); 10374 } 10375 } 10376 } 10377 10378 } 10379 10380 public static class getTableRegions_result implements org.apache.thrift.TBase<getTableRegions_result, getTableRegions_result._Fields>, java.io.Serializable, Cloneable { 10381 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_result"); 10382 10383 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 10384 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 10385 10386 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 10387 static { 10388 schemes.put(StandardScheme.class, new getTableRegions_resultStandardSchemeFactory()); 10389 schemes.put(TupleScheme.class, new getTableRegions_resultTupleSchemeFactory()); 10390 } 10391 10392 public List<TRegionInfo> success; // required 10393 public IOError io; // required 10394 10395 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 10396 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 10397 SUCCESS((short)0, "success"), 10398 IO((short)1, "io"); 10399 10400 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 10401 10402 static { 10403 for (_Fields field : EnumSet.allOf(_Fields.class)) { 10404 byName.put(field.getFieldName(), field); 10405 } 10406 } 10407 10408 /** 10409 * Find the _Fields constant that matches fieldId, or null if its not found. 10410 */ 10411 public static _Fields findByThriftId(int fieldId) { 10412 switch(fieldId) { 10413 case 0: // SUCCESS 10414 return SUCCESS; 10415 case 1: // IO 10416 return IO; 10417 default: 10418 return null; 10419 } 10420 } 10421 10422 /** 10423 * Find the _Fields constant that matches fieldId, throwing an exception 10424 * if it is not found. 10425 */ 10426 public static _Fields findByThriftIdOrThrow(int fieldId) { 10427 _Fields fields = findByThriftId(fieldId); 10428 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 10429 return fields; 10430 } 10431 10432 /** 10433 * Find the _Fields constant that matches name, or null if its not found. 10434 */ 10435 public static _Fields findByName(String name) { 10436 return byName.get(name); 10437 } 10438 10439 private final short _thriftId; 10440 private final String _fieldName; 10441 10442 _Fields(short thriftId, String fieldName) { 10443 _thriftId = thriftId; 10444 _fieldName = fieldName; 10445 } 10446 10447 public short getThriftFieldId() { 10448 return _thriftId; 10449 } 10450 10451 public String getFieldName() { 10452 return _fieldName; 10453 } 10454 } 10455 10456 // isset id assignments 10457 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 10458 static { 10459 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 10460 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 10461 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 10462 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class)))); 10463 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 10464 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 10465 metaDataMap = Collections.unmodifiableMap(tmpMap); 10466 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_result.class, metaDataMap); 10467 } 10468 10469 public getTableRegions_result() { 10470 } 10471 10472 public getTableRegions_result( 10473 List<TRegionInfo> success, 10474 IOError io) 10475 { 10476 this(); 10477 this.success = success; 10478 this.io = io; 10479 } 10480 10481 /** 10482 * Performs a deep copy on <i>other</i>. 10483 */ 10484 public getTableRegions_result(getTableRegions_result other) { 10485 if (other.isSetSuccess()) { 10486 List<TRegionInfo> __this__success = new ArrayList<TRegionInfo>(); 10487 for (TRegionInfo other_element : other.success) { 10488 __this__success.add(new TRegionInfo(other_element)); 10489 } 10490 this.success = __this__success; 10491 } 10492 if (other.isSetIo()) { 10493 this.io = new IOError(other.io); 10494 } 10495 } 10496 10497 public getTableRegions_result deepCopy() { 10498 return new getTableRegions_result(this); 10499 } 10500 10501 @Override 10502 public void clear() { 10503 this.success = null; 10504 this.io = null; 10505 } 10506 10507 public int getSuccessSize() { 10508 return (this.success == null) ? 0 : this.success.size(); 10509 } 10510 10511 public java.util.Iterator<TRegionInfo> getSuccessIterator() { 10512 return (this.success == null) ? null : this.success.iterator(); 10513 } 10514 10515 public void addToSuccess(TRegionInfo elem) { 10516 if (this.success == null) { 10517 this.success = new ArrayList<TRegionInfo>(); 10518 } 10519 this.success.add(elem); 10520 } 10521 10522 public List<TRegionInfo> getSuccess() { 10523 return this.success; 10524 } 10525 10526 public getTableRegions_result setSuccess(List<TRegionInfo> success) { 10527 this.success = success; 10528 return this; 10529 } 10530 10531 public void unsetSuccess() { 10532 this.success = null; 10533 } 10534 10535 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 10536 public boolean isSetSuccess() { 10537 return this.success != null; 10538 } 10539 10540 public void setSuccessIsSet(boolean value) { 10541 if (!value) { 10542 this.success = null; 10543 } 10544 } 10545 10546 public IOError getIo() { 10547 return this.io; 10548 } 10549 10550 public getTableRegions_result setIo(IOError io) { 10551 this.io = io; 10552 return this; 10553 } 10554 10555 public void unsetIo() { 10556 this.io = null; 10557 } 10558 10559 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 10560 public boolean isSetIo() { 10561 return this.io != null; 10562 } 10563 10564 public void setIoIsSet(boolean value) { 10565 if (!value) { 10566 this.io = null; 10567 } 10568 } 10569 10570 public void setFieldValue(_Fields field, Object value) { 10571 switch (field) { 10572 case SUCCESS: 10573 if (value == null) { 10574 unsetSuccess(); 10575 } else { 10576 setSuccess((List<TRegionInfo>)value); 10577 } 10578 break; 10579 10580 case IO: 10581 if (value == null) { 10582 unsetIo(); 10583 } else { 10584 setIo((IOError)value); 10585 } 10586 break; 10587 10588 } 10589 } 10590 10591 public Object getFieldValue(_Fields field) { 10592 switch (field) { 10593 case SUCCESS: 10594 return getSuccess(); 10595 10596 case IO: 10597 return getIo(); 10598 10599 } 10600 throw new IllegalStateException(); 10601 } 10602 10603 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 10604 public boolean isSet(_Fields field) { 10605 if (field == null) { 10606 throw new IllegalArgumentException(); 10607 } 10608 10609 switch (field) { 10610 case SUCCESS: 10611 return isSetSuccess(); 10612 case IO: 10613 return isSetIo(); 10614 } 10615 throw new IllegalStateException(); 10616 } 10617 10618 @Override 10619 public boolean equals(Object that) { 10620 if (that == null) 10621 return false; 10622 if (that instanceof getTableRegions_result) 10623 return this.equals((getTableRegions_result)that); 10624 return false; 10625 } 10626 10627 public boolean equals(getTableRegions_result that) { 10628 if (that == null) 10629 return false; 10630 10631 boolean this_present_success = true && this.isSetSuccess(); 10632 boolean that_present_success = true && that.isSetSuccess(); 10633 if (this_present_success || that_present_success) { 10634 if (!(this_present_success && that_present_success)) 10635 return false; 10636 if (!this.success.equals(that.success)) 10637 return false; 10638 } 10639 10640 boolean this_present_io = true && this.isSetIo(); 10641 boolean that_present_io = true && that.isSetIo(); 10642 if (this_present_io || that_present_io) { 10643 if (!(this_present_io && that_present_io)) 10644 return false; 10645 if (!this.io.equals(that.io)) 10646 return false; 10647 } 10648 10649 return true; 10650 } 10651 10652 @Override 10653 public int hashCode() { 10654 HashCodeBuilder builder = new HashCodeBuilder(); 10655 10656 boolean present_success = true && (isSetSuccess()); 10657 builder.append(present_success); 10658 if (present_success) 10659 builder.append(success); 10660 10661 boolean present_io = true && (isSetIo()); 10662 builder.append(present_io); 10663 if (present_io) 10664 builder.append(io); 10665 10666 return builder.toHashCode(); 10667 } 10668 10669 public int compareTo(getTableRegions_result other) { 10670 if (!getClass().equals(other.getClass())) { 10671 return getClass().getName().compareTo(other.getClass().getName()); 10672 } 10673 10674 int lastComparison = 0; 10675 getTableRegions_result typedOther = (getTableRegions_result)other; 10676 10677 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 10678 if (lastComparison != 0) { 10679 return lastComparison; 10680 } 10681 if (isSetSuccess()) { 10682 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 10683 if (lastComparison != 0) { 10684 return lastComparison; 10685 } 10686 } 10687 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 10688 if (lastComparison != 0) { 10689 return lastComparison; 10690 } 10691 if (isSetIo()) { 10692 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 10693 if (lastComparison != 0) { 10694 return lastComparison; 10695 } 10696 } 10697 return 0; 10698 } 10699 10700 public _Fields fieldForId(int fieldId) { 10701 return _Fields.findByThriftId(fieldId); 10702 } 10703 10704 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 10705 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 10706 } 10707 10708 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 10709 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 10710 } 10711 10712 @Override 10713 public String toString() { 10714 StringBuilder sb = new StringBuilder("getTableRegions_result("); 10715 boolean first = true; 10716 10717 sb.append("success:"); 10718 if (this.success == null) { 10719 sb.append("null"); 10720 } else { 10721 sb.append(this.success); 10722 } 10723 first = false; 10724 if (!first) sb.append(", "); 10725 sb.append("io:"); 10726 if (this.io == null) { 10727 sb.append("null"); 10728 } else { 10729 sb.append(this.io); 10730 } 10731 first = false; 10732 sb.append(")"); 10733 return sb.toString(); 10734 } 10735 10736 public void validate() throws org.apache.thrift.TException { 10737 // check for required fields 10738 } 10739 10740 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 10741 try { 10742 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 10743 } catch (org.apache.thrift.TException te) { 10744 throw new java.io.IOException(te); 10745 } 10746 } 10747 10748 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 10749 try { 10750 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 10751 } catch (org.apache.thrift.TException te) { 10752 throw new java.io.IOException(te); 10753 } 10754 } 10755 10756 private static class getTableRegions_resultStandardSchemeFactory implements SchemeFactory { 10757 public getTableRegions_resultStandardScheme getScheme() { 10758 return new getTableRegions_resultStandardScheme(); 10759 } 10760 } 10761 10762 private static class getTableRegions_resultStandardScheme extends StandardScheme<getTableRegions_result> { 10763 10764 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_result struct) throws org.apache.thrift.TException { 10765 org.apache.thrift.protocol.TField schemeField; 10766 iprot.readStructBegin(); 10767 while (true) 10768 { 10769 schemeField = iprot.readFieldBegin(); 10770 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 10771 break; 10772 } 10773 switch (schemeField.id) { 10774 case 0: // SUCCESS 10775 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 10776 { 10777 org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); 10778 struct.success = new ArrayList<TRegionInfo>(_list52.size); 10779 for (int _i53 = 0; _i53 < _list52.size; ++_i53) 10780 { 10781 TRegionInfo _elem54; // required 10782 _elem54 = new TRegionInfo(); 10783 _elem54.read(iprot); 10784 struct.success.add(_elem54); 10785 } 10786 iprot.readListEnd(); 10787 } 10788 struct.setSuccessIsSet(true); 10789 } else { 10790 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 10791 } 10792 break; 10793 case 1: // IO 10794 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 10795 struct.io = new IOError(); 10796 struct.io.read(iprot); 10797 struct.setIoIsSet(true); 10798 } else { 10799 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 10800 } 10801 break; 10802 default: 10803 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 10804 } 10805 iprot.readFieldEnd(); 10806 } 10807 iprot.readStructEnd(); 10808 10809 // check for required fields of primitive type, which can't be checked in the validate method 10810 struct.validate(); 10811 } 10812 10813 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_result struct) throws org.apache.thrift.TException { 10814 struct.validate(); 10815 10816 oprot.writeStructBegin(STRUCT_DESC); 10817 if (struct.success != null) { 10818 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 10819 { 10820 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 10821 for (TRegionInfo _iter55 : struct.success) 10822 { 10823 _iter55.write(oprot); 10824 } 10825 oprot.writeListEnd(); 10826 } 10827 oprot.writeFieldEnd(); 10828 } 10829 if (struct.io != null) { 10830 oprot.writeFieldBegin(IO_FIELD_DESC); 10831 struct.io.write(oprot); 10832 oprot.writeFieldEnd(); 10833 } 10834 oprot.writeFieldStop(); 10835 oprot.writeStructEnd(); 10836 } 10837 10838 } 10839 10840 private static class getTableRegions_resultTupleSchemeFactory implements SchemeFactory { 10841 public getTableRegions_resultTupleScheme getScheme() { 10842 return new getTableRegions_resultTupleScheme(); 10843 } 10844 } 10845 10846 private static class getTableRegions_resultTupleScheme extends TupleScheme<getTableRegions_result> { 10847 10848 @Override 10849 public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException { 10850 TTupleProtocol oprot = (TTupleProtocol) prot; 10851 BitSet optionals = new BitSet(); 10852 if (struct.isSetSuccess()) { 10853 optionals.set(0); 10854 } 10855 if (struct.isSetIo()) { 10856 optionals.set(1); 10857 } 10858 oprot.writeBitSet(optionals, 2); 10859 if (struct.isSetSuccess()) { 10860 { 10861 oprot.writeI32(struct.success.size()); 10862 for (TRegionInfo _iter56 : struct.success) 10863 { 10864 _iter56.write(oprot); 10865 } 10866 } 10867 } 10868 if (struct.isSetIo()) { 10869 struct.io.write(oprot); 10870 } 10871 } 10872 10873 @Override 10874 public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException { 10875 TTupleProtocol iprot = (TTupleProtocol) prot; 10876 BitSet incoming = iprot.readBitSet(2); 10877 if (incoming.get(0)) { 10878 { 10879 org.apache.thrift.protocol.TList _list57 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 10880 struct.success = new ArrayList<TRegionInfo>(_list57.size); 10881 for (int _i58 = 0; _i58 < _list57.size; ++_i58) 10882 { 10883 TRegionInfo _elem59; // required 10884 _elem59 = new TRegionInfo(); 10885 _elem59.read(iprot); 10886 struct.success.add(_elem59); 10887 } 10888 } 10889 struct.setSuccessIsSet(true); 10890 } 10891 if (incoming.get(1)) { 10892 struct.io = new IOError(); 10893 struct.io.read(iprot); 10894 struct.setIoIsSet(true); 10895 } 10896 } 10897 } 10898 10899 } 10900 10901 public static class createTable_args implements org.apache.thrift.TBase<createTable_args, createTable_args._Fields>, java.io.Serializable, Cloneable { 10902 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_args"); 10903 10904 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 10905 private static final org.apache.thrift.protocol.TField COLUMN_FAMILIES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamilies", org.apache.thrift.protocol.TType.LIST, (short)2); 10906 10907 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 10908 static { 10909 schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory()); 10910 schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory()); 10911 } 10912 10913 /** 10914 * name of table to create 10915 */ 10916 public ByteBuffer tableName; // required 10917 /** 10918 * list of column family descriptors 10919 */ 10920 public List<ColumnDescriptor> columnFamilies; // required 10921 10922 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 10923 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 10924 /** 10925 * name of table to create 10926 */ 10927 TABLE_NAME((short)1, "tableName"), 10928 /** 10929 * list of column family descriptors 10930 */ 10931 COLUMN_FAMILIES((short)2, "columnFamilies"); 10932 10933 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 10934 10935 static { 10936 for (_Fields field : EnumSet.allOf(_Fields.class)) { 10937 byName.put(field.getFieldName(), field); 10938 } 10939 } 10940 10941 /** 10942 * Find the _Fields constant that matches fieldId, or null if its not found. 10943 */ 10944 public static _Fields findByThriftId(int fieldId) { 10945 switch(fieldId) { 10946 case 1: // TABLE_NAME 10947 return TABLE_NAME; 10948 case 2: // COLUMN_FAMILIES 10949 return COLUMN_FAMILIES; 10950 default: 10951 return null; 10952 } 10953 } 10954 10955 /** 10956 * Find the _Fields constant that matches fieldId, throwing an exception 10957 * if it is not found. 10958 */ 10959 public static _Fields findByThriftIdOrThrow(int fieldId) { 10960 _Fields fields = findByThriftId(fieldId); 10961 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 10962 return fields; 10963 } 10964 10965 /** 10966 * Find the _Fields constant that matches name, or null if its not found. 10967 */ 10968 public static _Fields findByName(String name) { 10969 return byName.get(name); 10970 } 10971 10972 private final short _thriftId; 10973 private final String _fieldName; 10974 10975 _Fields(short thriftId, String fieldName) { 10976 _thriftId = thriftId; 10977 _fieldName = fieldName; 10978 } 10979 10980 public short getThriftFieldId() { 10981 return _thriftId; 10982 } 10983 10984 public String getFieldName() { 10985 return _fieldName; 10986 } 10987 } 10988 10989 // isset id assignments 10990 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 10991 static { 10992 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 10993 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 10994 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 10995 tmpMap.put(_Fields.COLUMN_FAMILIES, new org.apache.thrift.meta_data.FieldMetaData("columnFamilies", org.apache.thrift.TFieldRequirementType.DEFAULT, 10996 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 10997 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class)))); 10998 metaDataMap = Collections.unmodifiableMap(tmpMap); 10999 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap); 11000 } 11001 11002 public createTable_args() { 11003 } 11004 11005 public createTable_args( 11006 ByteBuffer tableName, 11007 List<ColumnDescriptor> columnFamilies) 11008 { 11009 this(); 11010 this.tableName = tableName; 11011 this.columnFamilies = columnFamilies; 11012 } 11013 11014 /** 11015 * Performs a deep copy on <i>other</i>. 11016 */ 11017 public createTable_args(createTable_args other) { 11018 if (other.isSetTableName()) { 11019 this.tableName = other.tableName; 11020 } 11021 if (other.isSetColumnFamilies()) { 11022 List<ColumnDescriptor> __this__columnFamilies = new ArrayList<ColumnDescriptor>(); 11023 for (ColumnDescriptor other_element : other.columnFamilies) { 11024 __this__columnFamilies.add(new ColumnDescriptor(other_element)); 11025 } 11026 this.columnFamilies = __this__columnFamilies; 11027 } 11028 } 11029 11030 public createTable_args deepCopy() { 11031 return new createTable_args(this); 11032 } 11033 11034 @Override 11035 public void clear() { 11036 this.tableName = null; 11037 this.columnFamilies = null; 11038 } 11039 11040 /** 11041 * name of table to create 11042 */ 11043 public byte[] getTableName() { 11044 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 11045 return tableName == null ? null : tableName.array(); 11046 } 11047 11048 public ByteBuffer bufferForTableName() { 11049 return tableName; 11050 } 11051 11052 /** 11053 * name of table to create 11054 */ 11055 public createTable_args setTableName(byte[] tableName) { 11056 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 11057 return this; 11058 } 11059 11060 public createTable_args setTableName(ByteBuffer tableName) { 11061 this.tableName = tableName; 11062 return this; 11063 } 11064 11065 public void unsetTableName() { 11066 this.tableName = null; 11067 } 11068 11069 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 11070 public boolean isSetTableName() { 11071 return this.tableName != null; 11072 } 11073 11074 public void setTableNameIsSet(boolean value) { 11075 if (!value) { 11076 this.tableName = null; 11077 } 11078 } 11079 11080 public int getColumnFamiliesSize() { 11081 return (this.columnFamilies == null) ? 0 : this.columnFamilies.size(); 11082 } 11083 11084 public java.util.Iterator<ColumnDescriptor> getColumnFamiliesIterator() { 11085 return (this.columnFamilies == null) ? null : this.columnFamilies.iterator(); 11086 } 11087 11088 public void addToColumnFamilies(ColumnDescriptor elem) { 11089 if (this.columnFamilies == null) { 11090 this.columnFamilies = new ArrayList<ColumnDescriptor>(); 11091 } 11092 this.columnFamilies.add(elem); 11093 } 11094 11095 /** 11096 * list of column family descriptors 11097 */ 11098 public List<ColumnDescriptor> getColumnFamilies() { 11099 return this.columnFamilies; 11100 } 11101 11102 /** 11103 * list of column family descriptors 11104 */ 11105 public createTable_args setColumnFamilies(List<ColumnDescriptor> columnFamilies) { 11106 this.columnFamilies = columnFamilies; 11107 return this; 11108 } 11109 11110 public void unsetColumnFamilies() { 11111 this.columnFamilies = null; 11112 } 11113 11114 /** Returns true if field columnFamilies is set (has been assigned a value) and false otherwise */ 11115 public boolean isSetColumnFamilies() { 11116 return this.columnFamilies != null; 11117 } 11118 11119 public void setColumnFamiliesIsSet(boolean value) { 11120 if (!value) { 11121 this.columnFamilies = null; 11122 } 11123 } 11124 11125 public void setFieldValue(_Fields field, Object value) { 11126 switch (field) { 11127 case TABLE_NAME: 11128 if (value == null) { 11129 unsetTableName(); 11130 } else { 11131 setTableName((ByteBuffer)value); 11132 } 11133 break; 11134 11135 case COLUMN_FAMILIES: 11136 if (value == null) { 11137 unsetColumnFamilies(); 11138 } else { 11139 setColumnFamilies((List<ColumnDescriptor>)value); 11140 } 11141 break; 11142 11143 } 11144 } 11145 11146 public Object getFieldValue(_Fields field) { 11147 switch (field) { 11148 case TABLE_NAME: 11149 return getTableName(); 11150 11151 case COLUMN_FAMILIES: 11152 return getColumnFamilies(); 11153 11154 } 11155 throw new IllegalStateException(); 11156 } 11157 11158 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 11159 public boolean isSet(_Fields field) { 11160 if (field == null) { 11161 throw new IllegalArgumentException(); 11162 } 11163 11164 switch (field) { 11165 case TABLE_NAME: 11166 return isSetTableName(); 11167 case COLUMN_FAMILIES: 11168 return isSetColumnFamilies(); 11169 } 11170 throw new IllegalStateException(); 11171 } 11172 11173 @Override 11174 public boolean equals(Object that) { 11175 if (that == null) 11176 return false; 11177 if (that instanceof createTable_args) 11178 return this.equals((createTable_args)that); 11179 return false; 11180 } 11181 11182 public boolean equals(createTable_args that) { 11183 if (that == null) 11184 return false; 11185 11186 boolean this_present_tableName = true && this.isSetTableName(); 11187 boolean that_present_tableName = true && that.isSetTableName(); 11188 if (this_present_tableName || that_present_tableName) { 11189 if (!(this_present_tableName && that_present_tableName)) 11190 return false; 11191 if (!this.tableName.equals(that.tableName)) 11192 return false; 11193 } 11194 11195 boolean this_present_columnFamilies = true && this.isSetColumnFamilies(); 11196 boolean that_present_columnFamilies = true && that.isSetColumnFamilies(); 11197 if (this_present_columnFamilies || that_present_columnFamilies) { 11198 if (!(this_present_columnFamilies && that_present_columnFamilies)) 11199 return false; 11200 if (!this.columnFamilies.equals(that.columnFamilies)) 11201 return false; 11202 } 11203 11204 return true; 11205 } 11206 11207 @Override 11208 public int hashCode() { 11209 HashCodeBuilder builder = new HashCodeBuilder(); 11210 11211 boolean present_tableName = true && (isSetTableName()); 11212 builder.append(present_tableName); 11213 if (present_tableName) 11214 builder.append(tableName); 11215 11216 boolean present_columnFamilies = true && (isSetColumnFamilies()); 11217 builder.append(present_columnFamilies); 11218 if (present_columnFamilies) 11219 builder.append(columnFamilies); 11220 11221 return builder.toHashCode(); 11222 } 11223 11224 public int compareTo(createTable_args other) { 11225 if (!getClass().equals(other.getClass())) { 11226 return getClass().getName().compareTo(other.getClass().getName()); 11227 } 11228 11229 int lastComparison = 0; 11230 createTable_args typedOther = (createTable_args)other; 11231 11232 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 11233 if (lastComparison != 0) { 11234 return lastComparison; 11235 } 11236 if (isSetTableName()) { 11237 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 11238 if (lastComparison != 0) { 11239 return lastComparison; 11240 } 11241 } 11242 lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(typedOther.isSetColumnFamilies()); 11243 if (lastComparison != 0) { 11244 return lastComparison; 11245 } 11246 if (isSetColumnFamilies()) { 11247 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, typedOther.columnFamilies); 11248 if (lastComparison != 0) { 11249 return lastComparison; 11250 } 11251 } 11252 return 0; 11253 } 11254 11255 public _Fields fieldForId(int fieldId) { 11256 return _Fields.findByThriftId(fieldId); 11257 } 11258 11259 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 11260 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 11261 } 11262 11263 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 11264 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 11265 } 11266 11267 @Override 11268 public String toString() { 11269 StringBuilder sb = new StringBuilder("createTable_args("); 11270 boolean first = true; 11271 11272 sb.append("tableName:"); 11273 if (this.tableName == null) { 11274 sb.append("null"); 11275 } else { 11276 sb.append(this.tableName); 11277 } 11278 first = false; 11279 if (!first) sb.append(", "); 11280 sb.append("columnFamilies:"); 11281 if (this.columnFamilies == null) { 11282 sb.append("null"); 11283 } else { 11284 sb.append(this.columnFamilies); 11285 } 11286 first = false; 11287 sb.append(")"); 11288 return sb.toString(); 11289 } 11290 11291 public void validate() throws org.apache.thrift.TException { 11292 // check for required fields 11293 } 11294 11295 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 11296 try { 11297 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 11298 } catch (org.apache.thrift.TException te) { 11299 throw new java.io.IOException(te); 11300 } 11301 } 11302 11303 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 11304 try { 11305 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 11306 } catch (org.apache.thrift.TException te) { 11307 throw new java.io.IOException(te); 11308 } 11309 } 11310 11311 private static class createTable_argsStandardSchemeFactory implements SchemeFactory { 11312 public createTable_argsStandardScheme getScheme() { 11313 return new createTable_argsStandardScheme(); 11314 } 11315 } 11316 11317 private static class createTable_argsStandardScheme extends StandardScheme<createTable_args> { 11318 11319 public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_args struct) throws org.apache.thrift.TException { 11320 org.apache.thrift.protocol.TField schemeField; 11321 iprot.readStructBegin(); 11322 while (true) 11323 { 11324 schemeField = iprot.readFieldBegin(); 11325 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 11326 break; 11327 } 11328 switch (schemeField.id) { 11329 case 1: // TABLE_NAME 11330 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 11331 struct.tableName = iprot.readBinary(); 11332 struct.setTableNameIsSet(true); 11333 } else { 11334 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11335 } 11336 break; 11337 case 2: // COLUMN_FAMILIES 11338 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 11339 { 11340 org.apache.thrift.protocol.TList _list60 = iprot.readListBegin(); 11341 struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list60.size); 11342 for (int _i61 = 0; _i61 < _list60.size; ++_i61) 11343 { 11344 ColumnDescriptor _elem62; // required 11345 _elem62 = new ColumnDescriptor(); 11346 _elem62.read(iprot); 11347 struct.columnFamilies.add(_elem62); 11348 } 11349 iprot.readListEnd(); 11350 } 11351 struct.setColumnFamiliesIsSet(true); 11352 } else { 11353 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11354 } 11355 break; 11356 default: 11357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11358 } 11359 iprot.readFieldEnd(); 11360 } 11361 iprot.readStructEnd(); 11362 11363 // check for required fields of primitive type, which can't be checked in the validate method 11364 struct.validate(); 11365 } 11366 11367 public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_args struct) throws org.apache.thrift.TException { 11368 struct.validate(); 11369 11370 oprot.writeStructBegin(STRUCT_DESC); 11371 if (struct.tableName != null) { 11372 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 11373 oprot.writeBinary(struct.tableName); 11374 oprot.writeFieldEnd(); 11375 } 11376 if (struct.columnFamilies != null) { 11377 oprot.writeFieldBegin(COLUMN_FAMILIES_FIELD_DESC); 11378 { 11379 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columnFamilies.size())); 11380 for (ColumnDescriptor _iter63 : struct.columnFamilies) 11381 { 11382 _iter63.write(oprot); 11383 } 11384 oprot.writeListEnd(); 11385 } 11386 oprot.writeFieldEnd(); 11387 } 11388 oprot.writeFieldStop(); 11389 oprot.writeStructEnd(); 11390 } 11391 11392 } 11393 11394 private static class createTable_argsTupleSchemeFactory implements SchemeFactory { 11395 public createTable_argsTupleScheme getScheme() { 11396 return new createTable_argsTupleScheme(); 11397 } 11398 } 11399 11400 private static class createTable_argsTupleScheme extends TupleScheme<createTable_args> { 11401 11402 @Override 11403 public void write(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException { 11404 TTupleProtocol oprot = (TTupleProtocol) prot; 11405 BitSet optionals = new BitSet(); 11406 if (struct.isSetTableName()) { 11407 optionals.set(0); 11408 } 11409 if (struct.isSetColumnFamilies()) { 11410 optionals.set(1); 11411 } 11412 oprot.writeBitSet(optionals, 2); 11413 if (struct.isSetTableName()) { 11414 oprot.writeBinary(struct.tableName); 11415 } 11416 if (struct.isSetColumnFamilies()) { 11417 { 11418 oprot.writeI32(struct.columnFamilies.size()); 11419 for (ColumnDescriptor _iter64 : struct.columnFamilies) 11420 { 11421 _iter64.write(oprot); 11422 } 11423 } 11424 } 11425 } 11426 11427 @Override 11428 public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException { 11429 TTupleProtocol iprot = (TTupleProtocol) prot; 11430 BitSet incoming = iprot.readBitSet(2); 11431 if (incoming.get(0)) { 11432 struct.tableName = iprot.readBinary(); 11433 struct.setTableNameIsSet(true); 11434 } 11435 if (incoming.get(1)) { 11436 { 11437 org.apache.thrift.protocol.TList _list65 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 11438 struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list65.size); 11439 for (int _i66 = 0; _i66 < _list65.size; ++_i66) 11440 { 11441 ColumnDescriptor _elem67; // required 11442 _elem67 = new ColumnDescriptor(); 11443 _elem67.read(iprot); 11444 struct.columnFamilies.add(_elem67); 11445 } 11446 } 11447 struct.setColumnFamiliesIsSet(true); 11448 } 11449 } 11450 } 11451 11452 } 11453 11454 public static class createTable_result implements org.apache.thrift.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable { 11455 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_result"); 11456 11457 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 11458 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 11459 private static final org.apache.thrift.protocol.TField EXIST_FIELD_DESC = new org.apache.thrift.protocol.TField("exist", org.apache.thrift.protocol.TType.STRUCT, (short)3); 11460 11461 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 11462 static { 11463 schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory()); 11464 schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory()); 11465 } 11466 11467 public IOError io; // required 11468 public IllegalArgument ia; // required 11469 public AlreadyExists exist; // required 11470 11471 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 11472 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 11473 IO((short)1, "io"), 11474 IA((short)2, "ia"), 11475 EXIST((short)3, "exist"); 11476 11477 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 11478 11479 static { 11480 for (_Fields field : EnumSet.allOf(_Fields.class)) { 11481 byName.put(field.getFieldName(), field); 11482 } 11483 } 11484 11485 /** 11486 * Find the _Fields constant that matches fieldId, or null if its not found. 11487 */ 11488 public static _Fields findByThriftId(int fieldId) { 11489 switch(fieldId) { 11490 case 1: // IO 11491 return IO; 11492 case 2: // IA 11493 return IA; 11494 case 3: // EXIST 11495 return EXIST; 11496 default: 11497 return null; 11498 } 11499 } 11500 11501 /** 11502 * Find the _Fields constant that matches fieldId, throwing an exception 11503 * if it is not found. 11504 */ 11505 public static _Fields findByThriftIdOrThrow(int fieldId) { 11506 _Fields fields = findByThriftId(fieldId); 11507 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 11508 return fields; 11509 } 11510 11511 /** 11512 * Find the _Fields constant that matches name, or null if its not found. 11513 */ 11514 public static _Fields findByName(String name) { 11515 return byName.get(name); 11516 } 11517 11518 private final short _thriftId; 11519 private final String _fieldName; 11520 11521 _Fields(short thriftId, String fieldName) { 11522 _thriftId = thriftId; 11523 _fieldName = fieldName; 11524 } 11525 11526 public short getThriftFieldId() { 11527 return _thriftId; 11528 } 11529 11530 public String getFieldName() { 11531 return _fieldName; 11532 } 11533 } 11534 11535 // isset id assignments 11536 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 11537 static { 11538 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 11539 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 11540 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 11541 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 11542 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 11543 tmpMap.put(_Fields.EXIST, new org.apache.thrift.meta_data.FieldMetaData("exist", org.apache.thrift.TFieldRequirementType.DEFAULT, 11544 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 11545 metaDataMap = Collections.unmodifiableMap(tmpMap); 11546 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap); 11547 } 11548 11549 public createTable_result() { 11550 } 11551 11552 public createTable_result( 11553 IOError io, 11554 IllegalArgument ia, 11555 AlreadyExists exist) 11556 { 11557 this(); 11558 this.io = io; 11559 this.ia = ia; 11560 this.exist = exist; 11561 } 11562 11563 /** 11564 * Performs a deep copy on <i>other</i>. 11565 */ 11566 public createTable_result(createTable_result other) { 11567 if (other.isSetIo()) { 11568 this.io = new IOError(other.io); 11569 } 11570 if (other.isSetIa()) { 11571 this.ia = new IllegalArgument(other.ia); 11572 } 11573 if (other.isSetExist()) { 11574 this.exist = new AlreadyExists(other.exist); 11575 } 11576 } 11577 11578 public createTable_result deepCopy() { 11579 return new createTable_result(this); 11580 } 11581 11582 @Override 11583 public void clear() { 11584 this.io = null; 11585 this.ia = null; 11586 this.exist = null; 11587 } 11588 11589 public IOError getIo() { 11590 return this.io; 11591 } 11592 11593 public createTable_result setIo(IOError io) { 11594 this.io = io; 11595 return this; 11596 } 11597 11598 public void unsetIo() { 11599 this.io = null; 11600 } 11601 11602 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 11603 public boolean isSetIo() { 11604 return this.io != null; 11605 } 11606 11607 public void setIoIsSet(boolean value) { 11608 if (!value) { 11609 this.io = null; 11610 } 11611 } 11612 11613 public IllegalArgument getIa() { 11614 return this.ia; 11615 } 11616 11617 public createTable_result setIa(IllegalArgument ia) { 11618 this.ia = ia; 11619 return this; 11620 } 11621 11622 public void unsetIa() { 11623 this.ia = null; 11624 } 11625 11626 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 11627 public boolean isSetIa() { 11628 return this.ia != null; 11629 } 11630 11631 public void setIaIsSet(boolean value) { 11632 if (!value) { 11633 this.ia = null; 11634 } 11635 } 11636 11637 public AlreadyExists getExist() { 11638 return this.exist; 11639 } 11640 11641 public createTable_result setExist(AlreadyExists exist) { 11642 this.exist = exist; 11643 return this; 11644 } 11645 11646 public void unsetExist() { 11647 this.exist = null; 11648 } 11649 11650 /** Returns true if field exist is set (has been assigned a value) and false otherwise */ 11651 public boolean isSetExist() { 11652 return this.exist != null; 11653 } 11654 11655 public void setExistIsSet(boolean value) { 11656 if (!value) { 11657 this.exist = null; 11658 } 11659 } 11660 11661 public void setFieldValue(_Fields field, Object value) { 11662 switch (field) { 11663 case IO: 11664 if (value == null) { 11665 unsetIo(); 11666 } else { 11667 setIo((IOError)value); 11668 } 11669 break; 11670 11671 case IA: 11672 if (value == null) { 11673 unsetIa(); 11674 } else { 11675 setIa((IllegalArgument)value); 11676 } 11677 break; 11678 11679 case EXIST: 11680 if (value == null) { 11681 unsetExist(); 11682 } else { 11683 setExist((AlreadyExists)value); 11684 } 11685 break; 11686 11687 } 11688 } 11689 11690 public Object getFieldValue(_Fields field) { 11691 switch (field) { 11692 case IO: 11693 return getIo(); 11694 11695 case IA: 11696 return getIa(); 11697 11698 case EXIST: 11699 return getExist(); 11700 11701 } 11702 throw new IllegalStateException(); 11703 } 11704 11705 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 11706 public boolean isSet(_Fields field) { 11707 if (field == null) { 11708 throw new IllegalArgumentException(); 11709 } 11710 11711 switch (field) { 11712 case IO: 11713 return isSetIo(); 11714 case IA: 11715 return isSetIa(); 11716 case EXIST: 11717 return isSetExist(); 11718 } 11719 throw new IllegalStateException(); 11720 } 11721 11722 @Override 11723 public boolean equals(Object that) { 11724 if (that == null) 11725 return false; 11726 if (that instanceof createTable_result) 11727 return this.equals((createTable_result)that); 11728 return false; 11729 } 11730 11731 public boolean equals(createTable_result that) { 11732 if (that == null) 11733 return false; 11734 11735 boolean this_present_io = true && this.isSetIo(); 11736 boolean that_present_io = true && that.isSetIo(); 11737 if (this_present_io || that_present_io) { 11738 if (!(this_present_io && that_present_io)) 11739 return false; 11740 if (!this.io.equals(that.io)) 11741 return false; 11742 } 11743 11744 boolean this_present_ia = true && this.isSetIa(); 11745 boolean that_present_ia = true && that.isSetIa(); 11746 if (this_present_ia || that_present_ia) { 11747 if (!(this_present_ia && that_present_ia)) 11748 return false; 11749 if (!this.ia.equals(that.ia)) 11750 return false; 11751 } 11752 11753 boolean this_present_exist = true && this.isSetExist(); 11754 boolean that_present_exist = true && that.isSetExist(); 11755 if (this_present_exist || that_present_exist) { 11756 if (!(this_present_exist && that_present_exist)) 11757 return false; 11758 if (!this.exist.equals(that.exist)) 11759 return false; 11760 } 11761 11762 return true; 11763 } 11764 11765 @Override 11766 public int hashCode() { 11767 HashCodeBuilder builder = new HashCodeBuilder(); 11768 11769 boolean present_io = true && (isSetIo()); 11770 builder.append(present_io); 11771 if (present_io) 11772 builder.append(io); 11773 11774 boolean present_ia = true && (isSetIa()); 11775 builder.append(present_ia); 11776 if (present_ia) 11777 builder.append(ia); 11778 11779 boolean present_exist = true && (isSetExist()); 11780 builder.append(present_exist); 11781 if (present_exist) 11782 builder.append(exist); 11783 11784 return builder.toHashCode(); 11785 } 11786 11787 public int compareTo(createTable_result other) { 11788 if (!getClass().equals(other.getClass())) { 11789 return getClass().getName().compareTo(other.getClass().getName()); 11790 } 11791 11792 int lastComparison = 0; 11793 createTable_result typedOther = (createTable_result)other; 11794 11795 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 11796 if (lastComparison != 0) { 11797 return lastComparison; 11798 } 11799 if (isSetIo()) { 11800 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 11801 if (lastComparison != 0) { 11802 return lastComparison; 11803 } 11804 } 11805 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 11806 if (lastComparison != 0) { 11807 return lastComparison; 11808 } 11809 if (isSetIa()) { 11810 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 11811 if (lastComparison != 0) { 11812 return lastComparison; 11813 } 11814 } 11815 lastComparison = Boolean.valueOf(isSetExist()).compareTo(typedOther.isSetExist()); 11816 if (lastComparison != 0) { 11817 return lastComparison; 11818 } 11819 if (isSetExist()) { 11820 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exist, typedOther.exist); 11821 if (lastComparison != 0) { 11822 return lastComparison; 11823 } 11824 } 11825 return 0; 11826 } 11827 11828 public _Fields fieldForId(int fieldId) { 11829 return _Fields.findByThriftId(fieldId); 11830 } 11831 11832 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 11833 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 11834 } 11835 11836 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 11837 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 11838 } 11839 11840 @Override 11841 public String toString() { 11842 StringBuilder sb = new StringBuilder("createTable_result("); 11843 boolean first = true; 11844 11845 sb.append("io:"); 11846 if (this.io == null) { 11847 sb.append("null"); 11848 } else { 11849 sb.append(this.io); 11850 } 11851 first = false; 11852 if (!first) sb.append(", "); 11853 sb.append("ia:"); 11854 if (this.ia == null) { 11855 sb.append("null"); 11856 } else { 11857 sb.append(this.ia); 11858 } 11859 first = false; 11860 if (!first) sb.append(", "); 11861 sb.append("exist:"); 11862 if (this.exist == null) { 11863 sb.append("null"); 11864 } else { 11865 sb.append(this.exist); 11866 } 11867 first = false; 11868 sb.append(")"); 11869 return sb.toString(); 11870 } 11871 11872 public void validate() throws org.apache.thrift.TException { 11873 // check for required fields 11874 } 11875 11876 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 11877 try { 11878 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 11879 } catch (org.apache.thrift.TException te) { 11880 throw new java.io.IOException(te); 11881 } 11882 } 11883 11884 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 11885 try { 11886 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 11887 } catch (org.apache.thrift.TException te) { 11888 throw new java.io.IOException(te); 11889 } 11890 } 11891 11892 private static class createTable_resultStandardSchemeFactory implements SchemeFactory { 11893 public createTable_resultStandardScheme getScheme() { 11894 return new createTable_resultStandardScheme(); 11895 } 11896 } 11897 11898 private static class createTable_resultStandardScheme extends StandardScheme<createTable_result> { 11899 11900 public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct) throws org.apache.thrift.TException { 11901 org.apache.thrift.protocol.TField schemeField; 11902 iprot.readStructBegin(); 11903 while (true) 11904 { 11905 schemeField = iprot.readFieldBegin(); 11906 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 11907 break; 11908 } 11909 switch (schemeField.id) { 11910 case 1: // IO 11911 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 11912 struct.io = new IOError(); 11913 struct.io.read(iprot); 11914 struct.setIoIsSet(true); 11915 } else { 11916 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11917 } 11918 break; 11919 case 2: // IA 11920 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 11921 struct.ia = new IllegalArgument(); 11922 struct.ia.read(iprot); 11923 struct.setIaIsSet(true); 11924 } else { 11925 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11926 } 11927 break; 11928 case 3: // EXIST 11929 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 11930 struct.exist = new AlreadyExists(); 11931 struct.exist.read(iprot); 11932 struct.setExistIsSet(true); 11933 } else { 11934 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11935 } 11936 break; 11937 default: 11938 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 11939 } 11940 iprot.readFieldEnd(); 11941 } 11942 iprot.readStructEnd(); 11943 11944 // check for required fields of primitive type, which can't be checked in the validate method 11945 struct.validate(); 11946 } 11947 11948 public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result struct) throws org.apache.thrift.TException { 11949 struct.validate(); 11950 11951 oprot.writeStructBegin(STRUCT_DESC); 11952 if (struct.io != null) { 11953 oprot.writeFieldBegin(IO_FIELD_DESC); 11954 struct.io.write(oprot); 11955 oprot.writeFieldEnd(); 11956 } 11957 if (struct.ia != null) { 11958 oprot.writeFieldBegin(IA_FIELD_DESC); 11959 struct.ia.write(oprot); 11960 oprot.writeFieldEnd(); 11961 } 11962 if (struct.exist != null) { 11963 oprot.writeFieldBegin(EXIST_FIELD_DESC); 11964 struct.exist.write(oprot); 11965 oprot.writeFieldEnd(); 11966 } 11967 oprot.writeFieldStop(); 11968 oprot.writeStructEnd(); 11969 } 11970 11971 } 11972 11973 private static class createTable_resultTupleSchemeFactory implements SchemeFactory { 11974 public createTable_resultTupleScheme getScheme() { 11975 return new createTable_resultTupleScheme(); 11976 } 11977 } 11978 11979 private static class createTable_resultTupleScheme extends TupleScheme<createTable_result> { 11980 11981 @Override 11982 public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { 11983 TTupleProtocol oprot = (TTupleProtocol) prot; 11984 BitSet optionals = new BitSet(); 11985 if (struct.isSetIo()) { 11986 optionals.set(0); 11987 } 11988 if (struct.isSetIa()) { 11989 optionals.set(1); 11990 } 11991 if (struct.isSetExist()) { 11992 optionals.set(2); 11993 } 11994 oprot.writeBitSet(optionals, 3); 11995 if (struct.isSetIo()) { 11996 struct.io.write(oprot); 11997 } 11998 if (struct.isSetIa()) { 11999 struct.ia.write(oprot); 12000 } 12001 if (struct.isSetExist()) { 12002 struct.exist.write(oprot); 12003 } 12004 } 12005 12006 @Override 12007 public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException { 12008 TTupleProtocol iprot = (TTupleProtocol) prot; 12009 BitSet incoming = iprot.readBitSet(3); 12010 if (incoming.get(0)) { 12011 struct.io = new IOError(); 12012 struct.io.read(iprot); 12013 struct.setIoIsSet(true); 12014 } 12015 if (incoming.get(1)) { 12016 struct.ia = new IllegalArgument(); 12017 struct.ia.read(iprot); 12018 struct.setIaIsSet(true); 12019 } 12020 if (incoming.get(2)) { 12021 struct.exist = new AlreadyExists(); 12022 struct.exist.read(iprot); 12023 struct.setExistIsSet(true); 12024 } 12025 } 12026 } 12027 12028 } 12029 12030 public static class deleteTable_args implements org.apache.thrift.TBase<deleteTable_args, deleteTable_args._Fields>, java.io.Serializable, Cloneable { 12031 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_args"); 12032 12033 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 12034 12035 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 12036 static { 12037 schemes.put(StandardScheme.class, new deleteTable_argsStandardSchemeFactory()); 12038 schemes.put(TupleScheme.class, new deleteTable_argsTupleSchemeFactory()); 12039 } 12040 12041 /** 12042 * name of table to delete 12043 */ 12044 public ByteBuffer tableName; // required 12045 12046 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 12047 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 12048 /** 12049 * name of table to delete 12050 */ 12051 TABLE_NAME((short)1, "tableName"); 12052 12053 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 12054 12055 static { 12056 for (_Fields field : EnumSet.allOf(_Fields.class)) { 12057 byName.put(field.getFieldName(), field); 12058 } 12059 } 12060 12061 /** 12062 * Find the _Fields constant that matches fieldId, or null if its not found. 12063 */ 12064 public static _Fields findByThriftId(int fieldId) { 12065 switch(fieldId) { 12066 case 1: // TABLE_NAME 12067 return TABLE_NAME; 12068 default: 12069 return null; 12070 } 12071 } 12072 12073 /** 12074 * Find the _Fields constant that matches fieldId, throwing an exception 12075 * if it is not found. 12076 */ 12077 public static _Fields findByThriftIdOrThrow(int fieldId) { 12078 _Fields fields = findByThriftId(fieldId); 12079 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 12080 return fields; 12081 } 12082 12083 /** 12084 * Find the _Fields constant that matches name, or null if its not found. 12085 */ 12086 public static _Fields findByName(String name) { 12087 return byName.get(name); 12088 } 12089 12090 private final short _thriftId; 12091 private final String _fieldName; 12092 12093 _Fields(short thriftId, String fieldName) { 12094 _thriftId = thriftId; 12095 _fieldName = fieldName; 12096 } 12097 12098 public short getThriftFieldId() { 12099 return _thriftId; 12100 } 12101 12102 public String getFieldName() { 12103 return _fieldName; 12104 } 12105 } 12106 12107 // isset id assignments 12108 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 12109 static { 12110 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 12111 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 12112 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 12113 metaDataMap = Collections.unmodifiableMap(tmpMap); 12114 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap); 12115 } 12116 12117 public deleteTable_args() { 12118 } 12119 12120 public deleteTable_args( 12121 ByteBuffer tableName) 12122 { 12123 this(); 12124 this.tableName = tableName; 12125 } 12126 12127 /** 12128 * Performs a deep copy on <i>other</i>. 12129 */ 12130 public deleteTable_args(deleteTable_args other) { 12131 if (other.isSetTableName()) { 12132 this.tableName = other.tableName; 12133 } 12134 } 12135 12136 public deleteTable_args deepCopy() { 12137 return new deleteTable_args(this); 12138 } 12139 12140 @Override 12141 public void clear() { 12142 this.tableName = null; 12143 } 12144 12145 /** 12146 * name of table to delete 12147 */ 12148 public byte[] getTableName() { 12149 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 12150 return tableName == null ? null : tableName.array(); 12151 } 12152 12153 public ByteBuffer bufferForTableName() { 12154 return tableName; 12155 } 12156 12157 /** 12158 * name of table to delete 12159 */ 12160 public deleteTable_args setTableName(byte[] tableName) { 12161 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 12162 return this; 12163 } 12164 12165 public deleteTable_args setTableName(ByteBuffer tableName) { 12166 this.tableName = tableName; 12167 return this; 12168 } 12169 12170 public void unsetTableName() { 12171 this.tableName = null; 12172 } 12173 12174 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 12175 public boolean isSetTableName() { 12176 return this.tableName != null; 12177 } 12178 12179 public void setTableNameIsSet(boolean value) { 12180 if (!value) { 12181 this.tableName = null; 12182 } 12183 } 12184 12185 public void setFieldValue(_Fields field, Object value) { 12186 switch (field) { 12187 case TABLE_NAME: 12188 if (value == null) { 12189 unsetTableName(); 12190 } else { 12191 setTableName((ByteBuffer)value); 12192 } 12193 break; 12194 12195 } 12196 } 12197 12198 public Object getFieldValue(_Fields field) { 12199 switch (field) { 12200 case TABLE_NAME: 12201 return getTableName(); 12202 12203 } 12204 throw new IllegalStateException(); 12205 } 12206 12207 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 12208 public boolean isSet(_Fields field) { 12209 if (field == null) { 12210 throw new IllegalArgumentException(); 12211 } 12212 12213 switch (field) { 12214 case TABLE_NAME: 12215 return isSetTableName(); 12216 } 12217 throw new IllegalStateException(); 12218 } 12219 12220 @Override 12221 public boolean equals(Object that) { 12222 if (that == null) 12223 return false; 12224 if (that instanceof deleteTable_args) 12225 return this.equals((deleteTable_args)that); 12226 return false; 12227 } 12228 12229 public boolean equals(deleteTable_args that) { 12230 if (that == null) 12231 return false; 12232 12233 boolean this_present_tableName = true && this.isSetTableName(); 12234 boolean that_present_tableName = true && that.isSetTableName(); 12235 if (this_present_tableName || that_present_tableName) { 12236 if (!(this_present_tableName && that_present_tableName)) 12237 return false; 12238 if (!this.tableName.equals(that.tableName)) 12239 return false; 12240 } 12241 12242 return true; 12243 } 12244 12245 @Override 12246 public int hashCode() { 12247 HashCodeBuilder builder = new HashCodeBuilder(); 12248 12249 boolean present_tableName = true && (isSetTableName()); 12250 builder.append(present_tableName); 12251 if (present_tableName) 12252 builder.append(tableName); 12253 12254 return builder.toHashCode(); 12255 } 12256 12257 public int compareTo(deleteTable_args other) { 12258 if (!getClass().equals(other.getClass())) { 12259 return getClass().getName().compareTo(other.getClass().getName()); 12260 } 12261 12262 int lastComparison = 0; 12263 deleteTable_args typedOther = (deleteTable_args)other; 12264 12265 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 12266 if (lastComparison != 0) { 12267 return lastComparison; 12268 } 12269 if (isSetTableName()) { 12270 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 12271 if (lastComparison != 0) { 12272 return lastComparison; 12273 } 12274 } 12275 return 0; 12276 } 12277 12278 public _Fields fieldForId(int fieldId) { 12279 return _Fields.findByThriftId(fieldId); 12280 } 12281 12282 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 12283 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 12284 } 12285 12286 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 12287 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 12288 } 12289 12290 @Override 12291 public String toString() { 12292 StringBuilder sb = new StringBuilder("deleteTable_args("); 12293 boolean first = true; 12294 12295 sb.append("tableName:"); 12296 if (this.tableName == null) { 12297 sb.append("null"); 12298 } else { 12299 sb.append(this.tableName); 12300 } 12301 first = false; 12302 sb.append(")"); 12303 return sb.toString(); 12304 } 12305 12306 public void validate() throws org.apache.thrift.TException { 12307 // check for required fields 12308 } 12309 12310 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 12311 try { 12312 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 12313 } catch (org.apache.thrift.TException te) { 12314 throw new java.io.IOException(te); 12315 } 12316 } 12317 12318 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 12319 try { 12320 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 12321 } catch (org.apache.thrift.TException te) { 12322 throw new java.io.IOException(te); 12323 } 12324 } 12325 12326 private static class deleteTable_argsStandardSchemeFactory implements SchemeFactory { 12327 public deleteTable_argsStandardScheme getScheme() { 12328 return new deleteTable_argsStandardScheme(); 12329 } 12330 } 12331 12332 private static class deleteTable_argsStandardScheme extends StandardScheme<deleteTable_args> { 12333 12334 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args struct) throws org.apache.thrift.TException { 12335 org.apache.thrift.protocol.TField schemeField; 12336 iprot.readStructBegin(); 12337 while (true) 12338 { 12339 schemeField = iprot.readFieldBegin(); 12340 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 12341 break; 12342 } 12343 switch (schemeField.id) { 12344 case 1: // TABLE_NAME 12345 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 12346 struct.tableName = iprot.readBinary(); 12347 struct.setTableNameIsSet(true); 12348 } else { 12349 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 12350 } 12351 break; 12352 default: 12353 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 12354 } 12355 iprot.readFieldEnd(); 12356 } 12357 iprot.readStructEnd(); 12358 12359 // check for required fields of primitive type, which can't be checked in the validate method 12360 struct.validate(); 12361 } 12362 12363 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args struct) throws org.apache.thrift.TException { 12364 struct.validate(); 12365 12366 oprot.writeStructBegin(STRUCT_DESC); 12367 if (struct.tableName != null) { 12368 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 12369 oprot.writeBinary(struct.tableName); 12370 oprot.writeFieldEnd(); 12371 } 12372 oprot.writeFieldStop(); 12373 oprot.writeStructEnd(); 12374 } 12375 12376 } 12377 12378 private static class deleteTable_argsTupleSchemeFactory implements SchemeFactory { 12379 public deleteTable_argsTupleScheme getScheme() { 12380 return new deleteTable_argsTupleScheme(); 12381 } 12382 } 12383 12384 private static class deleteTable_argsTupleScheme extends TupleScheme<deleteTable_args> { 12385 12386 @Override 12387 public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { 12388 TTupleProtocol oprot = (TTupleProtocol) prot; 12389 BitSet optionals = new BitSet(); 12390 if (struct.isSetTableName()) { 12391 optionals.set(0); 12392 } 12393 oprot.writeBitSet(optionals, 1); 12394 if (struct.isSetTableName()) { 12395 oprot.writeBinary(struct.tableName); 12396 } 12397 } 12398 12399 @Override 12400 public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException { 12401 TTupleProtocol iprot = (TTupleProtocol) prot; 12402 BitSet incoming = iprot.readBitSet(1); 12403 if (incoming.get(0)) { 12404 struct.tableName = iprot.readBinary(); 12405 struct.setTableNameIsSet(true); 12406 } 12407 } 12408 } 12409 12410 } 12411 12412 public static class deleteTable_result implements org.apache.thrift.TBase<deleteTable_result, deleteTable_result._Fields>, java.io.Serializable, Cloneable { 12413 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_result"); 12414 12415 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 12416 12417 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 12418 static { 12419 schemes.put(StandardScheme.class, new deleteTable_resultStandardSchemeFactory()); 12420 schemes.put(TupleScheme.class, new deleteTable_resultTupleSchemeFactory()); 12421 } 12422 12423 public IOError io; // required 12424 12425 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 12426 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 12427 IO((short)1, "io"); 12428 12429 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 12430 12431 static { 12432 for (_Fields field : EnumSet.allOf(_Fields.class)) { 12433 byName.put(field.getFieldName(), field); 12434 } 12435 } 12436 12437 /** 12438 * Find the _Fields constant that matches fieldId, or null if its not found. 12439 */ 12440 public static _Fields findByThriftId(int fieldId) { 12441 switch(fieldId) { 12442 case 1: // IO 12443 return IO; 12444 default: 12445 return null; 12446 } 12447 } 12448 12449 /** 12450 * Find the _Fields constant that matches fieldId, throwing an exception 12451 * if it is not found. 12452 */ 12453 public static _Fields findByThriftIdOrThrow(int fieldId) { 12454 _Fields fields = findByThriftId(fieldId); 12455 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 12456 return fields; 12457 } 12458 12459 /** 12460 * Find the _Fields constant that matches name, or null if its not found. 12461 */ 12462 public static _Fields findByName(String name) { 12463 return byName.get(name); 12464 } 12465 12466 private final short _thriftId; 12467 private final String _fieldName; 12468 12469 _Fields(short thriftId, String fieldName) { 12470 _thriftId = thriftId; 12471 _fieldName = fieldName; 12472 } 12473 12474 public short getThriftFieldId() { 12475 return _thriftId; 12476 } 12477 12478 public String getFieldName() { 12479 return _fieldName; 12480 } 12481 } 12482 12483 // isset id assignments 12484 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 12485 static { 12486 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 12487 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 12488 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 12489 metaDataMap = Collections.unmodifiableMap(tmpMap); 12490 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap); 12491 } 12492 12493 public deleteTable_result() { 12494 } 12495 12496 public deleteTable_result( 12497 IOError io) 12498 { 12499 this(); 12500 this.io = io; 12501 } 12502 12503 /** 12504 * Performs a deep copy on <i>other</i>. 12505 */ 12506 public deleteTable_result(deleteTable_result other) { 12507 if (other.isSetIo()) { 12508 this.io = new IOError(other.io); 12509 } 12510 } 12511 12512 public deleteTable_result deepCopy() { 12513 return new deleteTable_result(this); 12514 } 12515 12516 @Override 12517 public void clear() { 12518 this.io = null; 12519 } 12520 12521 public IOError getIo() { 12522 return this.io; 12523 } 12524 12525 public deleteTable_result setIo(IOError io) { 12526 this.io = io; 12527 return this; 12528 } 12529 12530 public void unsetIo() { 12531 this.io = null; 12532 } 12533 12534 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 12535 public boolean isSetIo() { 12536 return this.io != null; 12537 } 12538 12539 public void setIoIsSet(boolean value) { 12540 if (!value) { 12541 this.io = null; 12542 } 12543 } 12544 12545 public void setFieldValue(_Fields field, Object value) { 12546 switch (field) { 12547 case IO: 12548 if (value == null) { 12549 unsetIo(); 12550 } else { 12551 setIo((IOError)value); 12552 } 12553 break; 12554 12555 } 12556 } 12557 12558 public Object getFieldValue(_Fields field) { 12559 switch (field) { 12560 case IO: 12561 return getIo(); 12562 12563 } 12564 throw new IllegalStateException(); 12565 } 12566 12567 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 12568 public boolean isSet(_Fields field) { 12569 if (field == null) { 12570 throw new IllegalArgumentException(); 12571 } 12572 12573 switch (field) { 12574 case IO: 12575 return isSetIo(); 12576 } 12577 throw new IllegalStateException(); 12578 } 12579 12580 @Override 12581 public boolean equals(Object that) { 12582 if (that == null) 12583 return false; 12584 if (that instanceof deleteTable_result) 12585 return this.equals((deleteTable_result)that); 12586 return false; 12587 } 12588 12589 public boolean equals(deleteTable_result that) { 12590 if (that == null) 12591 return false; 12592 12593 boolean this_present_io = true && this.isSetIo(); 12594 boolean that_present_io = true && that.isSetIo(); 12595 if (this_present_io || that_present_io) { 12596 if (!(this_present_io && that_present_io)) 12597 return false; 12598 if (!this.io.equals(that.io)) 12599 return false; 12600 } 12601 12602 return true; 12603 } 12604 12605 @Override 12606 public int hashCode() { 12607 HashCodeBuilder builder = new HashCodeBuilder(); 12608 12609 boolean present_io = true && (isSetIo()); 12610 builder.append(present_io); 12611 if (present_io) 12612 builder.append(io); 12613 12614 return builder.toHashCode(); 12615 } 12616 12617 public int compareTo(deleteTable_result other) { 12618 if (!getClass().equals(other.getClass())) { 12619 return getClass().getName().compareTo(other.getClass().getName()); 12620 } 12621 12622 int lastComparison = 0; 12623 deleteTable_result typedOther = (deleteTable_result)other; 12624 12625 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 12626 if (lastComparison != 0) { 12627 return lastComparison; 12628 } 12629 if (isSetIo()) { 12630 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 12631 if (lastComparison != 0) { 12632 return lastComparison; 12633 } 12634 } 12635 return 0; 12636 } 12637 12638 public _Fields fieldForId(int fieldId) { 12639 return _Fields.findByThriftId(fieldId); 12640 } 12641 12642 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 12643 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 12644 } 12645 12646 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 12647 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 12648 } 12649 12650 @Override 12651 public String toString() { 12652 StringBuilder sb = new StringBuilder("deleteTable_result("); 12653 boolean first = true; 12654 12655 sb.append("io:"); 12656 if (this.io == null) { 12657 sb.append("null"); 12658 } else { 12659 sb.append(this.io); 12660 } 12661 first = false; 12662 sb.append(")"); 12663 return sb.toString(); 12664 } 12665 12666 public void validate() throws org.apache.thrift.TException { 12667 // check for required fields 12668 } 12669 12670 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 12671 try { 12672 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 12673 } catch (org.apache.thrift.TException te) { 12674 throw new java.io.IOException(te); 12675 } 12676 } 12677 12678 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 12679 try { 12680 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 12681 } catch (org.apache.thrift.TException te) { 12682 throw new java.io.IOException(te); 12683 } 12684 } 12685 12686 private static class deleteTable_resultStandardSchemeFactory implements SchemeFactory { 12687 public deleteTable_resultStandardScheme getScheme() { 12688 return new deleteTable_resultStandardScheme(); 12689 } 12690 } 12691 12692 private static class deleteTable_resultStandardScheme extends StandardScheme<deleteTable_result> { 12693 12694 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException { 12695 org.apache.thrift.protocol.TField schemeField; 12696 iprot.readStructBegin(); 12697 while (true) 12698 { 12699 schemeField = iprot.readFieldBegin(); 12700 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 12701 break; 12702 } 12703 switch (schemeField.id) { 12704 case 1: // IO 12705 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 12706 struct.io = new IOError(); 12707 struct.io.read(iprot); 12708 struct.setIoIsSet(true); 12709 } else { 12710 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 12711 } 12712 break; 12713 default: 12714 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 12715 } 12716 iprot.readFieldEnd(); 12717 } 12718 iprot.readStructEnd(); 12719 12720 // check for required fields of primitive type, which can't be checked in the validate method 12721 struct.validate(); 12722 } 12723 12724 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result struct) throws org.apache.thrift.TException { 12725 struct.validate(); 12726 12727 oprot.writeStructBegin(STRUCT_DESC); 12728 if (struct.io != null) { 12729 oprot.writeFieldBegin(IO_FIELD_DESC); 12730 struct.io.write(oprot); 12731 oprot.writeFieldEnd(); 12732 } 12733 oprot.writeFieldStop(); 12734 oprot.writeStructEnd(); 12735 } 12736 12737 } 12738 12739 private static class deleteTable_resultTupleSchemeFactory implements SchemeFactory { 12740 public deleteTable_resultTupleScheme getScheme() { 12741 return new deleteTable_resultTupleScheme(); 12742 } 12743 } 12744 12745 private static class deleteTable_resultTupleScheme extends TupleScheme<deleteTable_result> { 12746 12747 @Override 12748 public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { 12749 TTupleProtocol oprot = (TTupleProtocol) prot; 12750 BitSet optionals = new BitSet(); 12751 if (struct.isSetIo()) { 12752 optionals.set(0); 12753 } 12754 oprot.writeBitSet(optionals, 1); 12755 if (struct.isSetIo()) { 12756 struct.io.write(oprot); 12757 } 12758 } 12759 12760 @Override 12761 public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException { 12762 TTupleProtocol iprot = (TTupleProtocol) prot; 12763 BitSet incoming = iprot.readBitSet(1); 12764 if (incoming.get(0)) { 12765 struct.io = new IOError(); 12766 struct.io.read(iprot); 12767 struct.setIoIsSet(true); 12768 } 12769 } 12770 } 12771 12772 } 12773 12774 public static class get_args implements org.apache.thrift.TBase<get_args, get_args._Fields>, java.io.Serializable, Cloneable { 12775 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args"); 12776 12777 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 12778 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 12779 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 12780 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 12781 12782 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 12783 static { 12784 schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory()); 12785 schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory()); 12786 } 12787 12788 /** 12789 * name of table 12790 */ 12791 public ByteBuffer tableName; // required 12792 /** 12793 * row key 12794 */ 12795 public ByteBuffer row; // required 12796 /** 12797 * column name 12798 */ 12799 public ByteBuffer column; // required 12800 /** 12801 * Get attributes 12802 */ 12803 public Map<ByteBuffer,ByteBuffer> attributes; // required 12804 12805 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 12806 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 12807 /** 12808 * name of table 12809 */ 12810 TABLE_NAME((short)1, "tableName"), 12811 /** 12812 * row key 12813 */ 12814 ROW((short)2, "row"), 12815 /** 12816 * column name 12817 */ 12818 COLUMN((short)3, "column"), 12819 /** 12820 * Get attributes 12821 */ 12822 ATTRIBUTES((short)4, "attributes"); 12823 12824 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 12825 12826 static { 12827 for (_Fields field : EnumSet.allOf(_Fields.class)) { 12828 byName.put(field.getFieldName(), field); 12829 } 12830 } 12831 12832 /** 12833 * Find the _Fields constant that matches fieldId, or null if its not found. 12834 */ 12835 public static _Fields findByThriftId(int fieldId) { 12836 switch(fieldId) { 12837 case 1: // TABLE_NAME 12838 return TABLE_NAME; 12839 case 2: // ROW 12840 return ROW; 12841 case 3: // COLUMN 12842 return COLUMN; 12843 case 4: // ATTRIBUTES 12844 return ATTRIBUTES; 12845 default: 12846 return null; 12847 } 12848 } 12849 12850 /** 12851 * Find the _Fields constant that matches fieldId, throwing an exception 12852 * if it is not found. 12853 */ 12854 public static _Fields findByThriftIdOrThrow(int fieldId) { 12855 _Fields fields = findByThriftId(fieldId); 12856 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 12857 return fields; 12858 } 12859 12860 /** 12861 * Find the _Fields constant that matches name, or null if its not found. 12862 */ 12863 public static _Fields findByName(String name) { 12864 return byName.get(name); 12865 } 12866 12867 private final short _thriftId; 12868 private final String _fieldName; 12869 12870 _Fields(short thriftId, String fieldName) { 12871 _thriftId = thriftId; 12872 _fieldName = fieldName; 12873 } 12874 12875 public short getThriftFieldId() { 12876 return _thriftId; 12877 } 12878 12879 public String getFieldName() { 12880 return _fieldName; 12881 } 12882 } 12883 12884 // isset id assignments 12885 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 12886 static { 12887 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 12888 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 12889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 12890 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 12891 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 12892 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 12893 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 12894 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 12895 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 12896 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 12897 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 12898 metaDataMap = Collections.unmodifiableMap(tmpMap); 12899 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap); 12900 } 12901 12902 public get_args() { 12903 } 12904 12905 public get_args( 12906 ByteBuffer tableName, 12907 ByteBuffer row, 12908 ByteBuffer column, 12909 Map<ByteBuffer,ByteBuffer> attributes) 12910 { 12911 this(); 12912 this.tableName = tableName; 12913 this.row = row; 12914 this.column = column; 12915 this.attributes = attributes; 12916 } 12917 12918 /** 12919 * Performs a deep copy on <i>other</i>. 12920 */ 12921 public get_args(get_args other) { 12922 if (other.isSetTableName()) { 12923 this.tableName = other.tableName; 12924 } 12925 if (other.isSetRow()) { 12926 this.row = other.row; 12927 } 12928 if (other.isSetColumn()) { 12929 this.column = other.column; 12930 } 12931 if (other.isSetAttributes()) { 12932 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 12933 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 12934 12935 ByteBuffer other_element_key = other_element.getKey(); 12936 ByteBuffer other_element_value = other_element.getValue(); 12937 12938 ByteBuffer __this__attributes_copy_key = other_element_key; 12939 12940 ByteBuffer __this__attributes_copy_value = other_element_value; 12941 12942 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 12943 } 12944 this.attributes = __this__attributes; 12945 } 12946 } 12947 12948 public get_args deepCopy() { 12949 return new get_args(this); 12950 } 12951 12952 @Override 12953 public void clear() { 12954 this.tableName = null; 12955 this.row = null; 12956 this.column = null; 12957 this.attributes = null; 12958 } 12959 12960 /** 12961 * name of table 12962 */ 12963 public byte[] getTableName() { 12964 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 12965 return tableName == null ? null : tableName.array(); 12966 } 12967 12968 public ByteBuffer bufferForTableName() { 12969 return tableName; 12970 } 12971 12972 /** 12973 * name of table 12974 */ 12975 public get_args setTableName(byte[] tableName) { 12976 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 12977 return this; 12978 } 12979 12980 public get_args setTableName(ByteBuffer tableName) { 12981 this.tableName = tableName; 12982 return this; 12983 } 12984 12985 public void unsetTableName() { 12986 this.tableName = null; 12987 } 12988 12989 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 12990 public boolean isSetTableName() { 12991 return this.tableName != null; 12992 } 12993 12994 public void setTableNameIsSet(boolean value) { 12995 if (!value) { 12996 this.tableName = null; 12997 } 12998 } 12999 13000 /** 13001 * row key 13002 */ 13003 public byte[] getRow() { 13004 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 13005 return row == null ? null : row.array(); 13006 } 13007 13008 public ByteBuffer bufferForRow() { 13009 return row; 13010 } 13011 13012 /** 13013 * row key 13014 */ 13015 public get_args setRow(byte[] row) { 13016 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 13017 return this; 13018 } 13019 13020 public get_args setRow(ByteBuffer row) { 13021 this.row = row; 13022 return this; 13023 } 13024 13025 public void unsetRow() { 13026 this.row = null; 13027 } 13028 13029 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 13030 public boolean isSetRow() { 13031 return this.row != null; 13032 } 13033 13034 public void setRowIsSet(boolean value) { 13035 if (!value) { 13036 this.row = null; 13037 } 13038 } 13039 13040 /** 13041 * column name 13042 */ 13043 public byte[] getColumn() { 13044 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 13045 return column == null ? null : column.array(); 13046 } 13047 13048 public ByteBuffer bufferForColumn() { 13049 return column; 13050 } 13051 13052 /** 13053 * column name 13054 */ 13055 public get_args setColumn(byte[] column) { 13056 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 13057 return this; 13058 } 13059 13060 public get_args setColumn(ByteBuffer column) { 13061 this.column = column; 13062 return this; 13063 } 13064 13065 public void unsetColumn() { 13066 this.column = null; 13067 } 13068 13069 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 13070 public boolean isSetColumn() { 13071 return this.column != null; 13072 } 13073 13074 public void setColumnIsSet(boolean value) { 13075 if (!value) { 13076 this.column = null; 13077 } 13078 } 13079 13080 public int getAttributesSize() { 13081 return (this.attributes == null) ? 0 : this.attributes.size(); 13082 } 13083 13084 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 13085 if (this.attributes == null) { 13086 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 13087 } 13088 this.attributes.put(key, val); 13089 } 13090 13091 /** 13092 * Get attributes 13093 */ 13094 public Map<ByteBuffer,ByteBuffer> getAttributes() { 13095 return this.attributes; 13096 } 13097 13098 /** 13099 * Get attributes 13100 */ 13101 public get_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 13102 this.attributes = attributes; 13103 return this; 13104 } 13105 13106 public void unsetAttributes() { 13107 this.attributes = null; 13108 } 13109 13110 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 13111 public boolean isSetAttributes() { 13112 return this.attributes != null; 13113 } 13114 13115 public void setAttributesIsSet(boolean value) { 13116 if (!value) { 13117 this.attributes = null; 13118 } 13119 } 13120 13121 public void setFieldValue(_Fields field, Object value) { 13122 switch (field) { 13123 case TABLE_NAME: 13124 if (value == null) { 13125 unsetTableName(); 13126 } else { 13127 setTableName((ByteBuffer)value); 13128 } 13129 break; 13130 13131 case ROW: 13132 if (value == null) { 13133 unsetRow(); 13134 } else { 13135 setRow((ByteBuffer)value); 13136 } 13137 break; 13138 13139 case COLUMN: 13140 if (value == null) { 13141 unsetColumn(); 13142 } else { 13143 setColumn((ByteBuffer)value); 13144 } 13145 break; 13146 13147 case ATTRIBUTES: 13148 if (value == null) { 13149 unsetAttributes(); 13150 } else { 13151 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 13152 } 13153 break; 13154 13155 } 13156 } 13157 13158 public Object getFieldValue(_Fields field) { 13159 switch (field) { 13160 case TABLE_NAME: 13161 return getTableName(); 13162 13163 case ROW: 13164 return getRow(); 13165 13166 case COLUMN: 13167 return getColumn(); 13168 13169 case ATTRIBUTES: 13170 return getAttributes(); 13171 13172 } 13173 throw new IllegalStateException(); 13174 } 13175 13176 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 13177 public boolean isSet(_Fields field) { 13178 if (field == null) { 13179 throw new IllegalArgumentException(); 13180 } 13181 13182 switch (field) { 13183 case TABLE_NAME: 13184 return isSetTableName(); 13185 case ROW: 13186 return isSetRow(); 13187 case COLUMN: 13188 return isSetColumn(); 13189 case ATTRIBUTES: 13190 return isSetAttributes(); 13191 } 13192 throw new IllegalStateException(); 13193 } 13194 13195 @Override 13196 public boolean equals(Object that) { 13197 if (that == null) 13198 return false; 13199 if (that instanceof get_args) 13200 return this.equals((get_args)that); 13201 return false; 13202 } 13203 13204 public boolean equals(get_args that) { 13205 if (that == null) 13206 return false; 13207 13208 boolean this_present_tableName = true && this.isSetTableName(); 13209 boolean that_present_tableName = true && that.isSetTableName(); 13210 if (this_present_tableName || that_present_tableName) { 13211 if (!(this_present_tableName && that_present_tableName)) 13212 return false; 13213 if (!this.tableName.equals(that.tableName)) 13214 return false; 13215 } 13216 13217 boolean this_present_row = true && this.isSetRow(); 13218 boolean that_present_row = true && that.isSetRow(); 13219 if (this_present_row || that_present_row) { 13220 if (!(this_present_row && that_present_row)) 13221 return false; 13222 if (!this.row.equals(that.row)) 13223 return false; 13224 } 13225 13226 boolean this_present_column = true && this.isSetColumn(); 13227 boolean that_present_column = true && that.isSetColumn(); 13228 if (this_present_column || that_present_column) { 13229 if (!(this_present_column && that_present_column)) 13230 return false; 13231 if (!this.column.equals(that.column)) 13232 return false; 13233 } 13234 13235 boolean this_present_attributes = true && this.isSetAttributes(); 13236 boolean that_present_attributes = true && that.isSetAttributes(); 13237 if (this_present_attributes || that_present_attributes) { 13238 if (!(this_present_attributes && that_present_attributes)) 13239 return false; 13240 if (!this.attributes.equals(that.attributes)) 13241 return false; 13242 } 13243 13244 return true; 13245 } 13246 13247 @Override 13248 public int hashCode() { 13249 HashCodeBuilder builder = new HashCodeBuilder(); 13250 13251 boolean present_tableName = true && (isSetTableName()); 13252 builder.append(present_tableName); 13253 if (present_tableName) 13254 builder.append(tableName); 13255 13256 boolean present_row = true && (isSetRow()); 13257 builder.append(present_row); 13258 if (present_row) 13259 builder.append(row); 13260 13261 boolean present_column = true && (isSetColumn()); 13262 builder.append(present_column); 13263 if (present_column) 13264 builder.append(column); 13265 13266 boolean present_attributes = true && (isSetAttributes()); 13267 builder.append(present_attributes); 13268 if (present_attributes) 13269 builder.append(attributes); 13270 13271 return builder.toHashCode(); 13272 } 13273 13274 public int compareTo(get_args other) { 13275 if (!getClass().equals(other.getClass())) { 13276 return getClass().getName().compareTo(other.getClass().getName()); 13277 } 13278 13279 int lastComparison = 0; 13280 get_args typedOther = (get_args)other; 13281 13282 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 13283 if (lastComparison != 0) { 13284 return lastComparison; 13285 } 13286 if (isSetTableName()) { 13287 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 13288 if (lastComparison != 0) { 13289 return lastComparison; 13290 } 13291 } 13292 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 13293 if (lastComparison != 0) { 13294 return lastComparison; 13295 } 13296 if (isSetRow()) { 13297 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 13298 if (lastComparison != 0) { 13299 return lastComparison; 13300 } 13301 } 13302 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 13303 if (lastComparison != 0) { 13304 return lastComparison; 13305 } 13306 if (isSetColumn()) { 13307 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 13308 if (lastComparison != 0) { 13309 return lastComparison; 13310 } 13311 } 13312 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 13313 if (lastComparison != 0) { 13314 return lastComparison; 13315 } 13316 if (isSetAttributes()) { 13317 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 13318 if (lastComparison != 0) { 13319 return lastComparison; 13320 } 13321 } 13322 return 0; 13323 } 13324 13325 public _Fields fieldForId(int fieldId) { 13326 return _Fields.findByThriftId(fieldId); 13327 } 13328 13329 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 13330 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 13331 } 13332 13333 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 13334 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 13335 } 13336 13337 @Override 13338 public String toString() { 13339 StringBuilder sb = new StringBuilder("get_args("); 13340 boolean first = true; 13341 13342 sb.append("tableName:"); 13343 if (this.tableName == null) { 13344 sb.append("null"); 13345 } else { 13346 sb.append(this.tableName); 13347 } 13348 first = false; 13349 if (!first) sb.append(", "); 13350 sb.append("row:"); 13351 if (this.row == null) { 13352 sb.append("null"); 13353 } else { 13354 sb.append(this.row); 13355 } 13356 first = false; 13357 if (!first) sb.append(", "); 13358 sb.append("column:"); 13359 if (this.column == null) { 13360 sb.append("null"); 13361 } else { 13362 sb.append(this.column); 13363 } 13364 first = false; 13365 if (!first) sb.append(", "); 13366 sb.append("attributes:"); 13367 if (this.attributes == null) { 13368 sb.append("null"); 13369 } else { 13370 sb.append(this.attributes); 13371 } 13372 first = false; 13373 sb.append(")"); 13374 return sb.toString(); 13375 } 13376 13377 public void validate() throws org.apache.thrift.TException { 13378 // check for required fields 13379 } 13380 13381 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 13382 try { 13383 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 13384 } catch (org.apache.thrift.TException te) { 13385 throw new java.io.IOException(te); 13386 } 13387 } 13388 13389 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 13390 try { 13391 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 13392 } catch (org.apache.thrift.TException te) { 13393 throw new java.io.IOException(te); 13394 } 13395 } 13396 13397 private static class get_argsStandardSchemeFactory implements SchemeFactory { 13398 public get_argsStandardScheme getScheme() { 13399 return new get_argsStandardScheme(); 13400 } 13401 } 13402 13403 private static class get_argsStandardScheme extends StandardScheme<get_args> { 13404 13405 public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException { 13406 org.apache.thrift.protocol.TField schemeField; 13407 iprot.readStructBegin(); 13408 while (true) 13409 { 13410 schemeField = iprot.readFieldBegin(); 13411 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 13412 break; 13413 } 13414 switch (schemeField.id) { 13415 case 1: // TABLE_NAME 13416 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 13417 struct.tableName = iprot.readBinary(); 13418 struct.setTableNameIsSet(true); 13419 } else { 13420 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 13421 } 13422 break; 13423 case 2: // ROW 13424 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 13425 struct.row = iprot.readBinary(); 13426 struct.setRowIsSet(true); 13427 } else { 13428 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 13429 } 13430 break; 13431 case 3: // COLUMN 13432 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 13433 struct.column = iprot.readBinary(); 13434 struct.setColumnIsSet(true); 13435 } else { 13436 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 13437 } 13438 break; 13439 case 4: // ATTRIBUTES 13440 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 13441 { 13442 org.apache.thrift.protocol.TMap _map68 = iprot.readMapBegin(); 13443 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map68.size); 13444 for (int _i69 = 0; _i69 < _map68.size; ++_i69) 13445 { 13446 ByteBuffer _key70; // required 13447 ByteBuffer _val71; // required 13448 _key70 = iprot.readBinary(); 13449 _val71 = iprot.readBinary(); 13450 struct.attributes.put(_key70, _val71); 13451 } 13452 iprot.readMapEnd(); 13453 } 13454 struct.setAttributesIsSet(true); 13455 } else { 13456 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 13457 } 13458 break; 13459 default: 13460 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 13461 } 13462 iprot.readFieldEnd(); 13463 } 13464 iprot.readStructEnd(); 13465 13466 // check for required fields of primitive type, which can't be checked in the validate method 13467 struct.validate(); 13468 } 13469 13470 public void write(org.apache.thrift.protocol.TProtocol oprot, get_args struct) throws org.apache.thrift.TException { 13471 struct.validate(); 13472 13473 oprot.writeStructBegin(STRUCT_DESC); 13474 if (struct.tableName != null) { 13475 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 13476 oprot.writeBinary(struct.tableName); 13477 oprot.writeFieldEnd(); 13478 } 13479 if (struct.row != null) { 13480 oprot.writeFieldBegin(ROW_FIELD_DESC); 13481 oprot.writeBinary(struct.row); 13482 oprot.writeFieldEnd(); 13483 } 13484 if (struct.column != null) { 13485 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 13486 oprot.writeBinary(struct.column); 13487 oprot.writeFieldEnd(); 13488 } 13489 if (struct.attributes != null) { 13490 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 13491 { 13492 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 13493 for (Map.Entry<ByteBuffer, ByteBuffer> _iter72 : struct.attributes.entrySet()) 13494 { 13495 oprot.writeBinary(_iter72.getKey()); 13496 oprot.writeBinary(_iter72.getValue()); 13497 } 13498 oprot.writeMapEnd(); 13499 } 13500 oprot.writeFieldEnd(); 13501 } 13502 oprot.writeFieldStop(); 13503 oprot.writeStructEnd(); 13504 } 13505 13506 } 13507 13508 private static class get_argsTupleSchemeFactory implements SchemeFactory { 13509 public get_argsTupleScheme getScheme() { 13510 return new get_argsTupleScheme(); 13511 } 13512 } 13513 13514 private static class get_argsTupleScheme extends TupleScheme<get_args> { 13515 13516 @Override 13517 public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { 13518 TTupleProtocol oprot = (TTupleProtocol) prot; 13519 BitSet optionals = new BitSet(); 13520 if (struct.isSetTableName()) { 13521 optionals.set(0); 13522 } 13523 if (struct.isSetRow()) { 13524 optionals.set(1); 13525 } 13526 if (struct.isSetColumn()) { 13527 optionals.set(2); 13528 } 13529 if (struct.isSetAttributes()) { 13530 optionals.set(3); 13531 } 13532 oprot.writeBitSet(optionals, 4); 13533 if (struct.isSetTableName()) { 13534 oprot.writeBinary(struct.tableName); 13535 } 13536 if (struct.isSetRow()) { 13537 oprot.writeBinary(struct.row); 13538 } 13539 if (struct.isSetColumn()) { 13540 oprot.writeBinary(struct.column); 13541 } 13542 if (struct.isSetAttributes()) { 13543 { 13544 oprot.writeI32(struct.attributes.size()); 13545 for (Map.Entry<ByteBuffer, ByteBuffer> _iter73 : struct.attributes.entrySet()) 13546 { 13547 oprot.writeBinary(_iter73.getKey()); 13548 oprot.writeBinary(_iter73.getValue()); 13549 } 13550 } 13551 } 13552 } 13553 13554 @Override 13555 public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { 13556 TTupleProtocol iprot = (TTupleProtocol) prot; 13557 BitSet incoming = iprot.readBitSet(4); 13558 if (incoming.get(0)) { 13559 struct.tableName = iprot.readBinary(); 13560 struct.setTableNameIsSet(true); 13561 } 13562 if (incoming.get(1)) { 13563 struct.row = iprot.readBinary(); 13564 struct.setRowIsSet(true); 13565 } 13566 if (incoming.get(2)) { 13567 struct.column = iprot.readBinary(); 13568 struct.setColumnIsSet(true); 13569 } 13570 if (incoming.get(3)) { 13571 { 13572 org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 13573 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map74.size); 13574 for (int _i75 = 0; _i75 < _map74.size; ++_i75) 13575 { 13576 ByteBuffer _key76; // required 13577 ByteBuffer _val77; // required 13578 _key76 = iprot.readBinary(); 13579 _val77 = iprot.readBinary(); 13580 struct.attributes.put(_key76, _val77); 13581 } 13582 } 13583 struct.setAttributesIsSet(true); 13584 } 13585 } 13586 } 13587 13588 } 13589 13590 public static class get_result implements org.apache.thrift.TBase<get_result, get_result._Fields>, java.io.Serializable, Cloneable { 13591 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result"); 13592 13593 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 13594 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 13595 13596 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 13597 static { 13598 schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory()); 13599 schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory()); 13600 } 13601 13602 public List<TCell> success; // required 13603 public IOError io; // required 13604 13605 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 13606 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 13607 SUCCESS((short)0, "success"), 13608 IO((short)1, "io"); 13609 13610 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 13611 13612 static { 13613 for (_Fields field : EnumSet.allOf(_Fields.class)) { 13614 byName.put(field.getFieldName(), field); 13615 } 13616 } 13617 13618 /** 13619 * Find the _Fields constant that matches fieldId, or null if its not found. 13620 */ 13621 public static _Fields findByThriftId(int fieldId) { 13622 switch(fieldId) { 13623 case 0: // SUCCESS 13624 return SUCCESS; 13625 case 1: // IO 13626 return IO; 13627 default: 13628 return null; 13629 } 13630 } 13631 13632 /** 13633 * Find the _Fields constant that matches fieldId, throwing an exception 13634 * if it is not found. 13635 */ 13636 public static _Fields findByThriftIdOrThrow(int fieldId) { 13637 _Fields fields = findByThriftId(fieldId); 13638 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 13639 return fields; 13640 } 13641 13642 /** 13643 * Find the _Fields constant that matches name, or null if its not found. 13644 */ 13645 public static _Fields findByName(String name) { 13646 return byName.get(name); 13647 } 13648 13649 private final short _thriftId; 13650 private final String _fieldName; 13651 13652 _Fields(short thriftId, String fieldName) { 13653 _thriftId = thriftId; 13654 _fieldName = fieldName; 13655 } 13656 13657 public short getThriftFieldId() { 13658 return _thriftId; 13659 } 13660 13661 public String getFieldName() { 13662 return _fieldName; 13663 } 13664 } 13665 13666 // isset id assignments 13667 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 13668 static { 13669 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 13670 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 13671 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 13672 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class)))); 13673 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 13674 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 13675 metaDataMap = Collections.unmodifiableMap(tmpMap); 13676 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap); 13677 } 13678 13679 public get_result() { 13680 } 13681 13682 public get_result( 13683 List<TCell> success, 13684 IOError io) 13685 { 13686 this(); 13687 this.success = success; 13688 this.io = io; 13689 } 13690 13691 /** 13692 * Performs a deep copy on <i>other</i>. 13693 */ 13694 public get_result(get_result other) { 13695 if (other.isSetSuccess()) { 13696 List<TCell> __this__success = new ArrayList<TCell>(); 13697 for (TCell other_element : other.success) { 13698 __this__success.add(new TCell(other_element)); 13699 } 13700 this.success = __this__success; 13701 } 13702 if (other.isSetIo()) { 13703 this.io = new IOError(other.io); 13704 } 13705 } 13706 13707 public get_result deepCopy() { 13708 return new get_result(this); 13709 } 13710 13711 @Override 13712 public void clear() { 13713 this.success = null; 13714 this.io = null; 13715 } 13716 13717 public int getSuccessSize() { 13718 return (this.success == null) ? 0 : this.success.size(); 13719 } 13720 13721 public java.util.Iterator<TCell> getSuccessIterator() { 13722 return (this.success == null) ? null : this.success.iterator(); 13723 } 13724 13725 public void addToSuccess(TCell elem) { 13726 if (this.success == null) { 13727 this.success = new ArrayList<TCell>(); 13728 } 13729 this.success.add(elem); 13730 } 13731 13732 public List<TCell> getSuccess() { 13733 return this.success; 13734 } 13735 13736 public get_result setSuccess(List<TCell> success) { 13737 this.success = success; 13738 return this; 13739 } 13740 13741 public void unsetSuccess() { 13742 this.success = null; 13743 } 13744 13745 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 13746 public boolean isSetSuccess() { 13747 return this.success != null; 13748 } 13749 13750 public void setSuccessIsSet(boolean value) { 13751 if (!value) { 13752 this.success = null; 13753 } 13754 } 13755 13756 public IOError getIo() { 13757 return this.io; 13758 } 13759 13760 public get_result setIo(IOError io) { 13761 this.io = io; 13762 return this; 13763 } 13764 13765 public void unsetIo() { 13766 this.io = null; 13767 } 13768 13769 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 13770 public boolean isSetIo() { 13771 return this.io != null; 13772 } 13773 13774 public void setIoIsSet(boolean value) { 13775 if (!value) { 13776 this.io = null; 13777 } 13778 } 13779 13780 public void setFieldValue(_Fields field, Object value) { 13781 switch (field) { 13782 case SUCCESS: 13783 if (value == null) { 13784 unsetSuccess(); 13785 } else { 13786 setSuccess((List<TCell>)value); 13787 } 13788 break; 13789 13790 case IO: 13791 if (value == null) { 13792 unsetIo(); 13793 } else { 13794 setIo((IOError)value); 13795 } 13796 break; 13797 13798 } 13799 } 13800 13801 public Object getFieldValue(_Fields field) { 13802 switch (field) { 13803 case SUCCESS: 13804 return getSuccess(); 13805 13806 case IO: 13807 return getIo(); 13808 13809 } 13810 throw new IllegalStateException(); 13811 } 13812 13813 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 13814 public boolean isSet(_Fields field) { 13815 if (field == null) { 13816 throw new IllegalArgumentException(); 13817 } 13818 13819 switch (field) { 13820 case SUCCESS: 13821 return isSetSuccess(); 13822 case IO: 13823 return isSetIo(); 13824 } 13825 throw new IllegalStateException(); 13826 } 13827 13828 @Override 13829 public boolean equals(Object that) { 13830 if (that == null) 13831 return false; 13832 if (that instanceof get_result) 13833 return this.equals((get_result)that); 13834 return false; 13835 } 13836 13837 public boolean equals(get_result that) { 13838 if (that == null) 13839 return false; 13840 13841 boolean this_present_success = true && this.isSetSuccess(); 13842 boolean that_present_success = true && that.isSetSuccess(); 13843 if (this_present_success || that_present_success) { 13844 if (!(this_present_success && that_present_success)) 13845 return false; 13846 if (!this.success.equals(that.success)) 13847 return false; 13848 } 13849 13850 boolean this_present_io = true && this.isSetIo(); 13851 boolean that_present_io = true && that.isSetIo(); 13852 if (this_present_io || that_present_io) { 13853 if (!(this_present_io && that_present_io)) 13854 return false; 13855 if (!this.io.equals(that.io)) 13856 return false; 13857 } 13858 13859 return true; 13860 } 13861 13862 @Override 13863 public int hashCode() { 13864 HashCodeBuilder builder = new HashCodeBuilder(); 13865 13866 boolean present_success = true && (isSetSuccess()); 13867 builder.append(present_success); 13868 if (present_success) 13869 builder.append(success); 13870 13871 boolean present_io = true && (isSetIo()); 13872 builder.append(present_io); 13873 if (present_io) 13874 builder.append(io); 13875 13876 return builder.toHashCode(); 13877 } 13878 13879 public int compareTo(get_result other) { 13880 if (!getClass().equals(other.getClass())) { 13881 return getClass().getName().compareTo(other.getClass().getName()); 13882 } 13883 13884 int lastComparison = 0; 13885 get_result typedOther = (get_result)other; 13886 13887 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 13888 if (lastComparison != 0) { 13889 return lastComparison; 13890 } 13891 if (isSetSuccess()) { 13892 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 13893 if (lastComparison != 0) { 13894 return lastComparison; 13895 } 13896 } 13897 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 13898 if (lastComparison != 0) { 13899 return lastComparison; 13900 } 13901 if (isSetIo()) { 13902 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 13903 if (lastComparison != 0) { 13904 return lastComparison; 13905 } 13906 } 13907 return 0; 13908 } 13909 13910 public _Fields fieldForId(int fieldId) { 13911 return _Fields.findByThriftId(fieldId); 13912 } 13913 13914 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 13915 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 13916 } 13917 13918 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 13919 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 13920 } 13921 13922 @Override 13923 public String toString() { 13924 StringBuilder sb = new StringBuilder("get_result("); 13925 boolean first = true; 13926 13927 sb.append("success:"); 13928 if (this.success == null) { 13929 sb.append("null"); 13930 } else { 13931 sb.append(this.success); 13932 } 13933 first = false; 13934 if (!first) sb.append(", "); 13935 sb.append("io:"); 13936 if (this.io == null) { 13937 sb.append("null"); 13938 } else { 13939 sb.append(this.io); 13940 } 13941 first = false; 13942 sb.append(")"); 13943 return sb.toString(); 13944 } 13945 13946 public void validate() throws org.apache.thrift.TException { 13947 // check for required fields 13948 } 13949 13950 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 13951 try { 13952 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 13953 } catch (org.apache.thrift.TException te) { 13954 throw new java.io.IOException(te); 13955 } 13956 } 13957 13958 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 13959 try { 13960 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 13961 } catch (org.apache.thrift.TException te) { 13962 throw new java.io.IOException(te); 13963 } 13964 } 13965 13966 private static class get_resultStandardSchemeFactory implements SchemeFactory { 13967 public get_resultStandardScheme getScheme() { 13968 return new get_resultStandardScheme(); 13969 } 13970 } 13971 13972 private static class get_resultStandardScheme extends StandardScheme<get_result> { 13973 13974 public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException { 13975 org.apache.thrift.protocol.TField schemeField; 13976 iprot.readStructBegin(); 13977 while (true) 13978 { 13979 schemeField = iprot.readFieldBegin(); 13980 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 13981 break; 13982 } 13983 switch (schemeField.id) { 13984 case 0: // SUCCESS 13985 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 13986 { 13987 org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); 13988 struct.success = new ArrayList<TCell>(_list78.size); 13989 for (int _i79 = 0; _i79 < _list78.size; ++_i79) 13990 { 13991 TCell _elem80; // required 13992 _elem80 = new TCell(); 13993 _elem80.read(iprot); 13994 struct.success.add(_elem80); 13995 } 13996 iprot.readListEnd(); 13997 } 13998 struct.setSuccessIsSet(true); 13999 } else { 14000 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14001 } 14002 break; 14003 case 1: // IO 14004 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 14005 struct.io = new IOError(); 14006 struct.io.read(iprot); 14007 struct.setIoIsSet(true); 14008 } else { 14009 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14010 } 14011 break; 14012 default: 14013 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14014 } 14015 iprot.readFieldEnd(); 14016 } 14017 iprot.readStructEnd(); 14018 14019 // check for required fields of primitive type, which can't be checked in the validate method 14020 struct.validate(); 14021 } 14022 14023 public void write(org.apache.thrift.protocol.TProtocol oprot, get_result struct) throws org.apache.thrift.TException { 14024 struct.validate(); 14025 14026 oprot.writeStructBegin(STRUCT_DESC); 14027 if (struct.success != null) { 14028 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 14029 { 14030 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 14031 for (TCell _iter81 : struct.success) 14032 { 14033 _iter81.write(oprot); 14034 } 14035 oprot.writeListEnd(); 14036 } 14037 oprot.writeFieldEnd(); 14038 } 14039 if (struct.io != null) { 14040 oprot.writeFieldBegin(IO_FIELD_DESC); 14041 struct.io.write(oprot); 14042 oprot.writeFieldEnd(); 14043 } 14044 oprot.writeFieldStop(); 14045 oprot.writeStructEnd(); 14046 } 14047 14048 } 14049 14050 private static class get_resultTupleSchemeFactory implements SchemeFactory { 14051 public get_resultTupleScheme getScheme() { 14052 return new get_resultTupleScheme(); 14053 } 14054 } 14055 14056 private static class get_resultTupleScheme extends TupleScheme<get_result> { 14057 14058 @Override 14059 public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { 14060 TTupleProtocol oprot = (TTupleProtocol) prot; 14061 BitSet optionals = new BitSet(); 14062 if (struct.isSetSuccess()) { 14063 optionals.set(0); 14064 } 14065 if (struct.isSetIo()) { 14066 optionals.set(1); 14067 } 14068 oprot.writeBitSet(optionals, 2); 14069 if (struct.isSetSuccess()) { 14070 { 14071 oprot.writeI32(struct.success.size()); 14072 for (TCell _iter82 : struct.success) 14073 { 14074 _iter82.write(oprot); 14075 } 14076 } 14077 } 14078 if (struct.isSetIo()) { 14079 struct.io.write(oprot); 14080 } 14081 } 14082 14083 @Override 14084 public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException { 14085 TTupleProtocol iprot = (TTupleProtocol) prot; 14086 BitSet incoming = iprot.readBitSet(2); 14087 if (incoming.get(0)) { 14088 { 14089 org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 14090 struct.success = new ArrayList<TCell>(_list83.size); 14091 for (int _i84 = 0; _i84 < _list83.size; ++_i84) 14092 { 14093 TCell _elem85; // required 14094 _elem85 = new TCell(); 14095 _elem85.read(iprot); 14096 struct.success.add(_elem85); 14097 } 14098 } 14099 struct.setSuccessIsSet(true); 14100 } 14101 if (incoming.get(1)) { 14102 struct.io = new IOError(); 14103 struct.io.read(iprot); 14104 struct.setIoIsSet(true); 14105 } 14106 } 14107 } 14108 14109 } 14110 14111 public static class getVer_args implements org.apache.thrift.TBase<getVer_args, getVer_args._Fields>, java.io.Serializable, Cloneable { 14112 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_args"); 14113 14114 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 14115 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 14116 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 14117 private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)4); 14118 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 14119 14120 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 14121 static { 14122 schemes.put(StandardScheme.class, new getVer_argsStandardSchemeFactory()); 14123 schemes.put(TupleScheme.class, new getVer_argsTupleSchemeFactory()); 14124 } 14125 14126 /** 14127 * name of table 14128 */ 14129 public ByteBuffer tableName; // required 14130 /** 14131 * row key 14132 */ 14133 public ByteBuffer row; // required 14134 /** 14135 * column name 14136 */ 14137 public ByteBuffer column; // required 14138 /** 14139 * number of versions to retrieve 14140 */ 14141 public int numVersions; // required 14142 /** 14143 * Get attributes 14144 */ 14145 public Map<ByteBuffer,ByteBuffer> attributes; // required 14146 14147 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 14148 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 14149 /** 14150 * name of table 14151 */ 14152 TABLE_NAME((short)1, "tableName"), 14153 /** 14154 * row key 14155 */ 14156 ROW((short)2, "row"), 14157 /** 14158 * column name 14159 */ 14160 COLUMN((short)3, "column"), 14161 /** 14162 * number of versions to retrieve 14163 */ 14164 NUM_VERSIONS((short)4, "numVersions"), 14165 /** 14166 * Get attributes 14167 */ 14168 ATTRIBUTES((short)5, "attributes"); 14169 14170 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 14171 14172 static { 14173 for (_Fields field : EnumSet.allOf(_Fields.class)) { 14174 byName.put(field.getFieldName(), field); 14175 } 14176 } 14177 14178 /** 14179 * Find the _Fields constant that matches fieldId, or null if its not found. 14180 */ 14181 public static _Fields findByThriftId(int fieldId) { 14182 switch(fieldId) { 14183 case 1: // TABLE_NAME 14184 return TABLE_NAME; 14185 case 2: // ROW 14186 return ROW; 14187 case 3: // COLUMN 14188 return COLUMN; 14189 case 4: // NUM_VERSIONS 14190 return NUM_VERSIONS; 14191 case 5: // ATTRIBUTES 14192 return ATTRIBUTES; 14193 default: 14194 return null; 14195 } 14196 } 14197 14198 /** 14199 * Find the _Fields constant that matches fieldId, throwing an exception 14200 * if it is not found. 14201 */ 14202 public static _Fields findByThriftIdOrThrow(int fieldId) { 14203 _Fields fields = findByThriftId(fieldId); 14204 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 14205 return fields; 14206 } 14207 14208 /** 14209 * Find the _Fields constant that matches name, or null if its not found. 14210 */ 14211 public static _Fields findByName(String name) { 14212 return byName.get(name); 14213 } 14214 14215 private final short _thriftId; 14216 private final String _fieldName; 14217 14218 _Fields(short thriftId, String fieldName) { 14219 _thriftId = thriftId; 14220 _fieldName = fieldName; 14221 } 14222 14223 public short getThriftFieldId() { 14224 return _thriftId; 14225 } 14226 14227 public String getFieldName() { 14228 return _fieldName; 14229 } 14230 } 14231 14232 // isset id assignments 14233 private static final int __NUMVERSIONS_ISSET_ID = 0; 14234 private BitSet __isset_bit_vector = new BitSet(1); 14235 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 14236 static { 14237 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 14238 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 14239 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 14240 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 14241 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 14242 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 14243 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 14244 tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT, 14245 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 14246 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 14247 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 14248 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 14249 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 14250 metaDataMap = Collections.unmodifiableMap(tmpMap); 14251 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_args.class, metaDataMap); 14252 } 14253 14254 public getVer_args() { 14255 } 14256 14257 public getVer_args( 14258 ByteBuffer tableName, 14259 ByteBuffer row, 14260 ByteBuffer column, 14261 int numVersions, 14262 Map<ByteBuffer,ByteBuffer> attributes) 14263 { 14264 this(); 14265 this.tableName = tableName; 14266 this.row = row; 14267 this.column = column; 14268 this.numVersions = numVersions; 14269 setNumVersionsIsSet(true); 14270 this.attributes = attributes; 14271 } 14272 14273 /** 14274 * Performs a deep copy on <i>other</i>. 14275 */ 14276 public getVer_args(getVer_args other) { 14277 __isset_bit_vector.clear(); 14278 __isset_bit_vector.or(other.__isset_bit_vector); 14279 if (other.isSetTableName()) { 14280 this.tableName = other.tableName; 14281 } 14282 if (other.isSetRow()) { 14283 this.row = other.row; 14284 } 14285 if (other.isSetColumn()) { 14286 this.column = other.column; 14287 } 14288 this.numVersions = other.numVersions; 14289 if (other.isSetAttributes()) { 14290 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 14291 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 14292 14293 ByteBuffer other_element_key = other_element.getKey(); 14294 ByteBuffer other_element_value = other_element.getValue(); 14295 14296 ByteBuffer __this__attributes_copy_key = other_element_key; 14297 14298 ByteBuffer __this__attributes_copy_value = other_element_value; 14299 14300 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 14301 } 14302 this.attributes = __this__attributes; 14303 } 14304 } 14305 14306 public getVer_args deepCopy() { 14307 return new getVer_args(this); 14308 } 14309 14310 @Override 14311 public void clear() { 14312 this.tableName = null; 14313 this.row = null; 14314 this.column = null; 14315 setNumVersionsIsSet(false); 14316 this.numVersions = 0; 14317 this.attributes = null; 14318 } 14319 14320 /** 14321 * name of table 14322 */ 14323 public byte[] getTableName() { 14324 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 14325 return tableName == null ? null : tableName.array(); 14326 } 14327 14328 public ByteBuffer bufferForTableName() { 14329 return tableName; 14330 } 14331 14332 /** 14333 * name of table 14334 */ 14335 public getVer_args setTableName(byte[] tableName) { 14336 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 14337 return this; 14338 } 14339 14340 public getVer_args setTableName(ByteBuffer tableName) { 14341 this.tableName = tableName; 14342 return this; 14343 } 14344 14345 public void unsetTableName() { 14346 this.tableName = null; 14347 } 14348 14349 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 14350 public boolean isSetTableName() { 14351 return this.tableName != null; 14352 } 14353 14354 public void setTableNameIsSet(boolean value) { 14355 if (!value) { 14356 this.tableName = null; 14357 } 14358 } 14359 14360 /** 14361 * row key 14362 */ 14363 public byte[] getRow() { 14364 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 14365 return row == null ? null : row.array(); 14366 } 14367 14368 public ByteBuffer bufferForRow() { 14369 return row; 14370 } 14371 14372 /** 14373 * row key 14374 */ 14375 public getVer_args setRow(byte[] row) { 14376 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 14377 return this; 14378 } 14379 14380 public getVer_args setRow(ByteBuffer row) { 14381 this.row = row; 14382 return this; 14383 } 14384 14385 public void unsetRow() { 14386 this.row = null; 14387 } 14388 14389 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 14390 public boolean isSetRow() { 14391 return this.row != null; 14392 } 14393 14394 public void setRowIsSet(boolean value) { 14395 if (!value) { 14396 this.row = null; 14397 } 14398 } 14399 14400 /** 14401 * column name 14402 */ 14403 public byte[] getColumn() { 14404 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 14405 return column == null ? null : column.array(); 14406 } 14407 14408 public ByteBuffer bufferForColumn() { 14409 return column; 14410 } 14411 14412 /** 14413 * column name 14414 */ 14415 public getVer_args setColumn(byte[] column) { 14416 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 14417 return this; 14418 } 14419 14420 public getVer_args setColumn(ByteBuffer column) { 14421 this.column = column; 14422 return this; 14423 } 14424 14425 public void unsetColumn() { 14426 this.column = null; 14427 } 14428 14429 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 14430 public boolean isSetColumn() { 14431 return this.column != null; 14432 } 14433 14434 public void setColumnIsSet(boolean value) { 14435 if (!value) { 14436 this.column = null; 14437 } 14438 } 14439 14440 /** 14441 * number of versions to retrieve 14442 */ 14443 public int getNumVersions() { 14444 return this.numVersions; 14445 } 14446 14447 /** 14448 * number of versions to retrieve 14449 */ 14450 public getVer_args setNumVersions(int numVersions) { 14451 this.numVersions = numVersions; 14452 setNumVersionsIsSet(true); 14453 return this; 14454 } 14455 14456 public void unsetNumVersions() { 14457 __isset_bit_vector.clear(__NUMVERSIONS_ISSET_ID); 14458 } 14459 14460 /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */ 14461 public boolean isSetNumVersions() { 14462 return __isset_bit_vector.get(__NUMVERSIONS_ISSET_ID); 14463 } 14464 14465 public void setNumVersionsIsSet(boolean value) { 14466 __isset_bit_vector.set(__NUMVERSIONS_ISSET_ID, value); 14467 } 14468 14469 public int getAttributesSize() { 14470 return (this.attributes == null) ? 0 : this.attributes.size(); 14471 } 14472 14473 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 14474 if (this.attributes == null) { 14475 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 14476 } 14477 this.attributes.put(key, val); 14478 } 14479 14480 /** 14481 * Get attributes 14482 */ 14483 public Map<ByteBuffer,ByteBuffer> getAttributes() { 14484 return this.attributes; 14485 } 14486 14487 /** 14488 * Get attributes 14489 */ 14490 public getVer_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 14491 this.attributes = attributes; 14492 return this; 14493 } 14494 14495 public void unsetAttributes() { 14496 this.attributes = null; 14497 } 14498 14499 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 14500 public boolean isSetAttributes() { 14501 return this.attributes != null; 14502 } 14503 14504 public void setAttributesIsSet(boolean value) { 14505 if (!value) { 14506 this.attributes = null; 14507 } 14508 } 14509 14510 public void setFieldValue(_Fields field, Object value) { 14511 switch (field) { 14512 case TABLE_NAME: 14513 if (value == null) { 14514 unsetTableName(); 14515 } else { 14516 setTableName((ByteBuffer)value); 14517 } 14518 break; 14519 14520 case ROW: 14521 if (value == null) { 14522 unsetRow(); 14523 } else { 14524 setRow((ByteBuffer)value); 14525 } 14526 break; 14527 14528 case COLUMN: 14529 if (value == null) { 14530 unsetColumn(); 14531 } else { 14532 setColumn((ByteBuffer)value); 14533 } 14534 break; 14535 14536 case NUM_VERSIONS: 14537 if (value == null) { 14538 unsetNumVersions(); 14539 } else { 14540 setNumVersions((Integer)value); 14541 } 14542 break; 14543 14544 case ATTRIBUTES: 14545 if (value == null) { 14546 unsetAttributes(); 14547 } else { 14548 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 14549 } 14550 break; 14551 14552 } 14553 } 14554 14555 public Object getFieldValue(_Fields field) { 14556 switch (field) { 14557 case TABLE_NAME: 14558 return getTableName(); 14559 14560 case ROW: 14561 return getRow(); 14562 14563 case COLUMN: 14564 return getColumn(); 14565 14566 case NUM_VERSIONS: 14567 return Integer.valueOf(getNumVersions()); 14568 14569 case ATTRIBUTES: 14570 return getAttributes(); 14571 14572 } 14573 throw new IllegalStateException(); 14574 } 14575 14576 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 14577 public boolean isSet(_Fields field) { 14578 if (field == null) { 14579 throw new IllegalArgumentException(); 14580 } 14581 14582 switch (field) { 14583 case TABLE_NAME: 14584 return isSetTableName(); 14585 case ROW: 14586 return isSetRow(); 14587 case COLUMN: 14588 return isSetColumn(); 14589 case NUM_VERSIONS: 14590 return isSetNumVersions(); 14591 case ATTRIBUTES: 14592 return isSetAttributes(); 14593 } 14594 throw new IllegalStateException(); 14595 } 14596 14597 @Override 14598 public boolean equals(Object that) { 14599 if (that == null) 14600 return false; 14601 if (that instanceof getVer_args) 14602 return this.equals((getVer_args)that); 14603 return false; 14604 } 14605 14606 public boolean equals(getVer_args that) { 14607 if (that == null) 14608 return false; 14609 14610 boolean this_present_tableName = true && this.isSetTableName(); 14611 boolean that_present_tableName = true && that.isSetTableName(); 14612 if (this_present_tableName || that_present_tableName) { 14613 if (!(this_present_tableName && that_present_tableName)) 14614 return false; 14615 if (!this.tableName.equals(that.tableName)) 14616 return false; 14617 } 14618 14619 boolean this_present_row = true && this.isSetRow(); 14620 boolean that_present_row = true && that.isSetRow(); 14621 if (this_present_row || that_present_row) { 14622 if (!(this_present_row && that_present_row)) 14623 return false; 14624 if (!this.row.equals(that.row)) 14625 return false; 14626 } 14627 14628 boolean this_present_column = true && this.isSetColumn(); 14629 boolean that_present_column = true && that.isSetColumn(); 14630 if (this_present_column || that_present_column) { 14631 if (!(this_present_column && that_present_column)) 14632 return false; 14633 if (!this.column.equals(that.column)) 14634 return false; 14635 } 14636 14637 boolean this_present_numVersions = true; 14638 boolean that_present_numVersions = true; 14639 if (this_present_numVersions || that_present_numVersions) { 14640 if (!(this_present_numVersions && that_present_numVersions)) 14641 return false; 14642 if (this.numVersions != that.numVersions) 14643 return false; 14644 } 14645 14646 boolean this_present_attributes = true && this.isSetAttributes(); 14647 boolean that_present_attributes = true && that.isSetAttributes(); 14648 if (this_present_attributes || that_present_attributes) { 14649 if (!(this_present_attributes && that_present_attributes)) 14650 return false; 14651 if (!this.attributes.equals(that.attributes)) 14652 return false; 14653 } 14654 14655 return true; 14656 } 14657 14658 @Override 14659 public int hashCode() { 14660 HashCodeBuilder builder = new HashCodeBuilder(); 14661 14662 boolean present_tableName = true && (isSetTableName()); 14663 builder.append(present_tableName); 14664 if (present_tableName) 14665 builder.append(tableName); 14666 14667 boolean present_row = true && (isSetRow()); 14668 builder.append(present_row); 14669 if (present_row) 14670 builder.append(row); 14671 14672 boolean present_column = true && (isSetColumn()); 14673 builder.append(present_column); 14674 if (present_column) 14675 builder.append(column); 14676 14677 boolean present_numVersions = true; 14678 builder.append(present_numVersions); 14679 if (present_numVersions) 14680 builder.append(numVersions); 14681 14682 boolean present_attributes = true && (isSetAttributes()); 14683 builder.append(present_attributes); 14684 if (present_attributes) 14685 builder.append(attributes); 14686 14687 return builder.toHashCode(); 14688 } 14689 14690 public int compareTo(getVer_args other) { 14691 if (!getClass().equals(other.getClass())) { 14692 return getClass().getName().compareTo(other.getClass().getName()); 14693 } 14694 14695 int lastComparison = 0; 14696 getVer_args typedOther = (getVer_args)other; 14697 14698 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 14699 if (lastComparison != 0) { 14700 return lastComparison; 14701 } 14702 if (isSetTableName()) { 14703 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 14704 if (lastComparison != 0) { 14705 return lastComparison; 14706 } 14707 } 14708 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 14709 if (lastComparison != 0) { 14710 return lastComparison; 14711 } 14712 if (isSetRow()) { 14713 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 14714 if (lastComparison != 0) { 14715 return lastComparison; 14716 } 14717 } 14718 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 14719 if (lastComparison != 0) { 14720 return lastComparison; 14721 } 14722 if (isSetColumn()) { 14723 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 14724 if (lastComparison != 0) { 14725 return lastComparison; 14726 } 14727 } 14728 lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions()); 14729 if (lastComparison != 0) { 14730 return lastComparison; 14731 } 14732 if (isSetNumVersions()) { 14733 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions); 14734 if (lastComparison != 0) { 14735 return lastComparison; 14736 } 14737 } 14738 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 14739 if (lastComparison != 0) { 14740 return lastComparison; 14741 } 14742 if (isSetAttributes()) { 14743 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 14744 if (lastComparison != 0) { 14745 return lastComparison; 14746 } 14747 } 14748 return 0; 14749 } 14750 14751 public _Fields fieldForId(int fieldId) { 14752 return _Fields.findByThriftId(fieldId); 14753 } 14754 14755 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 14756 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 14757 } 14758 14759 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 14760 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 14761 } 14762 14763 @Override 14764 public String toString() { 14765 StringBuilder sb = new StringBuilder("getVer_args("); 14766 boolean first = true; 14767 14768 sb.append("tableName:"); 14769 if (this.tableName == null) { 14770 sb.append("null"); 14771 } else { 14772 sb.append(this.tableName); 14773 } 14774 first = false; 14775 if (!first) sb.append(", "); 14776 sb.append("row:"); 14777 if (this.row == null) { 14778 sb.append("null"); 14779 } else { 14780 sb.append(this.row); 14781 } 14782 first = false; 14783 if (!first) sb.append(", "); 14784 sb.append("column:"); 14785 if (this.column == null) { 14786 sb.append("null"); 14787 } else { 14788 sb.append(this.column); 14789 } 14790 first = false; 14791 if (!first) sb.append(", "); 14792 sb.append("numVersions:"); 14793 sb.append(this.numVersions); 14794 first = false; 14795 if (!first) sb.append(", "); 14796 sb.append("attributes:"); 14797 if (this.attributes == null) { 14798 sb.append("null"); 14799 } else { 14800 sb.append(this.attributes); 14801 } 14802 first = false; 14803 sb.append(")"); 14804 return sb.toString(); 14805 } 14806 14807 public void validate() throws org.apache.thrift.TException { 14808 // check for required fields 14809 } 14810 14811 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 14812 try { 14813 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 14814 } catch (org.apache.thrift.TException te) { 14815 throw new java.io.IOException(te); 14816 } 14817 } 14818 14819 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 14820 try { 14821 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 14822 __isset_bit_vector = new BitSet(1); 14823 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 14824 } catch (org.apache.thrift.TException te) { 14825 throw new java.io.IOException(te); 14826 } 14827 } 14828 14829 private static class getVer_argsStandardSchemeFactory implements SchemeFactory { 14830 public getVer_argsStandardScheme getScheme() { 14831 return new getVer_argsStandardScheme(); 14832 } 14833 } 14834 14835 private static class getVer_argsStandardScheme extends StandardScheme<getVer_args> { 14836 14837 public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_args struct) throws org.apache.thrift.TException { 14838 org.apache.thrift.protocol.TField schemeField; 14839 iprot.readStructBegin(); 14840 while (true) 14841 { 14842 schemeField = iprot.readFieldBegin(); 14843 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 14844 break; 14845 } 14846 switch (schemeField.id) { 14847 case 1: // TABLE_NAME 14848 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 14849 struct.tableName = iprot.readBinary(); 14850 struct.setTableNameIsSet(true); 14851 } else { 14852 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14853 } 14854 break; 14855 case 2: // ROW 14856 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 14857 struct.row = iprot.readBinary(); 14858 struct.setRowIsSet(true); 14859 } else { 14860 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14861 } 14862 break; 14863 case 3: // COLUMN 14864 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 14865 struct.column = iprot.readBinary(); 14866 struct.setColumnIsSet(true); 14867 } else { 14868 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14869 } 14870 break; 14871 case 4: // NUM_VERSIONS 14872 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 14873 struct.numVersions = iprot.readI32(); 14874 struct.setNumVersionsIsSet(true); 14875 } else { 14876 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14877 } 14878 break; 14879 case 5: // ATTRIBUTES 14880 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 14881 { 14882 org.apache.thrift.protocol.TMap _map86 = iprot.readMapBegin(); 14883 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map86.size); 14884 for (int _i87 = 0; _i87 < _map86.size; ++_i87) 14885 { 14886 ByteBuffer _key88; // required 14887 ByteBuffer _val89; // required 14888 _key88 = iprot.readBinary(); 14889 _val89 = iprot.readBinary(); 14890 struct.attributes.put(_key88, _val89); 14891 } 14892 iprot.readMapEnd(); 14893 } 14894 struct.setAttributesIsSet(true); 14895 } else { 14896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14897 } 14898 break; 14899 default: 14900 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 14901 } 14902 iprot.readFieldEnd(); 14903 } 14904 iprot.readStructEnd(); 14905 14906 // check for required fields of primitive type, which can't be checked in the validate method 14907 struct.validate(); 14908 } 14909 14910 public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_args struct) throws org.apache.thrift.TException { 14911 struct.validate(); 14912 14913 oprot.writeStructBegin(STRUCT_DESC); 14914 if (struct.tableName != null) { 14915 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 14916 oprot.writeBinary(struct.tableName); 14917 oprot.writeFieldEnd(); 14918 } 14919 if (struct.row != null) { 14920 oprot.writeFieldBegin(ROW_FIELD_DESC); 14921 oprot.writeBinary(struct.row); 14922 oprot.writeFieldEnd(); 14923 } 14924 if (struct.column != null) { 14925 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 14926 oprot.writeBinary(struct.column); 14927 oprot.writeFieldEnd(); 14928 } 14929 oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC); 14930 oprot.writeI32(struct.numVersions); 14931 oprot.writeFieldEnd(); 14932 if (struct.attributes != null) { 14933 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 14934 { 14935 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 14936 for (Map.Entry<ByteBuffer, ByteBuffer> _iter90 : struct.attributes.entrySet()) 14937 { 14938 oprot.writeBinary(_iter90.getKey()); 14939 oprot.writeBinary(_iter90.getValue()); 14940 } 14941 oprot.writeMapEnd(); 14942 } 14943 oprot.writeFieldEnd(); 14944 } 14945 oprot.writeFieldStop(); 14946 oprot.writeStructEnd(); 14947 } 14948 14949 } 14950 14951 private static class getVer_argsTupleSchemeFactory implements SchemeFactory { 14952 public getVer_argsTupleScheme getScheme() { 14953 return new getVer_argsTupleScheme(); 14954 } 14955 } 14956 14957 private static class getVer_argsTupleScheme extends TupleScheme<getVer_args> { 14958 14959 @Override 14960 public void write(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException { 14961 TTupleProtocol oprot = (TTupleProtocol) prot; 14962 BitSet optionals = new BitSet(); 14963 if (struct.isSetTableName()) { 14964 optionals.set(0); 14965 } 14966 if (struct.isSetRow()) { 14967 optionals.set(1); 14968 } 14969 if (struct.isSetColumn()) { 14970 optionals.set(2); 14971 } 14972 if (struct.isSetNumVersions()) { 14973 optionals.set(3); 14974 } 14975 if (struct.isSetAttributes()) { 14976 optionals.set(4); 14977 } 14978 oprot.writeBitSet(optionals, 5); 14979 if (struct.isSetTableName()) { 14980 oprot.writeBinary(struct.tableName); 14981 } 14982 if (struct.isSetRow()) { 14983 oprot.writeBinary(struct.row); 14984 } 14985 if (struct.isSetColumn()) { 14986 oprot.writeBinary(struct.column); 14987 } 14988 if (struct.isSetNumVersions()) { 14989 oprot.writeI32(struct.numVersions); 14990 } 14991 if (struct.isSetAttributes()) { 14992 { 14993 oprot.writeI32(struct.attributes.size()); 14994 for (Map.Entry<ByteBuffer, ByteBuffer> _iter91 : struct.attributes.entrySet()) 14995 { 14996 oprot.writeBinary(_iter91.getKey()); 14997 oprot.writeBinary(_iter91.getValue()); 14998 } 14999 } 15000 } 15001 } 15002 15003 @Override 15004 public void read(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException { 15005 TTupleProtocol iprot = (TTupleProtocol) prot; 15006 BitSet incoming = iprot.readBitSet(5); 15007 if (incoming.get(0)) { 15008 struct.tableName = iprot.readBinary(); 15009 struct.setTableNameIsSet(true); 15010 } 15011 if (incoming.get(1)) { 15012 struct.row = iprot.readBinary(); 15013 struct.setRowIsSet(true); 15014 } 15015 if (incoming.get(2)) { 15016 struct.column = iprot.readBinary(); 15017 struct.setColumnIsSet(true); 15018 } 15019 if (incoming.get(3)) { 15020 struct.numVersions = iprot.readI32(); 15021 struct.setNumVersionsIsSet(true); 15022 } 15023 if (incoming.get(4)) { 15024 { 15025 org.apache.thrift.protocol.TMap _map92 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 15026 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map92.size); 15027 for (int _i93 = 0; _i93 < _map92.size; ++_i93) 15028 { 15029 ByteBuffer _key94; // required 15030 ByteBuffer _val95; // required 15031 _key94 = iprot.readBinary(); 15032 _val95 = iprot.readBinary(); 15033 struct.attributes.put(_key94, _val95); 15034 } 15035 } 15036 struct.setAttributesIsSet(true); 15037 } 15038 } 15039 } 15040 15041 } 15042 15043 public static class getVer_result implements org.apache.thrift.TBase<getVer_result, getVer_result._Fields>, java.io.Serializable, Cloneable { 15044 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_result"); 15045 15046 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 15047 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 15048 15049 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 15050 static { 15051 schemes.put(StandardScheme.class, new getVer_resultStandardSchemeFactory()); 15052 schemes.put(TupleScheme.class, new getVer_resultTupleSchemeFactory()); 15053 } 15054 15055 public List<TCell> success; // required 15056 public IOError io; // required 15057 15058 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 15059 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 15060 SUCCESS((short)0, "success"), 15061 IO((short)1, "io"); 15062 15063 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 15064 15065 static { 15066 for (_Fields field : EnumSet.allOf(_Fields.class)) { 15067 byName.put(field.getFieldName(), field); 15068 } 15069 } 15070 15071 /** 15072 * Find the _Fields constant that matches fieldId, or null if its not found. 15073 */ 15074 public static _Fields findByThriftId(int fieldId) { 15075 switch(fieldId) { 15076 case 0: // SUCCESS 15077 return SUCCESS; 15078 case 1: // IO 15079 return IO; 15080 default: 15081 return null; 15082 } 15083 } 15084 15085 /** 15086 * Find the _Fields constant that matches fieldId, throwing an exception 15087 * if it is not found. 15088 */ 15089 public static _Fields findByThriftIdOrThrow(int fieldId) { 15090 _Fields fields = findByThriftId(fieldId); 15091 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 15092 return fields; 15093 } 15094 15095 /** 15096 * Find the _Fields constant that matches name, or null if its not found. 15097 */ 15098 public static _Fields findByName(String name) { 15099 return byName.get(name); 15100 } 15101 15102 private final short _thriftId; 15103 private final String _fieldName; 15104 15105 _Fields(short thriftId, String fieldName) { 15106 _thriftId = thriftId; 15107 _fieldName = fieldName; 15108 } 15109 15110 public short getThriftFieldId() { 15111 return _thriftId; 15112 } 15113 15114 public String getFieldName() { 15115 return _fieldName; 15116 } 15117 } 15118 15119 // isset id assignments 15120 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 15121 static { 15122 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 15123 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 15124 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 15125 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class)))); 15126 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 15127 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 15128 metaDataMap = Collections.unmodifiableMap(tmpMap); 15129 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_result.class, metaDataMap); 15130 } 15131 15132 public getVer_result() { 15133 } 15134 15135 public getVer_result( 15136 List<TCell> success, 15137 IOError io) 15138 { 15139 this(); 15140 this.success = success; 15141 this.io = io; 15142 } 15143 15144 /** 15145 * Performs a deep copy on <i>other</i>. 15146 */ 15147 public getVer_result(getVer_result other) { 15148 if (other.isSetSuccess()) { 15149 List<TCell> __this__success = new ArrayList<TCell>(); 15150 for (TCell other_element : other.success) { 15151 __this__success.add(new TCell(other_element)); 15152 } 15153 this.success = __this__success; 15154 } 15155 if (other.isSetIo()) { 15156 this.io = new IOError(other.io); 15157 } 15158 } 15159 15160 public getVer_result deepCopy() { 15161 return new getVer_result(this); 15162 } 15163 15164 @Override 15165 public void clear() { 15166 this.success = null; 15167 this.io = null; 15168 } 15169 15170 public int getSuccessSize() { 15171 return (this.success == null) ? 0 : this.success.size(); 15172 } 15173 15174 public java.util.Iterator<TCell> getSuccessIterator() { 15175 return (this.success == null) ? null : this.success.iterator(); 15176 } 15177 15178 public void addToSuccess(TCell elem) { 15179 if (this.success == null) { 15180 this.success = new ArrayList<TCell>(); 15181 } 15182 this.success.add(elem); 15183 } 15184 15185 public List<TCell> getSuccess() { 15186 return this.success; 15187 } 15188 15189 public getVer_result setSuccess(List<TCell> success) { 15190 this.success = success; 15191 return this; 15192 } 15193 15194 public void unsetSuccess() { 15195 this.success = null; 15196 } 15197 15198 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 15199 public boolean isSetSuccess() { 15200 return this.success != null; 15201 } 15202 15203 public void setSuccessIsSet(boolean value) { 15204 if (!value) { 15205 this.success = null; 15206 } 15207 } 15208 15209 public IOError getIo() { 15210 return this.io; 15211 } 15212 15213 public getVer_result setIo(IOError io) { 15214 this.io = io; 15215 return this; 15216 } 15217 15218 public void unsetIo() { 15219 this.io = null; 15220 } 15221 15222 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 15223 public boolean isSetIo() { 15224 return this.io != null; 15225 } 15226 15227 public void setIoIsSet(boolean value) { 15228 if (!value) { 15229 this.io = null; 15230 } 15231 } 15232 15233 public void setFieldValue(_Fields field, Object value) { 15234 switch (field) { 15235 case SUCCESS: 15236 if (value == null) { 15237 unsetSuccess(); 15238 } else { 15239 setSuccess((List<TCell>)value); 15240 } 15241 break; 15242 15243 case IO: 15244 if (value == null) { 15245 unsetIo(); 15246 } else { 15247 setIo((IOError)value); 15248 } 15249 break; 15250 15251 } 15252 } 15253 15254 public Object getFieldValue(_Fields field) { 15255 switch (field) { 15256 case SUCCESS: 15257 return getSuccess(); 15258 15259 case IO: 15260 return getIo(); 15261 15262 } 15263 throw new IllegalStateException(); 15264 } 15265 15266 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 15267 public boolean isSet(_Fields field) { 15268 if (field == null) { 15269 throw new IllegalArgumentException(); 15270 } 15271 15272 switch (field) { 15273 case SUCCESS: 15274 return isSetSuccess(); 15275 case IO: 15276 return isSetIo(); 15277 } 15278 throw new IllegalStateException(); 15279 } 15280 15281 @Override 15282 public boolean equals(Object that) { 15283 if (that == null) 15284 return false; 15285 if (that instanceof getVer_result) 15286 return this.equals((getVer_result)that); 15287 return false; 15288 } 15289 15290 public boolean equals(getVer_result that) { 15291 if (that == null) 15292 return false; 15293 15294 boolean this_present_success = true && this.isSetSuccess(); 15295 boolean that_present_success = true && that.isSetSuccess(); 15296 if (this_present_success || that_present_success) { 15297 if (!(this_present_success && that_present_success)) 15298 return false; 15299 if (!this.success.equals(that.success)) 15300 return false; 15301 } 15302 15303 boolean this_present_io = true && this.isSetIo(); 15304 boolean that_present_io = true && that.isSetIo(); 15305 if (this_present_io || that_present_io) { 15306 if (!(this_present_io && that_present_io)) 15307 return false; 15308 if (!this.io.equals(that.io)) 15309 return false; 15310 } 15311 15312 return true; 15313 } 15314 15315 @Override 15316 public int hashCode() { 15317 HashCodeBuilder builder = new HashCodeBuilder(); 15318 15319 boolean present_success = true && (isSetSuccess()); 15320 builder.append(present_success); 15321 if (present_success) 15322 builder.append(success); 15323 15324 boolean present_io = true && (isSetIo()); 15325 builder.append(present_io); 15326 if (present_io) 15327 builder.append(io); 15328 15329 return builder.toHashCode(); 15330 } 15331 15332 public int compareTo(getVer_result other) { 15333 if (!getClass().equals(other.getClass())) { 15334 return getClass().getName().compareTo(other.getClass().getName()); 15335 } 15336 15337 int lastComparison = 0; 15338 getVer_result typedOther = (getVer_result)other; 15339 15340 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 15341 if (lastComparison != 0) { 15342 return lastComparison; 15343 } 15344 if (isSetSuccess()) { 15345 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 15346 if (lastComparison != 0) { 15347 return lastComparison; 15348 } 15349 } 15350 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 15351 if (lastComparison != 0) { 15352 return lastComparison; 15353 } 15354 if (isSetIo()) { 15355 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 15356 if (lastComparison != 0) { 15357 return lastComparison; 15358 } 15359 } 15360 return 0; 15361 } 15362 15363 public _Fields fieldForId(int fieldId) { 15364 return _Fields.findByThriftId(fieldId); 15365 } 15366 15367 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 15368 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 15369 } 15370 15371 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 15372 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 15373 } 15374 15375 @Override 15376 public String toString() { 15377 StringBuilder sb = new StringBuilder("getVer_result("); 15378 boolean first = true; 15379 15380 sb.append("success:"); 15381 if (this.success == null) { 15382 sb.append("null"); 15383 } else { 15384 sb.append(this.success); 15385 } 15386 first = false; 15387 if (!first) sb.append(", "); 15388 sb.append("io:"); 15389 if (this.io == null) { 15390 sb.append("null"); 15391 } else { 15392 sb.append(this.io); 15393 } 15394 first = false; 15395 sb.append(")"); 15396 return sb.toString(); 15397 } 15398 15399 public void validate() throws org.apache.thrift.TException { 15400 // check for required fields 15401 } 15402 15403 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 15404 try { 15405 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 15406 } catch (org.apache.thrift.TException te) { 15407 throw new java.io.IOException(te); 15408 } 15409 } 15410 15411 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 15412 try { 15413 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 15414 } catch (org.apache.thrift.TException te) { 15415 throw new java.io.IOException(te); 15416 } 15417 } 15418 15419 private static class getVer_resultStandardSchemeFactory implements SchemeFactory { 15420 public getVer_resultStandardScheme getScheme() { 15421 return new getVer_resultStandardScheme(); 15422 } 15423 } 15424 15425 private static class getVer_resultStandardScheme extends StandardScheme<getVer_result> { 15426 15427 public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_result struct) throws org.apache.thrift.TException { 15428 org.apache.thrift.protocol.TField schemeField; 15429 iprot.readStructBegin(); 15430 while (true) 15431 { 15432 schemeField = iprot.readFieldBegin(); 15433 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 15434 break; 15435 } 15436 switch (schemeField.id) { 15437 case 0: // SUCCESS 15438 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 15439 { 15440 org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); 15441 struct.success = new ArrayList<TCell>(_list96.size); 15442 for (int _i97 = 0; _i97 < _list96.size; ++_i97) 15443 { 15444 TCell _elem98; // required 15445 _elem98 = new TCell(); 15446 _elem98.read(iprot); 15447 struct.success.add(_elem98); 15448 } 15449 iprot.readListEnd(); 15450 } 15451 struct.setSuccessIsSet(true); 15452 } else { 15453 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 15454 } 15455 break; 15456 case 1: // IO 15457 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 15458 struct.io = new IOError(); 15459 struct.io.read(iprot); 15460 struct.setIoIsSet(true); 15461 } else { 15462 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 15463 } 15464 break; 15465 default: 15466 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 15467 } 15468 iprot.readFieldEnd(); 15469 } 15470 iprot.readStructEnd(); 15471 15472 // check for required fields of primitive type, which can't be checked in the validate method 15473 struct.validate(); 15474 } 15475 15476 public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_result struct) throws org.apache.thrift.TException { 15477 struct.validate(); 15478 15479 oprot.writeStructBegin(STRUCT_DESC); 15480 if (struct.success != null) { 15481 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 15482 { 15483 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 15484 for (TCell _iter99 : struct.success) 15485 { 15486 _iter99.write(oprot); 15487 } 15488 oprot.writeListEnd(); 15489 } 15490 oprot.writeFieldEnd(); 15491 } 15492 if (struct.io != null) { 15493 oprot.writeFieldBegin(IO_FIELD_DESC); 15494 struct.io.write(oprot); 15495 oprot.writeFieldEnd(); 15496 } 15497 oprot.writeFieldStop(); 15498 oprot.writeStructEnd(); 15499 } 15500 15501 } 15502 15503 private static class getVer_resultTupleSchemeFactory implements SchemeFactory { 15504 public getVer_resultTupleScheme getScheme() { 15505 return new getVer_resultTupleScheme(); 15506 } 15507 } 15508 15509 private static class getVer_resultTupleScheme extends TupleScheme<getVer_result> { 15510 15511 @Override 15512 public void write(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException { 15513 TTupleProtocol oprot = (TTupleProtocol) prot; 15514 BitSet optionals = new BitSet(); 15515 if (struct.isSetSuccess()) { 15516 optionals.set(0); 15517 } 15518 if (struct.isSetIo()) { 15519 optionals.set(1); 15520 } 15521 oprot.writeBitSet(optionals, 2); 15522 if (struct.isSetSuccess()) { 15523 { 15524 oprot.writeI32(struct.success.size()); 15525 for (TCell _iter100 : struct.success) 15526 { 15527 _iter100.write(oprot); 15528 } 15529 } 15530 } 15531 if (struct.isSetIo()) { 15532 struct.io.write(oprot); 15533 } 15534 } 15535 15536 @Override 15537 public void read(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException { 15538 TTupleProtocol iprot = (TTupleProtocol) prot; 15539 BitSet incoming = iprot.readBitSet(2); 15540 if (incoming.get(0)) { 15541 { 15542 org.apache.thrift.protocol.TList _list101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 15543 struct.success = new ArrayList<TCell>(_list101.size); 15544 for (int _i102 = 0; _i102 < _list101.size; ++_i102) 15545 { 15546 TCell _elem103; // required 15547 _elem103 = new TCell(); 15548 _elem103.read(iprot); 15549 struct.success.add(_elem103); 15550 } 15551 } 15552 struct.setSuccessIsSet(true); 15553 } 15554 if (incoming.get(1)) { 15555 struct.io = new IOError(); 15556 struct.io.read(iprot); 15557 struct.setIoIsSet(true); 15558 } 15559 } 15560 } 15561 15562 } 15563 15564 public static class getVerTs_args implements org.apache.thrift.TBase<getVerTs_args, getVerTs_args._Fields>, java.io.Serializable, Cloneable { 15565 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_args"); 15566 15567 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 15568 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 15569 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 15570 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 15571 private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)5); 15572 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6); 15573 15574 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 15575 static { 15576 schemes.put(StandardScheme.class, new getVerTs_argsStandardSchemeFactory()); 15577 schemes.put(TupleScheme.class, new getVerTs_argsTupleSchemeFactory()); 15578 } 15579 15580 /** 15581 * name of table 15582 */ 15583 public ByteBuffer tableName; // required 15584 /** 15585 * row key 15586 */ 15587 public ByteBuffer row; // required 15588 /** 15589 * column name 15590 */ 15591 public ByteBuffer column; // required 15592 /** 15593 * timestamp 15594 */ 15595 public long timestamp; // required 15596 /** 15597 * number of versions to retrieve 15598 */ 15599 public int numVersions; // required 15600 /** 15601 * Get attributes 15602 */ 15603 public Map<ByteBuffer,ByteBuffer> attributes; // required 15604 15605 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 15606 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 15607 /** 15608 * name of table 15609 */ 15610 TABLE_NAME((short)1, "tableName"), 15611 /** 15612 * row key 15613 */ 15614 ROW((short)2, "row"), 15615 /** 15616 * column name 15617 */ 15618 COLUMN((short)3, "column"), 15619 /** 15620 * timestamp 15621 */ 15622 TIMESTAMP((short)4, "timestamp"), 15623 /** 15624 * number of versions to retrieve 15625 */ 15626 NUM_VERSIONS((short)5, "numVersions"), 15627 /** 15628 * Get attributes 15629 */ 15630 ATTRIBUTES((short)6, "attributes"); 15631 15632 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 15633 15634 static { 15635 for (_Fields field : EnumSet.allOf(_Fields.class)) { 15636 byName.put(field.getFieldName(), field); 15637 } 15638 } 15639 15640 /** 15641 * Find the _Fields constant that matches fieldId, or null if its not found. 15642 */ 15643 public static _Fields findByThriftId(int fieldId) { 15644 switch(fieldId) { 15645 case 1: // TABLE_NAME 15646 return TABLE_NAME; 15647 case 2: // ROW 15648 return ROW; 15649 case 3: // COLUMN 15650 return COLUMN; 15651 case 4: // TIMESTAMP 15652 return TIMESTAMP; 15653 case 5: // NUM_VERSIONS 15654 return NUM_VERSIONS; 15655 case 6: // ATTRIBUTES 15656 return ATTRIBUTES; 15657 default: 15658 return null; 15659 } 15660 } 15661 15662 /** 15663 * Find the _Fields constant that matches fieldId, throwing an exception 15664 * if it is not found. 15665 */ 15666 public static _Fields findByThriftIdOrThrow(int fieldId) { 15667 _Fields fields = findByThriftId(fieldId); 15668 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 15669 return fields; 15670 } 15671 15672 /** 15673 * Find the _Fields constant that matches name, or null if its not found. 15674 */ 15675 public static _Fields findByName(String name) { 15676 return byName.get(name); 15677 } 15678 15679 private final short _thriftId; 15680 private final String _fieldName; 15681 15682 _Fields(short thriftId, String fieldName) { 15683 _thriftId = thriftId; 15684 _fieldName = fieldName; 15685 } 15686 15687 public short getThriftFieldId() { 15688 return _thriftId; 15689 } 15690 15691 public String getFieldName() { 15692 return _fieldName; 15693 } 15694 } 15695 15696 // isset id assignments 15697 private static final int __TIMESTAMP_ISSET_ID = 0; 15698 private static final int __NUMVERSIONS_ISSET_ID = 1; 15699 private BitSet __isset_bit_vector = new BitSet(2); 15700 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 15701 static { 15702 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 15703 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 15704 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 15705 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 15706 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 15707 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 15708 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 15709 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 15710 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 15711 tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT, 15712 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 15713 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 15714 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 15715 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 15716 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 15717 metaDataMap = Collections.unmodifiableMap(tmpMap); 15718 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_args.class, metaDataMap); 15719 } 15720 15721 public getVerTs_args() { 15722 } 15723 15724 public getVerTs_args( 15725 ByteBuffer tableName, 15726 ByteBuffer row, 15727 ByteBuffer column, 15728 long timestamp, 15729 int numVersions, 15730 Map<ByteBuffer,ByteBuffer> attributes) 15731 { 15732 this(); 15733 this.tableName = tableName; 15734 this.row = row; 15735 this.column = column; 15736 this.timestamp = timestamp; 15737 setTimestampIsSet(true); 15738 this.numVersions = numVersions; 15739 setNumVersionsIsSet(true); 15740 this.attributes = attributes; 15741 } 15742 15743 /** 15744 * Performs a deep copy on <i>other</i>. 15745 */ 15746 public getVerTs_args(getVerTs_args other) { 15747 __isset_bit_vector.clear(); 15748 __isset_bit_vector.or(other.__isset_bit_vector); 15749 if (other.isSetTableName()) { 15750 this.tableName = other.tableName; 15751 } 15752 if (other.isSetRow()) { 15753 this.row = other.row; 15754 } 15755 if (other.isSetColumn()) { 15756 this.column = other.column; 15757 } 15758 this.timestamp = other.timestamp; 15759 this.numVersions = other.numVersions; 15760 if (other.isSetAttributes()) { 15761 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 15762 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 15763 15764 ByteBuffer other_element_key = other_element.getKey(); 15765 ByteBuffer other_element_value = other_element.getValue(); 15766 15767 ByteBuffer __this__attributes_copy_key = other_element_key; 15768 15769 ByteBuffer __this__attributes_copy_value = other_element_value; 15770 15771 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 15772 } 15773 this.attributes = __this__attributes; 15774 } 15775 } 15776 15777 public getVerTs_args deepCopy() { 15778 return new getVerTs_args(this); 15779 } 15780 15781 @Override 15782 public void clear() { 15783 this.tableName = null; 15784 this.row = null; 15785 this.column = null; 15786 setTimestampIsSet(false); 15787 this.timestamp = 0; 15788 setNumVersionsIsSet(false); 15789 this.numVersions = 0; 15790 this.attributes = null; 15791 } 15792 15793 /** 15794 * name of table 15795 */ 15796 public byte[] getTableName() { 15797 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 15798 return tableName == null ? null : tableName.array(); 15799 } 15800 15801 public ByteBuffer bufferForTableName() { 15802 return tableName; 15803 } 15804 15805 /** 15806 * name of table 15807 */ 15808 public getVerTs_args setTableName(byte[] tableName) { 15809 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 15810 return this; 15811 } 15812 15813 public getVerTs_args setTableName(ByteBuffer tableName) { 15814 this.tableName = tableName; 15815 return this; 15816 } 15817 15818 public void unsetTableName() { 15819 this.tableName = null; 15820 } 15821 15822 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 15823 public boolean isSetTableName() { 15824 return this.tableName != null; 15825 } 15826 15827 public void setTableNameIsSet(boolean value) { 15828 if (!value) { 15829 this.tableName = null; 15830 } 15831 } 15832 15833 /** 15834 * row key 15835 */ 15836 public byte[] getRow() { 15837 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 15838 return row == null ? null : row.array(); 15839 } 15840 15841 public ByteBuffer bufferForRow() { 15842 return row; 15843 } 15844 15845 /** 15846 * row key 15847 */ 15848 public getVerTs_args setRow(byte[] row) { 15849 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 15850 return this; 15851 } 15852 15853 public getVerTs_args setRow(ByteBuffer row) { 15854 this.row = row; 15855 return this; 15856 } 15857 15858 public void unsetRow() { 15859 this.row = null; 15860 } 15861 15862 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 15863 public boolean isSetRow() { 15864 return this.row != null; 15865 } 15866 15867 public void setRowIsSet(boolean value) { 15868 if (!value) { 15869 this.row = null; 15870 } 15871 } 15872 15873 /** 15874 * column name 15875 */ 15876 public byte[] getColumn() { 15877 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 15878 return column == null ? null : column.array(); 15879 } 15880 15881 public ByteBuffer bufferForColumn() { 15882 return column; 15883 } 15884 15885 /** 15886 * column name 15887 */ 15888 public getVerTs_args setColumn(byte[] column) { 15889 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 15890 return this; 15891 } 15892 15893 public getVerTs_args setColumn(ByteBuffer column) { 15894 this.column = column; 15895 return this; 15896 } 15897 15898 public void unsetColumn() { 15899 this.column = null; 15900 } 15901 15902 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 15903 public boolean isSetColumn() { 15904 return this.column != null; 15905 } 15906 15907 public void setColumnIsSet(boolean value) { 15908 if (!value) { 15909 this.column = null; 15910 } 15911 } 15912 15913 /** 15914 * timestamp 15915 */ 15916 public long getTimestamp() { 15917 return this.timestamp; 15918 } 15919 15920 /** 15921 * timestamp 15922 */ 15923 public getVerTs_args setTimestamp(long timestamp) { 15924 this.timestamp = timestamp; 15925 setTimestampIsSet(true); 15926 return this; 15927 } 15928 15929 public void unsetTimestamp() { 15930 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 15931 } 15932 15933 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 15934 public boolean isSetTimestamp() { 15935 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 15936 } 15937 15938 public void setTimestampIsSet(boolean value) { 15939 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 15940 } 15941 15942 /** 15943 * number of versions to retrieve 15944 */ 15945 public int getNumVersions() { 15946 return this.numVersions; 15947 } 15948 15949 /** 15950 * number of versions to retrieve 15951 */ 15952 public getVerTs_args setNumVersions(int numVersions) { 15953 this.numVersions = numVersions; 15954 setNumVersionsIsSet(true); 15955 return this; 15956 } 15957 15958 public void unsetNumVersions() { 15959 __isset_bit_vector.clear(__NUMVERSIONS_ISSET_ID); 15960 } 15961 15962 /** Returns true if field numVersions is set (has been assigned a value) and false otherwise */ 15963 public boolean isSetNumVersions() { 15964 return __isset_bit_vector.get(__NUMVERSIONS_ISSET_ID); 15965 } 15966 15967 public void setNumVersionsIsSet(boolean value) { 15968 __isset_bit_vector.set(__NUMVERSIONS_ISSET_ID, value); 15969 } 15970 15971 public int getAttributesSize() { 15972 return (this.attributes == null) ? 0 : this.attributes.size(); 15973 } 15974 15975 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 15976 if (this.attributes == null) { 15977 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 15978 } 15979 this.attributes.put(key, val); 15980 } 15981 15982 /** 15983 * Get attributes 15984 */ 15985 public Map<ByteBuffer,ByteBuffer> getAttributes() { 15986 return this.attributes; 15987 } 15988 15989 /** 15990 * Get attributes 15991 */ 15992 public getVerTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 15993 this.attributes = attributes; 15994 return this; 15995 } 15996 15997 public void unsetAttributes() { 15998 this.attributes = null; 15999 } 16000 16001 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 16002 public boolean isSetAttributes() { 16003 return this.attributes != null; 16004 } 16005 16006 public void setAttributesIsSet(boolean value) { 16007 if (!value) { 16008 this.attributes = null; 16009 } 16010 } 16011 16012 public void setFieldValue(_Fields field, Object value) { 16013 switch (field) { 16014 case TABLE_NAME: 16015 if (value == null) { 16016 unsetTableName(); 16017 } else { 16018 setTableName((ByteBuffer)value); 16019 } 16020 break; 16021 16022 case ROW: 16023 if (value == null) { 16024 unsetRow(); 16025 } else { 16026 setRow((ByteBuffer)value); 16027 } 16028 break; 16029 16030 case COLUMN: 16031 if (value == null) { 16032 unsetColumn(); 16033 } else { 16034 setColumn((ByteBuffer)value); 16035 } 16036 break; 16037 16038 case TIMESTAMP: 16039 if (value == null) { 16040 unsetTimestamp(); 16041 } else { 16042 setTimestamp((Long)value); 16043 } 16044 break; 16045 16046 case NUM_VERSIONS: 16047 if (value == null) { 16048 unsetNumVersions(); 16049 } else { 16050 setNumVersions((Integer)value); 16051 } 16052 break; 16053 16054 case ATTRIBUTES: 16055 if (value == null) { 16056 unsetAttributes(); 16057 } else { 16058 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 16059 } 16060 break; 16061 16062 } 16063 } 16064 16065 public Object getFieldValue(_Fields field) { 16066 switch (field) { 16067 case TABLE_NAME: 16068 return getTableName(); 16069 16070 case ROW: 16071 return getRow(); 16072 16073 case COLUMN: 16074 return getColumn(); 16075 16076 case TIMESTAMP: 16077 return Long.valueOf(getTimestamp()); 16078 16079 case NUM_VERSIONS: 16080 return Integer.valueOf(getNumVersions()); 16081 16082 case ATTRIBUTES: 16083 return getAttributes(); 16084 16085 } 16086 throw new IllegalStateException(); 16087 } 16088 16089 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 16090 public boolean isSet(_Fields field) { 16091 if (field == null) { 16092 throw new IllegalArgumentException(); 16093 } 16094 16095 switch (field) { 16096 case TABLE_NAME: 16097 return isSetTableName(); 16098 case ROW: 16099 return isSetRow(); 16100 case COLUMN: 16101 return isSetColumn(); 16102 case TIMESTAMP: 16103 return isSetTimestamp(); 16104 case NUM_VERSIONS: 16105 return isSetNumVersions(); 16106 case ATTRIBUTES: 16107 return isSetAttributes(); 16108 } 16109 throw new IllegalStateException(); 16110 } 16111 16112 @Override 16113 public boolean equals(Object that) { 16114 if (that == null) 16115 return false; 16116 if (that instanceof getVerTs_args) 16117 return this.equals((getVerTs_args)that); 16118 return false; 16119 } 16120 16121 public boolean equals(getVerTs_args that) { 16122 if (that == null) 16123 return false; 16124 16125 boolean this_present_tableName = true && this.isSetTableName(); 16126 boolean that_present_tableName = true && that.isSetTableName(); 16127 if (this_present_tableName || that_present_tableName) { 16128 if (!(this_present_tableName && that_present_tableName)) 16129 return false; 16130 if (!this.tableName.equals(that.tableName)) 16131 return false; 16132 } 16133 16134 boolean this_present_row = true && this.isSetRow(); 16135 boolean that_present_row = true && that.isSetRow(); 16136 if (this_present_row || that_present_row) { 16137 if (!(this_present_row && that_present_row)) 16138 return false; 16139 if (!this.row.equals(that.row)) 16140 return false; 16141 } 16142 16143 boolean this_present_column = true && this.isSetColumn(); 16144 boolean that_present_column = true && that.isSetColumn(); 16145 if (this_present_column || that_present_column) { 16146 if (!(this_present_column && that_present_column)) 16147 return false; 16148 if (!this.column.equals(that.column)) 16149 return false; 16150 } 16151 16152 boolean this_present_timestamp = true; 16153 boolean that_present_timestamp = true; 16154 if (this_present_timestamp || that_present_timestamp) { 16155 if (!(this_present_timestamp && that_present_timestamp)) 16156 return false; 16157 if (this.timestamp != that.timestamp) 16158 return false; 16159 } 16160 16161 boolean this_present_numVersions = true; 16162 boolean that_present_numVersions = true; 16163 if (this_present_numVersions || that_present_numVersions) { 16164 if (!(this_present_numVersions && that_present_numVersions)) 16165 return false; 16166 if (this.numVersions != that.numVersions) 16167 return false; 16168 } 16169 16170 boolean this_present_attributes = true && this.isSetAttributes(); 16171 boolean that_present_attributes = true && that.isSetAttributes(); 16172 if (this_present_attributes || that_present_attributes) { 16173 if (!(this_present_attributes && that_present_attributes)) 16174 return false; 16175 if (!this.attributes.equals(that.attributes)) 16176 return false; 16177 } 16178 16179 return true; 16180 } 16181 16182 @Override 16183 public int hashCode() { 16184 HashCodeBuilder builder = new HashCodeBuilder(); 16185 16186 boolean present_tableName = true && (isSetTableName()); 16187 builder.append(present_tableName); 16188 if (present_tableName) 16189 builder.append(tableName); 16190 16191 boolean present_row = true && (isSetRow()); 16192 builder.append(present_row); 16193 if (present_row) 16194 builder.append(row); 16195 16196 boolean present_column = true && (isSetColumn()); 16197 builder.append(present_column); 16198 if (present_column) 16199 builder.append(column); 16200 16201 boolean present_timestamp = true; 16202 builder.append(present_timestamp); 16203 if (present_timestamp) 16204 builder.append(timestamp); 16205 16206 boolean present_numVersions = true; 16207 builder.append(present_numVersions); 16208 if (present_numVersions) 16209 builder.append(numVersions); 16210 16211 boolean present_attributes = true && (isSetAttributes()); 16212 builder.append(present_attributes); 16213 if (present_attributes) 16214 builder.append(attributes); 16215 16216 return builder.toHashCode(); 16217 } 16218 16219 public int compareTo(getVerTs_args other) { 16220 if (!getClass().equals(other.getClass())) { 16221 return getClass().getName().compareTo(other.getClass().getName()); 16222 } 16223 16224 int lastComparison = 0; 16225 getVerTs_args typedOther = (getVerTs_args)other; 16226 16227 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 16228 if (lastComparison != 0) { 16229 return lastComparison; 16230 } 16231 if (isSetTableName()) { 16232 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 16233 if (lastComparison != 0) { 16234 return lastComparison; 16235 } 16236 } 16237 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 16238 if (lastComparison != 0) { 16239 return lastComparison; 16240 } 16241 if (isSetRow()) { 16242 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 16243 if (lastComparison != 0) { 16244 return lastComparison; 16245 } 16246 } 16247 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 16248 if (lastComparison != 0) { 16249 return lastComparison; 16250 } 16251 if (isSetColumn()) { 16252 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 16253 if (lastComparison != 0) { 16254 return lastComparison; 16255 } 16256 } 16257 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 16258 if (lastComparison != 0) { 16259 return lastComparison; 16260 } 16261 if (isSetTimestamp()) { 16262 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 16263 if (lastComparison != 0) { 16264 return lastComparison; 16265 } 16266 } 16267 lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions()); 16268 if (lastComparison != 0) { 16269 return lastComparison; 16270 } 16271 if (isSetNumVersions()) { 16272 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions); 16273 if (lastComparison != 0) { 16274 return lastComparison; 16275 } 16276 } 16277 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 16278 if (lastComparison != 0) { 16279 return lastComparison; 16280 } 16281 if (isSetAttributes()) { 16282 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 16283 if (lastComparison != 0) { 16284 return lastComparison; 16285 } 16286 } 16287 return 0; 16288 } 16289 16290 public _Fields fieldForId(int fieldId) { 16291 return _Fields.findByThriftId(fieldId); 16292 } 16293 16294 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 16295 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 16296 } 16297 16298 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 16299 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 16300 } 16301 16302 @Override 16303 public String toString() { 16304 StringBuilder sb = new StringBuilder("getVerTs_args("); 16305 boolean first = true; 16306 16307 sb.append("tableName:"); 16308 if (this.tableName == null) { 16309 sb.append("null"); 16310 } else { 16311 sb.append(this.tableName); 16312 } 16313 first = false; 16314 if (!first) sb.append(", "); 16315 sb.append("row:"); 16316 if (this.row == null) { 16317 sb.append("null"); 16318 } else { 16319 sb.append(this.row); 16320 } 16321 first = false; 16322 if (!first) sb.append(", "); 16323 sb.append("column:"); 16324 if (this.column == null) { 16325 sb.append("null"); 16326 } else { 16327 sb.append(this.column); 16328 } 16329 first = false; 16330 if (!first) sb.append(", "); 16331 sb.append("timestamp:"); 16332 sb.append(this.timestamp); 16333 first = false; 16334 if (!first) sb.append(", "); 16335 sb.append("numVersions:"); 16336 sb.append(this.numVersions); 16337 first = false; 16338 if (!first) sb.append(", "); 16339 sb.append("attributes:"); 16340 if (this.attributes == null) { 16341 sb.append("null"); 16342 } else { 16343 sb.append(this.attributes); 16344 } 16345 first = false; 16346 sb.append(")"); 16347 return sb.toString(); 16348 } 16349 16350 public void validate() throws org.apache.thrift.TException { 16351 // check for required fields 16352 } 16353 16354 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 16355 try { 16356 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 16357 } catch (org.apache.thrift.TException te) { 16358 throw new java.io.IOException(te); 16359 } 16360 } 16361 16362 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 16363 try { 16364 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 16365 __isset_bit_vector = new BitSet(1); 16366 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 16367 } catch (org.apache.thrift.TException te) { 16368 throw new java.io.IOException(te); 16369 } 16370 } 16371 16372 private static class getVerTs_argsStandardSchemeFactory implements SchemeFactory { 16373 public getVerTs_argsStandardScheme getScheme() { 16374 return new getVerTs_argsStandardScheme(); 16375 } 16376 } 16377 16378 private static class getVerTs_argsStandardScheme extends StandardScheme<getVerTs_args> { 16379 16380 public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_args struct) throws org.apache.thrift.TException { 16381 org.apache.thrift.protocol.TField schemeField; 16382 iprot.readStructBegin(); 16383 while (true) 16384 { 16385 schemeField = iprot.readFieldBegin(); 16386 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 16387 break; 16388 } 16389 switch (schemeField.id) { 16390 case 1: // TABLE_NAME 16391 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 16392 struct.tableName = iprot.readBinary(); 16393 struct.setTableNameIsSet(true); 16394 } else { 16395 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16396 } 16397 break; 16398 case 2: // ROW 16399 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 16400 struct.row = iprot.readBinary(); 16401 struct.setRowIsSet(true); 16402 } else { 16403 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16404 } 16405 break; 16406 case 3: // COLUMN 16407 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 16408 struct.column = iprot.readBinary(); 16409 struct.setColumnIsSet(true); 16410 } else { 16411 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16412 } 16413 break; 16414 case 4: // TIMESTAMP 16415 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 16416 struct.timestamp = iprot.readI64(); 16417 struct.setTimestampIsSet(true); 16418 } else { 16419 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16420 } 16421 break; 16422 case 5: // NUM_VERSIONS 16423 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 16424 struct.numVersions = iprot.readI32(); 16425 struct.setNumVersionsIsSet(true); 16426 } else { 16427 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16428 } 16429 break; 16430 case 6: // ATTRIBUTES 16431 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 16432 { 16433 org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); 16434 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map104.size); 16435 for (int _i105 = 0; _i105 < _map104.size; ++_i105) 16436 { 16437 ByteBuffer _key106; // required 16438 ByteBuffer _val107; // required 16439 _key106 = iprot.readBinary(); 16440 _val107 = iprot.readBinary(); 16441 struct.attributes.put(_key106, _val107); 16442 } 16443 iprot.readMapEnd(); 16444 } 16445 struct.setAttributesIsSet(true); 16446 } else { 16447 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16448 } 16449 break; 16450 default: 16451 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 16452 } 16453 iprot.readFieldEnd(); 16454 } 16455 iprot.readStructEnd(); 16456 16457 // check for required fields of primitive type, which can't be checked in the validate method 16458 struct.validate(); 16459 } 16460 16461 public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_args struct) throws org.apache.thrift.TException { 16462 struct.validate(); 16463 16464 oprot.writeStructBegin(STRUCT_DESC); 16465 if (struct.tableName != null) { 16466 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 16467 oprot.writeBinary(struct.tableName); 16468 oprot.writeFieldEnd(); 16469 } 16470 if (struct.row != null) { 16471 oprot.writeFieldBegin(ROW_FIELD_DESC); 16472 oprot.writeBinary(struct.row); 16473 oprot.writeFieldEnd(); 16474 } 16475 if (struct.column != null) { 16476 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 16477 oprot.writeBinary(struct.column); 16478 oprot.writeFieldEnd(); 16479 } 16480 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 16481 oprot.writeI64(struct.timestamp); 16482 oprot.writeFieldEnd(); 16483 oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC); 16484 oprot.writeI32(struct.numVersions); 16485 oprot.writeFieldEnd(); 16486 if (struct.attributes != null) { 16487 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 16488 { 16489 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 16490 for (Map.Entry<ByteBuffer, ByteBuffer> _iter108 : struct.attributes.entrySet()) 16491 { 16492 oprot.writeBinary(_iter108.getKey()); 16493 oprot.writeBinary(_iter108.getValue()); 16494 } 16495 oprot.writeMapEnd(); 16496 } 16497 oprot.writeFieldEnd(); 16498 } 16499 oprot.writeFieldStop(); 16500 oprot.writeStructEnd(); 16501 } 16502 16503 } 16504 16505 private static class getVerTs_argsTupleSchemeFactory implements SchemeFactory { 16506 public getVerTs_argsTupleScheme getScheme() { 16507 return new getVerTs_argsTupleScheme(); 16508 } 16509 } 16510 16511 private static class getVerTs_argsTupleScheme extends TupleScheme<getVerTs_args> { 16512 16513 @Override 16514 public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException { 16515 TTupleProtocol oprot = (TTupleProtocol) prot; 16516 BitSet optionals = new BitSet(); 16517 if (struct.isSetTableName()) { 16518 optionals.set(0); 16519 } 16520 if (struct.isSetRow()) { 16521 optionals.set(1); 16522 } 16523 if (struct.isSetColumn()) { 16524 optionals.set(2); 16525 } 16526 if (struct.isSetTimestamp()) { 16527 optionals.set(3); 16528 } 16529 if (struct.isSetNumVersions()) { 16530 optionals.set(4); 16531 } 16532 if (struct.isSetAttributes()) { 16533 optionals.set(5); 16534 } 16535 oprot.writeBitSet(optionals, 6); 16536 if (struct.isSetTableName()) { 16537 oprot.writeBinary(struct.tableName); 16538 } 16539 if (struct.isSetRow()) { 16540 oprot.writeBinary(struct.row); 16541 } 16542 if (struct.isSetColumn()) { 16543 oprot.writeBinary(struct.column); 16544 } 16545 if (struct.isSetTimestamp()) { 16546 oprot.writeI64(struct.timestamp); 16547 } 16548 if (struct.isSetNumVersions()) { 16549 oprot.writeI32(struct.numVersions); 16550 } 16551 if (struct.isSetAttributes()) { 16552 { 16553 oprot.writeI32(struct.attributes.size()); 16554 for (Map.Entry<ByteBuffer, ByteBuffer> _iter109 : struct.attributes.entrySet()) 16555 { 16556 oprot.writeBinary(_iter109.getKey()); 16557 oprot.writeBinary(_iter109.getValue()); 16558 } 16559 } 16560 } 16561 } 16562 16563 @Override 16564 public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException { 16565 TTupleProtocol iprot = (TTupleProtocol) prot; 16566 BitSet incoming = iprot.readBitSet(6); 16567 if (incoming.get(0)) { 16568 struct.tableName = iprot.readBinary(); 16569 struct.setTableNameIsSet(true); 16570 } 16571 if (incoming.get(1)) { 16572 struct.row = iprot.readBinary(); 16573 struct.setRowIsSet(true); 16574 } 16575 if (incoming.get(2)) { 16576 struct.column = iprot.readBinary(); 16577 struct.setColumnIsSet(true); 16578 } 16579 if (incoming.get(3)) { 16580 struct.timestamp = iprot.readI64(); 16581 struct.setTimestampIsSet(true); 16582 } 16583 if (incoming.get(4)) { 16584 struct.numVersions = iprot.readI32(); 16585 struct.setNumVersionsIsSet(true); 16586 } 16587 if (incoming.get(5)) { 16588 { 16589 org.apache.thrift.protocol.TMap _map110 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 16590 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map110.size); 16591 for (int _i111 = 0; _i111 < _map110.size; ++_i111) 16592 { 16593 ByteBuffer _key112; // required 16594 ByteBuffer _val113; // required 16595 _key112 = iprot.readBinary(); 16596 _val113 = iprot.readBinary(); 16597 struct.attributes.put(_key112, _val113); 16598 } 16599 } 16600 struct.setAttributesIsSet(true); 16601 } 16602 } 16603 } 16604 16605 } 16606 16607 public static class getVerTs_result implements org.apache.thrift.TBase<getVerTs_result, getVerTs_result._Fields>, java.io.Serializable, Cloneable { 16608 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_result"); 16609 16610 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 16611 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 16612 16613 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 16614 static { 16615 schemes.put(StandardScheme.class, new getVerTs_resultStandardSchemeFactory()); 16616 schemes.put(TupleScheme.class, new getVerTs_resultTupleSchemeFactory()); 16617 } 16618 16619 public List<TCell> success; // required 16620 public IOError io; // required 16621 16622 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 16623 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 16624 SUCCESS((short)0, "success"), 16625 IO((short)1, "io"); 16626 16627 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 16628 16629 static { 16630 for (_Fields field : EnumSet.allOf(_Fields.class)) { 16631 byName.put(field.getFieldName(), field); 16632 } 16633 } 16634 16635 /** 16636 * Find the _Fields constant that matches fieldId, or null if its not found. 16637 */ 16638 public static _Fields findByThriftId(int fieldId) { 16639 switch(fieldId) { 16640 case 0: // SUCCESS 16641 return SUCCESS; 16642 case 1: // IO 16643 return IO; 16644 default: 16645 return null; 16646 } 16647 } 16648 16649 /** 16650 * Find the _Fields constant that matches fieldId, throwing an exception 16651 * if it is not found. 16652 */ 16653 public static _Fields findByThriftIdOrThrow(int fieldId) { 16654 _Fields fields = findByThriftId(fieldId); 16655 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 16656 return fields; 16657 } 16658 16659 /** 16660 * Find the _Fields constant that matches name, or null if its not found. 16661 */ 16662 public static _Fields findByName(String name) { 16663 return byName.get(name); 16664 } 16665 16666 private final short _thriftId; 16667 private final String _fieldName; 16668 16669 _Fields(short thriftId, String fieldName) { 16670 _thriftId = thriftId; 16671 _fieldName = fieldName; 16672 } 16673 16674 public short getThriftFieldId() { 16675 return _thriftId; 16676 } 16677 16678 public String getFieldName() { 16679 return _fieldName; 16680 } 16681 } 16682 16683 // isset id assignments 16684 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 16685 static { 16686 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 16687 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 16688 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 16689 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class)))); 16690 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 16691 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 16692 metaDataMap = Collections.unmodifiableMap(tmpMap); 16693 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_result.class, metaDataMap); 16694 } 16695 16696 public getVerTs_result() { 16697 } 16698 16699 public getVerTs_result( 16700 List<TCell> success, 16701 IOError io) 16702 { 16703 this(); 16704 this.success = success; 16705 this.io = io; 16706 } 16707 16708 /** 16709 * Performs a deep copy on <i>other</i>. 16710 */ 16711 public getVerTs_result(getVerTs_result other) { 16712 if (other.isSetSuccess()) { 16713 List<TCell> __this__success = new ArrayList<TCell>(); 16714 for (TCell other_element : other.success) { 16715 __this__success.add(new TCell(other_element)); 16716 } 16717 this.success = __this__success; 16718 } 16719 if (other.isSetIo()) { 16720 this.io = new IOError(other.io); 16721 } 16722 } 16723 16724 public getVerTs_result deepCopy() { 16725 return new getVerTs_result(this); 16726 } 16727 16728 @Override 16729 public void clear() { 16730 this.success = null; 16731 this.io = null; 16732 } 16733 16734 public int getSuccessSize() { 16735 return (this.success == null) ? 0 : this.success.size(); 16736 } 16737 16738 public java.util.Iterator<TCell> getSuccessIterator() { 16739 return (this.success == null) ? null : this.success.iterator(); 16740 } 16741 16742 public void addToSuccess(TCell elem) { 16743 if (this.success == null) { 16744 this.success = new ArrayList<TCell>(); 16745 } 16746 this.success.add(elem); 16747 } 16748 16749 public List<TCell> getSuccess() { 16750 return this.success; 16751 } 16752 16753 public getVerTs_result setSuccess(List<TCell> success) { 16754 this.success = success; 16755 return this; 16756 } 16757 16758 public void unsetSuccess() { 16759 this.success = null; 16760 } 16761 16762 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 16763 public boolean isSetSuccess() { 16764 return this.success != null; 16765 } 16766 16767 public void setSuccessIsSet(boolean value) { 16768 if (!value) { 16769 this.success = null; 16770 } 16771 } 16772 16773 public IOError getIo() { 16774 return this.io; 16775 } 16776 16777 public getVerTs_result setIo(IOError io) { 16778 this.io = io; 16779 return this; 16780 } 16781 16782 public void unsetIo() { 16783 this.io = null; 16784 } 16785 16786 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 16787 public boolean isSetIo() { 16788 return this.io != null; 16789 } 16790 16791 public void setIoIsSet(boolean value) { 16792 if (!value) { 16793 this.io = null; 16794 } 16795 } 16796 16797 public void setFieldValue(_Fields field, Object value) { 16798 switch (field) { 16799 case SUCCESS: 16800 if (value == null) { 16801 unsetSuccess(); 16802 } else { 16803 setSuccess((List<TCell>)value); 16804 } 16805 break; 16806 16807 case IO: 16808 if (value == null) { 16809 unsetIo(); 16810 } else { 16811 setIo((IOError)value); 16812 } 16813 break; 16814 16815 } 16816 } 16817 16818 public Object getFieldValue(_Fields field) { 16819 switch (field) { 16820 case SUCCESS: 16821 return getSuccess(); 16822 16823 case IO: 16824 return getIo(); 16825 16826 } 16827 throw new IllegalStateException(); 16828 } 16829 16830 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 16831 public boolean isSet(_Fields field) { 16832 if (field == null) { 16833 throw new IllegalArgumentException(); 16834 } 16835 16836 switch (field) { 16837 case SUCCESS: 16838 return isSetSuccess(); 16839 case IO: 16840 return isSetIo(); 16841 } 16842 throw new IllegalStateException(); 16843 } 16844 16845 @Override 16846 public boolean equals(Object that) { 16847 if (that == null) 16848 return false; 16849 if (that instanceof getVerTs_result) 16850 return this.equals((getVerTs_result)that); 16851 return false; 16852 } 16853 16854 public boolean equals(getVerTs_result that) { 16855 if (that == null) 16856 return false; 16857 16858 boolean this_present_success = true && this.isSetSuccess(); 16859 boolean that_present_success = true && that.isSetSuccess(); 16860 if (this_present_success || that_present_success) { 16861 if (!(this_present_success && that_present_success)) 16862 return false; 16863 if (!this.success.equals(that.success)) 16864 return false; 16865 } 16866 16867 boolean this_present_io = true && this.isSetIo(); 16868 boolean that_present_io = true && that.isSetIo(); 16869 if (this_present_io || that_present_io) { 16870 if (!(this_present_io && that_present_io)) 16871 return false; 16872 if (!this.io.equals(that.io)) 16873 return false; 16874 } 16875 16876 return true; 16877 } 16878 16879 @Override 16880 public int hashCode() { 16881 HashCodeBuilder builder = new HashCodeBuilder(); 16882 16883 boolean present_success = true && (isSetSuccess()); 16884 builder.append(present_success); 16885 if (present_success) 16886 builder.append(success); 16887 16888 boolean present_io = true && (isSetIo()); 16889 builder.append(present_io); 16890 if (present_io) 16891 builder.append(io); 16892 16893 return builder.toHashCode(); 16894 } 16895 16896 public int compareTo(getVerTs_result other) { 16897 if (!getClass().equals(other.getClass())) { 16898 return getClass().getName().compareTo(other.getClass().getName()); 16899 } 16900 16901 int lastComparison = 0; 16902 getVerTs_result typedOther = (getVerTs_result)other; 16903 16904 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 16905 if (lastComparison != 0) { 16906 return lastComparison; 16907 } 16908 if (isSetSuccess()) { 16909 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 16910 if (lastComparison != 0) { 16911 return lastComparison; 16912 } 16913 } 16914 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 16915 if (lastComparison != 0) { 16916 return lastComparison; 16917 } 16918 if (isSetIo()) { 16919 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 16920 if (lastComparison != 0) { 16921 return lastComparison; 16922 } 16923 } 16924 return 0; 16925 } 16926 16927 public _Fields fieldForId(int fieldId) { 16928 return _Fields.findByThriftId(fieldId); 16929 } 16930 16931 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 16932 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 16933 } 16934 16935 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 16936 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 16937 } 16938 16939 @Override 16940 public String toString() { 16941 StringBuilder sb = new StringBuilder("getVerTs_result("); 16942 boolean first = true; 16943 16944 sb.append("success:"); 16945 if (this.success == null) { 16946 sb.append("null"); 16947 } else { 16948 sb.append(this.success); 16949 } 16950 first = false; 16951 if (!first) sb.append(", "); 16952 sb.append("io:"); 16953 if (this.io == null) { 16954 sb.append("null"); 16955 } else { 16956 sb.append(this.io); 16957 } 16958 first = false; 16959 sb.append(")"); 16960 return sb.toString(); 16961 } 16962 16963 public void validate() throws org.apache.thrift.TException { 16964 // check for required fields 16965 } 16966 16967 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 16968 try { 16969 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 16970 } catch (org.apache.thrift.TException te) { 16971 throw new java.io.IOException(te); 16972 } 16973 } 16974 16975 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 16976 try { 16977 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 16978 } catch (org.apache.thrift.TException te) { 16979 throw new java.io.IOException(te); 16980 } 16981 } 16982 16983 private static class getVerTs_resultStandardSchemeFactory implements SchemeFactory { 16984 public getVerTs_resultStandardScheme getScheme() { 16985 return new getVerTs_resultStandardScheme(); 16986 } 16987 } 16988 16989 private static class getVerTs_resultStandardScheme extends StandardScheme<getVerTs_result> { 16990 16991 public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_result struct) throws org.apache.thrift.TException { 16992 org.apache.thrift.protocol.TField schemeField; 16993 iprot.readStructBegin(); 16994 while (true) 16995 { 16996 schemeField = iprot.readFieldBegin(); 16997 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 16998 break; 16999 } 17000 switch (schemeField.id) { 17001 case 0: // SUCCESS 17002 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 17003 { 17004 org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); 17005 struct.success = new ArrayList<TCell>(_list114.size); 17006 for (int _i115 = 0; _i115 < _list114.size; ++_i115) 17007 { 17008 TCell _elem116; // required 17009 _elem116 = new TCell(); 17010 _elem116.read(iprot); 17011 struct.success.add(_elem116); 17012 } 17013 iprot.readListEnd(); 17014 } 17015 struct.setSuccessIsSet(true); 17016 } else { 17017 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17018 } 17019 break; 17020 case 1: // IO 17021 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 17022 struct.io = new IOError(); 17023 struct.io.read(iprot); 17024 struct.setIoIsSet(true); 17025 } else { 17026 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17027 } 17028 break; 17029 default: 17030 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17031 } 17032 iprot.readFieldEnd(); 17033 } 17034 iprot.readStructEnd(); 17035 17036 // check for required fields of primitive type, which can't be checked in the validate method 17037 struct.validate(); 17038 } 17039 17040 public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_result struct) throws org.apache.thrift.TException { 17041 struct.validate(); 17042 17043 oprot.writeStructBegin(STRUCT_DESC); 17044 if (struct.success != null) { 17045 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 17046 { 17047 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 17048 for (TCell _iter117 : struct.success) 17049 { 17050 _iter117.write(oprot); 17051 } 17052 oprot.writeListEnd(); 17053 } 17054 oprot.writeFieldEnd(); 17055 } 17056 if (struct.io != null) { 17057 oprot.writeFieldBegin(IO_FIELD_DESC); 17058 struct.io.write(oprot); 17059 oprot.writeFieldEnd(); 17060 } 17061 oprot.writeFieldStop(); 17062 oprot.writeStructEnd(); 17063 } 17064 17065 } 17066 17067 private static class getVerTs_resultTupleSchemeFactory implements SchemeFactory { 17068 public getVerTs_resultTupleScheme getScheme() { 17069 return new getVerTs_resultTupleScheme(); 17070 } 17071 } 17072 17073 private static class getVerTs_resultTupleScheme extends TupleScheme<getVerTs_result> { 17074 17075 @Override 17076 public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException { 17077 TTupleProtocol oprot = (TTupleProtocol) prot; 17078 BitSet optionals = new BitSet(); 17079 if (struct.isSetSuccess()) { 17080 optionals.set(0); 17081 } 17082 if (struct.isSetIo()) { 17083 optionals.set(1); 17084 } 17085 oprot.writeBitSet(optionals, 2); 17086 if (struct.isSetSuccess()) { 17087 { 17088 oprot.writeI32(struct.success.size()); 17089 for (TCell _iter118 : struct.success) 17090 { 17091 _iter118.write(oprot); 17092 } 17093 } 17094 } 17095 if (struct.isSetIo()) { 17096 struct.io.write(oprot); 17097 } 17098 } 17099 17100 @Override 17101 public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException { 17102 TTupleProtocol iprot = (TTupleProtocol) prot; 17103 BitSet incoming = iprot.readBitSet(2); 17104 if (incoming.get(0)) { 17105 { 17106 org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 17107 struct.success = new ArrayList<TCell>(_list119.size); 17108 for (int _i120 = 0; _i120 < _list119.size; ++_i120) 17109 { 17110 TCell _elem121; // required 17111 _elem121 = new TCell(); 17112 _elem121.read(iprot); 17113 struct.success.add(_elem121); 17114 } 17115 } 17116 struct.setSuccessIsSet(true); 17117 } 17118 if (incoming.get(1)) { 17119 struct.io = new IOError(); 17120 struct.io.read(iprot); 17121 struct.setIoIsSet(true); 17122 } 17123 } 17124 } 17125 17126 } 17127 17128 public static class getRow_args implements org.apache.thrift.TBase<getRow_args, getRow_args._Fields>, java.io.Serializable, Cloneable { 17129 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_args"); 17130 17131 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 17132 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 17133 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); 17134 17135 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 17136 static { 17137 schemes.put(StandardScheme.class, new getRow_argsStandardSchemeFactory()); 17138 schemes.put(TupleScheme.class, new getRow_argsTupleSchemeFactory()); 17139 } 17140 17141 /** 17142 * name of table 17143 */ 17144 public ByteBuffer tableName; // required 17145 /** 17146 * row key 17147 */ 17148 public ByteBuffer row; // required 17149 /** 17150 * Get attributes 17151 */ 17152 public Map<ByteBuffer,ByteBuffer> attributes; // required 17153 17154 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 17155 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 17156 /** 17157 * name of table 17158 */ 17159 TABLE_NAME((short)1, "tableName"), 17160 /** 17161 * row key 17162 */ 17163 ROW((short)2, "row"), 17164 /** 17165 * Get attributes 17166 */ 17167 ATTRIBUTES((short)3, "attributes"); 17168 17169 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 17170 17171 static { 17172 for (_Fields field : EnumSet.allOf(_Fields.class)) { 17173 byName.put(field.getFieldName(), field); 17174 } 17175 } 17176 17177 /** 17178 * Find the _Fields constant that matches fieldId, or null if its not found. 17179 */ 17180 public static _Fields findByThriftId(int fieldId) { 17181 switch(fieldId) { 17182 case 1: // TABLE_NAME 17183 return TABLE_NAME; 17184 case 2: // ROW 17185 return ROW; 17186 case 3: // ATTRIBUTES 17187 return ATTRIBUTES; 17188 default: 17189 return null; 17190 } 17191 } 17192 17193 /** 17194 * Find the _Fields constant that matches fieldId, throwing an exception 17195 * if it is not found. 17196 */ 17197 public static _Fields findByThriftIdOrThrow(int fieldId) { 17198 _Fields fields = findByThriftId(fieldId); 17199 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 17200 return fields; 17201 } 17202 17203 /** 17204 * Find the _Fields constant that matches name, or null if its not found. 17205 */ 17206 public static _Fields findByName(String name) { 17207 return byName.get(name); 17208 } 17209 17210 private final short _thriftId; 17211 private final String _fieldName; 17212 17213 _Fields(short thriftId, String fieldName) { 17214 _thriftId = thriftId; 17215 _fieldName = fieldName; 17216 } 17217 17218 public short getThriftFieldId() { 17219 return _thriftId; 17220 } 17221 17222 public String getFieldName() { 17223 return _fieldName; 17224 } 17225 } 17226 17227 // isset id assignments 17228 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 17229 static { 17230 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 17231 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 17232 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 17233 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 17234 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 17235 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 17236 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 17237 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 17238 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 17239 metaDataMap = Collections.unmodifiableMap(tmpMap); 17240 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_args.class, metaDataMap); 17241 } 17242 17243 public getRow_args() { 17244 } 17245 17246 public getRow_args( 17247 ByteBuffer tableName, 17248 ByteBuffer row, 17249 Map<ByteBuffer,ByteBuffer> attributes) 17250 { 17251 this(); 17252 this.tableName = tableName; 17253 this.row = row; 17254 this.attributes = attributes; 17255 } 17256 17257 /** 17258 * Performs a deep copy on <i>other</i>. 17259 */ 17260 public getRow_args(getRow_args other) { 17261 if (other.isSetTableName()) { 17262 this.tableName = other.tableName; 17263 } 17264 if (other.isSetRow()) { 17265 this.row = other.row; 17266 } 17267 if (other.isSetAttributes()) { 17268 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 17269 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 17270 17271 ByteBuffer other_element_key = other_element.getKey(); 17272 ByteBuffer other_element_value = other_element.getValue(); 17273 17274 ByteBuffer __this__attributes_copy_key = other_element_key; 17275 17276 ByteBuffer __this__attributes_copy_value = other_element_value; 17277 17278 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 17279 } 17280 this.attributes = __this__attributes; 17281 } 17282 } 17283 17284 public getRow_args deepCopy() { 17285 return new getRow_args(this); 17286 } 17287 17288 @Override 17289 public void clear() { 17290 this.tableName = null; 17291 this.row = null; 17292 this.attributes = null; 17293 } 17294 17295 /** 17296 * name of table 17297 */ 17298 public byte[] getTableName() { 17299 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 17300 return tableName == null ? null : tableName.array(); 17301 } 17302 17303 public ByteBuffer bufferForTableName() { 17304 return tableName; 17305 } 17306 17307 /** 17308 * name of table 17309 */ 17310 public getRow_args setTableName(byte[] tableName) { 17311 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 17312 return this; 17313 } 17314 17315 public getRow_args setTableName(ByteBuffer tableName) { 17316 this.tableName = tableName; 17317 return this; 17318 } 17319 17320 public void unsetTableName() { 17321 this.tableName = null; 17322 } 17323 17324 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 17325 public boolean isSetTableName() { 17326 return this.tableName != null; 17327 } 17328 17329 public void setTableNameIsSet(boolean value) { 17330 if (!value) { 17331 this.tableName = null; 17332 } 17333 } 17334 17335 /** 17336 * row key 17337 */ 17338 public byte[] getRow() { 17339 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 17340 return row == null ? null : row.array(); 17341 } 17342 17343 public ByteBuffer bufferForRow() { 17344 return row; 17345 } 17346 17347 /** 17348 * row key 17349 */ 17350 public getRow_args setRow(byte[] row) { 17351 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 17352 return this; 17353 } 17354 17355 public getRow_args setRow(ByteBuffer row) { 17356 this.row = row; 17357 return this; 17358 } 17359 17360 public void unsetRow() { 17361 this.row = null; 17362 } 17363 17364 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 17365 public boolean isSetRow() { 17366 return this.row != null; 17367 } 17368 17369 public void setRowIsSet(boolean value) { 17370 if (!value) { 17371 this.row = null; 17372 } 17373 } 17374 17375 public int getAttributesSize() { 17376 return (this.attributes == null) ? 0 : this.attributes.size(); 17377 } 17378 17379 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 17380 if (this.attributes == null) { 17381 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 17382 } 17383 this.attributes.put(key, val); 17384 } 17385 17386 /** 17387 * Get attributes 17388 */ 17389 public Map<ByteBuffer,ByteBuffer> getAttributes() { 17390 return this.attributes; 17391 } 17392 17393 /** 17394 * Get attributes 17395 */ 17396 public getRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 17397 this.attributes = attributes; 17398 return this; 17399 } 17400 17401 public void unsetAttributes() { 17402 this.attributes = null; 17403 } 17404 17405 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 17406 public boolean isSetAttributes() { 17407 return this.attributes != null; 17408 } 17409 17410 public void setAttributesIsSet(boolean value) { 17411 if (!value) { 17412 this.attributes = null; 17413 } 17414 } 17415 17416 public void setFieldValue(_Fields field, Object value) { 17417 switch (field) { 17418 case TABLE_NAME: 17419 if (value == null) { 17420 unsetTableName(); 17421 } else { 17422 setTableName((ByteBuffer)value); 17423 } 17424 break; 17425 17426 case ROW: 17427 if (value == null) { 17428 unsetRow(); 17429 } else { 17430 setRow((ByteBuffer)value); 17431 } 17432 break; 17433 17434 case ATTRIBUTES: 17435 if (value == null) { 17436 unsetAttributes(); 17437 } else { 17438 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 17439 } 17440 break; 17441 17442 } 17443 } 17444 17445 public Object getFieldValue(_Fields field) { 17446 switch (field) { 17447 case TABLE_NAME: 17448 return getTableName(); 17449 17450 case ROW: 17451 return getRow(); 17452 17453 case ATTRIBUTES: 17454 return getAttributes(); 17455 17456 } 17457 throw new IllegalStateException(); 17458 } 17459 17460 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 17461 public boolean isSet(_Fields field) { 17462 if (field == null) { 17463 throw new IllegalArgumentException(); 17464 } 17465 17466 switch (field) { 17467 case TABLE_NAME: 17468 return isSetTableName(); 17469 case ROW: 17470 return isSetRow(); 17471 case ATTRIBUTES: 17472 return isSetAttributes(); 17473 } 17474 throw new IllegalStateException(); 17475 } 17476 17477 @Override 17478 public boolean equals(Object that) { 17479 if (that == null) 17480 return false; 17481 if (that instanceof getRow_args) 17482 return this.equals((getRow_args)that); 17483 return false; 17484 } 17485 17486 public boolean equals(getRow_args that) { 17487 if (that == null) 17488 return false; 17489 17490 boolean this_present_tableName = true && this.isSetTableName(); 17491 boolean that_present_tableName = true && that.isSetTableName(); 17492 if (this_present_tableName || that_present_tableName) { 17493 if (!(this_present_tableName && that_present_tableName)) 17494 return false; 17495 if (!this.tableName.equals(that.tableName)) 17496 return false; 17497 } 17498 17499 boolean this_present_row = true && this.isSetRow(); 17500 boolean that_present_row = true && that.isSetRow(); 17501 if (this_present_row || that_present_row) { 17502 if (!(this_present_row && that_present_row)) 17503 return false; 17504 if (!this.row.equals(that.row)) 17505 return false; 17506 } 17507 17508 boolean this_present_attributes = true && this.isSetAttributes(); 17509 boolean that_present_attributes = true && that.isSetAttributes(); 17510 if (this_present_attributes || that_present_attributes) { 17511 if (!(this_present_attributes && that_present_attributes)) 17512 return false; 17513 if (!this.attributes.equals(that.attributes)) 17514 return false; 17515 } 17516 17517 return true; 17518 } 17519 17520 @Override 17521 public int hashCode() { 17522 HashCodeBuilder builder = new HashCodeBuilder(); 17523 17524 boolean present_tableName = true && (isSetTableName()); 17525 builder.append(present_tableName); 17526 if (present_tableName) 17527 builder.append(tableName); 17528 17529 boolean present_row = true && (isSetRow()); 17530 builder.append(present_row); 17531 if (present_row) 17532 builder.append(row); 17533 17534 boolean present_attributes = true && (isSetAttributes()); 17535 builder.append(present_attributes); 17536 if (present_attributes) 17537 builder.append(attributes); 17538 17539 return builder.toHashCode(); 17540 } 17541 17542 public int compareTo(getRow_args other) { 17543 if (!getClass().equals(other.getClass())) { 17544 return getClass().getName().compareTo(other.getClass().getName()); 17545 } 17546 17547 int lastComparison = 0; 17548 getRow_args typedOther = (getRow_args)other; 17549 17550 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 17551 if (lastComparison != 0) { 17552 return lastComparison; 17553 } 17554 if (isSetTableName()) { 17555 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 17556 if (lastComparison != 0) { 17557 return lastComparison; 17558 } 17559 } 17560 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 17561 if (lastComparison != 0) { 17562 return lastComparison; 17563 } 17564 if (isSetRow()) { 17565 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 17566 if (lastComparison != 0) { 17567 return lastComparison; 17568 } 17569 } 17570 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 17571 if (lastComparison != 0) { 17572 return lastComparison; 17573 } 17574 if (isSetAttributes()) { 17575 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 17576 if (lastComparison != 0) { 17577 return lastComparison; 17578 } 17579 } 17580 return 0; 17581 } 17582 17583 public _Fields fieldForId(int fieldId) { 17584 return _Fields.findByThriftId(fieldId); 17585 } 17586 17587 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 17588 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 17589 } 17590 17591 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 17592 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 17593 } 17594 17595 @Override 17596 public String toString() { 17597 StringBuilder sb = new StringBuilder("getRow_args("); 17598 boolean first = true; 17599 17600 sb.append("tableName:"); 17601 if (this.tableName == null) { 17602 sb.append("null"); 17603 } else { 17604 sb.append(this.tableName); 17605 } 17606 first = false; 17607 if (!first) sb.append(", "); 17608 sb.append("row:"); 17609 if (this.row == null) { 17610 sb.append("null"); 17611 } else { 17612 sb.append(this.row); 17613 } 17614 first = false; 17615 if (!first) sb.append(", "); 17616 sb.append("attributes:"); 17617 if (this.attributes == null) { 17618 sb.append("null"); 17619 } else { 17620 sb.append(this.attributes); 17621 } 17622 first = false; 17623 sb.append(")"); 17624 return sb.toString(); 17625 } 17626 17627 public void validate() throws org.apache.thrift.TException { 17628 // check for required fields 17629 } 17630 17631 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 17632 try { 17633 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 17634 } catch (org.apache.thrift.TException te) { 17635 throw new java.io.IOException(te); 17636 } 17637 } 17638 17639 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 17640 try { 17641 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 17642 } catch (org.apache.thrift.TException te) { 17643 throw new java.io.IOException(te); 17644 } 17645 } 17646 17647 private static class getRow_argsStandardSchemeFactory implements SchemeFactory { 17648 public getRow_argsStandardScheme getScheme() { 17649 return new getRow_argsStandardScheme(); 17650 } 17651 } 17652 17653 private static class getRow_argsStandardScheme extends StandardScheme<getRow_args> { 17654 17655 public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_args struct) throws org.apache.thrift.TException { 17656 org.apache.thrift.protocol.TField schemeField; 17657 iprot.readStructBegin(); 17658 while (true) 17659 { 17660 schemeField = iprot.readFieldBegin(); 17661 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 17662 break; 17663 } 17664 switch (schemeField.id) { 17665 case 1: // TABLE_NAME 17666 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 17667 struct.tableName = iprot.readBinary(); 17668 struct.setTableNameIsSet(true); 17669 } else { 17670 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17671 } 17672 break; 17673 case 2: // ROW 17674 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 17675 struct.row = iprot.readBinary(); 17676 struct.setRowIsSet(true); 17677 } else { 17678 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17679 } 17680 break; 17681 case 3: // ATTRIBUTES 17682 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 17683 { 17684 org.apache.thrift.protocol.TMap _map122 = iprot.readMapBegin(); 17685 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map122.size); 17686 for (int _i123 = 0; _i123 < _map122.size; ++_i123) 17687 { 17688 ByteBuffer _key124; // required 17689 ByteBuffer _val125; // required 17690 _key124 = iprot.readBinary(); 17691 _val125 = iprot.readBinary(); 17692 struct.attributes.put(_key124, _val125); 17693 } 17694 iprot.readMapEnd(); 17695 } 17696 struct.setAttributesIsSet(true); 17697 } else { 17698 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17699 } 17700 break; 17701 default: 17702 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 17703 } 17704 iprot.readFieldEnd(); 17705 } 17706 iprot.readStructEnd(); 17707 17708 // check for required fields of primitive type, which can't be checked in the validate method 17709 struct.validate(); 17710 } 17711 17712 public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_args struct) throws org.apache.thrift.TException { 17713 struct.validate(); 17714 17715 oprot.writeStructBegin(STRUCT_DESC); 17716 if (struct.tableName != null) { 17717 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 17718 oprot.writeBinary(struct.tableName); 17719 oprot.writeFieldEnd(); 17720 } 17721 if (struct.row != null) { 17722 oprot.writeFieldBegin(ROW_FIELD_DESC); 17723 oprot.writeBinary(struct.row); 17724 oprot.writeFieldEnd(); 17725 } 17726 if (struct.attributes != null) { 17727 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 17728 { 17729 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 17730 for (Map.Entry<ByteBuffer, ByteBuffer> _iter126 : struct.attributes.entrySet()) 17731 { 17732 oprot.writeBinary(_iter126.getKey()); 17733 oprot.writeBinary(_iter126.getValue()); 17734 } 17735 oprot.writeMapEnd(); 17736 } 17737 oprot.writeFieldEnd(); 17738 } 17739 oprot.writeFieldStop(); 17740 oprot.writeStructEnd(); 17741 } 17742 17743 } 17744 17745 private static class getRow_argsTupleSchemeFactory implements SchemeFactory { 17746 public getRow_argsTupleScheme getScheme() { 17747 return new getRow_argsTupleScheme(); 17748 } 17749 } 17750 17751 private static class getRow_argsTupleScheme extends TupleScheme<getRow_args> { 17752 17753 @Override 17754 public void write(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException { 17755 TTupleProtocol oprot = (TTupleProtocol) prot; 17756 BitSet optionals = new BitSet(); 17757 if (struct.isSetTableName()) { 17758 optionals.set(0); 17759 } 17760 if (struct.isSetRow()) { 17761 optionals.set(1); 17762 } 17763 if (struct.isSetAttributes()) { 17764 optionals.set(2); 17765 } 17766 oprot.writeBitSet(optionals, 3); 17767 if (struct.isSetTableName()) { 17768 oprot.writeBinary(struct.tableName); 17769 } 17770 if (struct.isSetRow()) { 17771 oprot.writeBinary(struct.row); 17772 } 17773 if (struct.isSetAttributes()) { 17774 { 17775 oprot.writeI32(struct.attributes.size()); 17776 for (Map.Entry<ByteBuffer, ByteBuffer> _iter127 : struct.attributes.entrySet()) 17777 { 17778 oprot.writeBinary(_iter127.getKey()); 17779 oprot.writeBinary(_iter127.getValue()); 17780 } 17781 } 17782 } 17783 } 17784 17785 @Override 17786 public void read(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException { 17787 TTupleProtocol iprot = (TTupleProtocol) prot; 17788 BitSet incoming = iprot.readBitSet(3); 17789 if (incoming.get(0)) { 17790 struct.tableName = iprot.readBinary(); 17791 struct.setTableNameIsSet(true); 17792 } 17793 if (incoming.get(1)) { 17794 struct.row = iprot.readBinary(); 17795 struct.setRowIsSet(true); 17796 } 17797 if (incoming.get(2)) { 17798 { 17799 org.apache.thrift.protocol.TMap _map128 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 17800 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map128.size); 17801 for (int _i129 = 0; _i129 < _map128.size; ++_i129) 17802 { 17803 ByteBuffer _key130; // required 17804 ByteBuffer _val131; // required 17805 _key130 = iprot.readBinary(); 17806 _val131 = iprot.readBinary(); 17807 struct.attributes.put(_key130, _val131); 17808 } 17809 } 17810 struct.setAttributesIsSet(true); 17811 } 17812 } 17813 } 17814 17815 } 17816 17817 public static class getRow_result implements org.apache.thrift.TBase<getRow_result, getRow_result._Fields>, java.io.Serializable, Cloneable { 17818 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_result"); 17819 17820 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 17821 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 17822 17823 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 17824 static { 17825 schemes.put(StandardScheme.class, new getRow_resultStandardSchemeFactory()); 17826 schemes.put(TupleScheme.class, new getRow_resultTupleSchemeFactory()); 17827 } 17828 17829 public List<TRowResult> success; // required 17830 public IOError io; // required 17831 17832 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 17833 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 17834 SUCCESS((short)0, "success"), 17835 IO((short)1, "io"); 17836 17837 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 17838 17839 static { 17840 for (_Fields field : EnumSet.allOf(_Fields.class)) { 17841 byName.put(field.getFieldName(), field); 17842 } 17843 } 17844 17845 /** 17846 * Find the _Fields constant that matches fieldId, or null if its not found. 17847 */ 17848 public static _Fields findByThriftId(int fieldId) { 17849 switch(fieldId) { 17850 case 0: // SUCCESS 17851 return SUCCESS; 17852 case 1: // IO 17853 return IO; 17854 default: 17855 return null; 17856 } 17857 } 17858 17859 /** 17860 * Find the _Fields constant that matches fieldId, throwing an exception 17861 * if it is not found. 17862 */ 17863 public static _Fields findByThriftIdOrThrow(int fieldId) { 17864 _Fields fields = findByThriftId(fieldId); 17865 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 17866 return fields; 17867 } 17868 17869 /** 17870 * Find the _Fields constant that matches name, or null if its not found. 17871 */ 17872 public static _Fields findByName(String name) { 17873 return byName.get(name); 17874 } 17875 17876 private final short _thriftId; 17877 private final String _fieldName; 17878 17879 _Fields(short thriftId, String fieldName) { 17880 _thriftId = thriftId; 17881 _fieldName = fieldName; 17882 } 17883 17884 public short getThriftFieldId() { 17885 return _thriftId; 17886 } 17887 17888 public String getFieldName() { 17889 return _fieldName; 17890 } 17891 } 17892 17893 // isset id assignments 17894 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 17895 static { 17896 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 17897 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 17898 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 17899 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 17900 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 17901 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 17902 metaDataMap = Collections.unmodifiableMap(tmpMap); 17903 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_result.class, metaDataMap); 17904 } 17905 17906 public getRow_result() { 17907 } 17908 17909 public getRow_result( 17910 List<TRowResult> success, 17911 IOError io) 17912 { 17913 this(); 17914 this.success = success; 17915 this.io = io; 17916 } 17917 17918 /** 17919 * Performs a deep copy on <i>other</i>. 17920 */ 17921 public getRow_result(getRow_result other) { 17922 if (other.isSetSuccess()) { 17923 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 17924 for (TRowResult other_element : other.success) { 17925 __this__success.add(new TRowResult(other_element)); 17926 } 17927 this.success = __this__success; 17928 } 17929 if (other.isSetIo()) { 17930 this.io = new IOError(other.io); 17931 } 17932 } 17933 17934 public getRow_result deepCopy() { 17935 return new getRow_result(this); 17936 } 17937 17938 @Override 17939 public void clear() { 17940 this.success = null; 17941 this.io = null; 17942 } 17943 17944 public int getSuccessSize() { 17945 return (this.success == null) ? 0 : this.success.size(); 17946 } 17947 17948 public java.util.Iterator<TRowResult> getSuccessIterator() { 17949 return (this.success == null) ? null : this.success.iterator(); 17950 } 17951 17952 public void addToSuccess(TRowResult elem) { 17953 if (this.success == null) { 17954 this.success = new ArrayList<TRowResult>(); 17955 } 17956 this.success.add(elem); 17957 } 17958 17959 public List<TRowResult> getSuccess() { 17960 return this.success; 17961 } 17962 17963 public getRow_result setSuccess(List<TRowResult> success) { 17964 this.success = success; 17965 return this; 17966 } 17967 17968 public void unsetSuccess() { 17969 this.success = null; 17970 } 17971 17972 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 17973 public boolean isSetSuccess() { 17974 return this.success != null; 17975 } 17976 17977 public void setSuccessIsSet(boolean value) { 17978 if (!value) { 17979 this.success = null; 17980 } 17981 } 17982 17983 public IOError getIo() { 17984 return this.io; 17985 } 17986 17987 public getRow_result setIo(IOError io) { 17988 this.io = io; 17989 return this; 17990 } 17991 17992 public void unsetIo() { 17993 this.io = null; 17994 } 17995 17996 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 17997 public boolean isSetIo() { 17998 return this.io != null; 17999 } 18000 18001 public void setIoIsSet(boolean value) { 18002 if (!value) { 18003 this.io = null; 18004 } 18005 } 18006 18007 public void setFieldValue(_Fields field, Object value) { 18008 switch (field) { 18009 case SUCCESS: 18010 if (value == null) { 18011 unsetSuccess(); 18012 } else { 18013 setSuccess((List<TRowResult>)value); 18014 } 18015 break; 18016 18017 case IO: 18018 if (value == null) { 18019 unsetIo(); 18020 } else { 18021 setIo((IOError)value); 18022 } 18023 break; 18024 18025 } 18026 } 18027 18028 public Object getFieldValue(_Fields field) { 18029 switch (field) { 18030 case SUCCESS: 18031 return getSuccess(); 18032 18033 case IO: 18034 return getIo(); 18035 18036 } 18037 throw new IllegalStateException(); 18038 } 18039 18040 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 18041 public boolean isSet(_Fields field) { 18042 if (field == null) { 18043 throw new IllegalArgumentException(); 18044 } 18045 18046 switch (field) { 18047 case SUCCESS: 18048 return isSetSuccess(); 18049 case IO: 18050 return isSetIo(); 18051 } 18052 throw new IllegalStateException(); 18053 } 18054 18055 @Override 18056 public boolean equals(Object that) { 18057 if (that == null) 18058 return false; 18059 if (that instanceof getRow_result) 18060 return this.equals((getRow_result)that); 18061 return false; 18062 } 18063 18064 public boolean equals(getRow_result that) { 18065 if (that == null) 18066 return false; 18067 18068 boolean this_present_success = true && this.isSetSuccess(); 18069 boolean that_present_success = true && that.isSetSuccess(); 18070 if (this_present_success || that_present_success) { 18071 if (!(this_present_success && that_present_success)) 18072 return false; 18073 if (!this.success.equals(that.success)) 18074 return false; 18075 } 18076 18077 boolean this_present_io = true && this.isSetIo(); 18078 boolean that_present_io = true && that.isSetIo(); 18079 if (this_present_io || that_present_io) { 18080 if (!(this_present_io && that_present_io)) 18081 return false; 18082 if (!this.io.equals(that.io)) 18083 return false; 18084 } 18085 18086 return true; 18087 } 18088 18089 @Override 18090 public int hashCode() { 18091 HashCodeBuilder builder = new HashCodeBuilder(); 18092 18093 boolean present_success = true && (isSetSuccess()); 18094 builder.append(present_success); 18095 if (present_success) 18096 builder.append(success); 18097 18098 boolean present_io = true && (isSetIo()); 18099 builder.append(present_io); 18100 if (present_io) 18101 builder.append(io); 18102 18103 return builder.toHashCode(); 18104 } 18105 18106 public int compareTo(getRow_result other) { 18107 if (!getClass().equals(other.getClass())) { 18108 return getClass().getName().compareTo(other.getClass().getName()); 18109 } 18110 18111 int lastComparison = 0; 18112 getRow_result typedOther = (getRow_result)other; 18113 18114 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 18115 if (lastComparison != 0) { 18116 return lastComparison; 18117 } 18118 if (isSetSuccess()) { 18119 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 18120 if (lastComparison != 0) { 18121 return lastComparison; 18122 } 18123 } 18124 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 18125 if (lastComparison != 0) { 18126 return lastComparison; 18127 } 18128 if (isSetIo()) { 18129 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 18130 if (lastComparison != 0) { 18131 return lastComparison; 18132 } 18133 } 18134 return 0; 18135 } 18136 18137 public _Fields fieldForId(int fieldId) { 18138 return _Fields.findByThriftId(fieldId); 18139 } 18140 18141 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 18142 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 18143 } 18144 18145 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 18146 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 18147 } 18148 18149 @Override 18150 public String toString() { 18151 StringBuilder sb = new StringBuilder("getRow_result("); 18152 boolean first = true; 18153 18154 sb.append("success:"); 18155 if (this.success == null) { 18156 sb.append("null"); 18157 } else { 18158 sb.append(this.success); 18159 } 18160 first = false; 18161 if (!first) sb.append(", "); 18162 sb.append("io:"); 18163 if (this.io == null) { 18164 sb.append("null"); 18165 } else { 18166 sb.append(this.io); 18167 } 18168 first = false; 18169 sb.append(")"); 18170 return sb.toString(); 18171 } 18172 18173 public void validate() throws org.apache.thrift.TException { 18174 // check for required fields 18175 } 18176 18177 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 18178 try { 18179 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 18180 } catch (org.apache.thrift.TException te) { 18181 throw new java.io.IOException(te); 18182 } 18183 } 18184 18185 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 18186 try { 18187 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 18188 } catch (org.apache.thrift.TException te) { 18189 throw new java.io.IOException(te); 18190 } 18191 } 18192 18193 private static class getRow_resultStandardSchemeFactory implements SchemeFactory { 18194 public getRow_resultStandardScheme getScheme() { 18195 return new getRow_resultStandardScheme(); 18196 } 18197 } 18198 18199 private static class getRow_resultStandardScheme extends StandardScheme<getRow_result> { 18200 18201 public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_result struct) throws org.apache.thrift.TException { 18202 org.apache.thrift.protocol.TField schemeField; 18203 iprot.readStructBegin(); 18204 while (true) 18205 { 18206 schemeField = iprot.readFieldBegin(); 18207 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 18208 break; 18209 } 18210 switch (schemeField.id) { 18211 case 0: // SUCCESS 18212 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 18213 { 18214 org.apache.thrift.protocol.TList _list132 = iprot.readListBegin(); 18215 struct.success = new ArrayList<TRowResult>(_list132.size); 18216 for (int _i133 = 0; _i133 < _list132.size; ++_i133) 18217 { 18218 TRowResult _elem134; // required 18219 _elem134 = new TRowResult(); 18220 _elem134.read(iprot); 18221 struct.success.add(_elem134); 18222 } 18223 iprot.readListEnd(); 18224 } 18225 struct.setSuccessIsSet(true); 18226 } else { 18227 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 18228 } 18229 break; 18230 case 1: // IO 18231 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 18232 struct.io = new IOError(); 18233 struct.io.read(iprot); 18234 struct.setIoIsSet(true); 18235 } else { 18236 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 18237 } 18238 break; 18239 default: 18240 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 18241 } 18242 iprot.readFieldEnd(); 18243 } 18244 iprot.readStructEnd(); 18245 18246 // check for required fields of primitive type, which can't be checked in the validate method 18247 struct.validate(); 18248 } 18249 18250 public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_result struct) throws org.apache.thrift.TException { 18251 struct.validate(); 18252 18253 oprot.writeStructBegin(STRUCT_DESC); 18254 if (struct.success != null) { 18255 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 18256 { 18257 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 18258 for (TRowResult _iter135 : struct.success) 18259 { 18260 _iter135.write(oprot); 18261 } 18262 oprot.writeListEnd(); 18263 } 18264 oprot.writeFieldEnd(); 18265 } 18266 if (struct.io != null) { 18267 oprot.writeFieldBegin(IO_FIELD_DESC); 18268 struct.io.write(oprot); 18269 oprot.writeFieldEnd(); 18270 } 18271 oprot.writeFieldStop(); 18272 oprot.writeStructEnd(); 18273 } 18274 18275 } 18276 18277 private static class getRow_resultTupleSchemeFactory implements SchemeFactory { 18278 public getRow_resultTupleScheme getScheme() { 18279 return new getRow_resultTupleScheme(); 18280 } 18281 } 18282 18283 private static class getRow_resultTupleScheme extends TupleScheme<getRow_result> { 18284 18285 @Override 18286 public void write(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException { 18287 TTupleProtocol oprot = (TTupleProtocol) prot; 18288 BitSet optionals = new BitSet(); 18289 if (struct.isSetSuccess()) { 18290 optionals.set(0); 18291 } 18292 if (struct.isSetIo()) { 18293 optionals.set(1); 18294 } 18295 oprot.writeBitSet(optionals, 2); 18296 if (struct.isSetSuccess()) { 18297 { 18298 oprot.writeI32(struct.success.size()); 18299 for (TRowResult _iter136 : struct.success) 18300 { 18301 _iter136.write(oprot); 18302 } 18303 } 18304 } 18305 if (struct.isSetIo()) { 18306 struct.io.write(oprot); 18307 } 18308 } 18309 18310 @Override 18311 public void read(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException { 18312 TTupleProtocol iprot = (TTupleProtocol) prot; 18313 BitSet incoming = iprot.readBitSet(2); 18314 if (incoming.get(0)) { 18315 { 18316 org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 18317 struct.success = new ArrayList<TRowResult>(_list137.size); 18318 for (int _i138 = 0; _i138 < _list137.size; ++_i138) 18319 { 18320 TRowResult _elem139; // required 18321 _elem139 = new TRowResult(); 18322 _elem139.read(iprot); 18323 struct.success.add(_elem139); 18324 } 18325 } 18326 struct.setSuccessIsSet(true); 18327 } 18328 if (incoming.get(1)) { 18329 struct.io = new IOError(); 18330 struct.io.read(iprot); 18331 struct.setIoIsSet(true); 18332 } 18333 } 18334 } 18335 18336 } 18337 18338 public static class getRowWithColumns_args implements org.apache.thrift.TBase<getRowWithColumns_args, getRowWithColumns_args._Fields>, java.io.Serializable, Cloneable { 18339 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_args"); 18340 18341 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 18342 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 18343 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 18344 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 18345 18346 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 18347 static { 18348 schemes.put(StandardScheme.class, new getRowWithColumns_argsStandardSchemeFactory()); 18349 schemes.put(TupleScheme.class, new getRowWithColumns_argsTupleSchemeFactory()); 18350 } 18351 18352 /** 18353 * name of table 18354 */ 18355 public ByteBuffer tableName; // required 18356 /** 18357 * row key 18358 */ 18359 public ByteBuffer row; // required 18360 /** 18361 * List of columns to return, null for all columns 18362 */ 18363 public List<ByteBuffer> columns; // required 18364 /** 18365 * Get attributes 18366 */ 18367 public Map<ByteBuffer,ByteBuffer> attributes; // required 18368 18369 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 18370 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 18371 /** 18372 * name of table 18373 */ 18374 TABLE_NAME((short)1, "tableName"), 18375 /** 18376 * row key 18377 */ 18378 ROW((short)2, "row"), 18379 /** 18380 * List of columns to return, null for all columns 18381 */ 18382 COLUMNS((short)3, "columns"), 18383 /** 18384 * Get attributes 18385 */ 18386 ATTRIBUTES((short)4, "attributes"); 18387 18388 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 18389 18390 static { 18391 for (_Fields field : EnumSet.allOf(_Fields.class)) { 18392 byName.put(field.getFieldName(), field); 18393 } 18394 } 18395 18396 /** 18397 * Find the _Fields constant that matches fieldId, or null if its not found. 18398 */ 18399 public static _Fields findByThriftId(int fieldId) { 18400 switch(fieldId) { 18401 case 1: // TABLE_NAME 18402 return TABLE_NAME; 18403 case 2: // ROW 18404 return ROW; 18405 case 3: // COLUMNS 18406 return COLUMNS; 18407 case 4: // ATTRIBUTES 18408 return ATTRIBUTES; 18409 default: 18410 return null; 18411 } 18412 } 18413 18414 /** 18415 * Find the _Fields constant that matches fieldId, throwing an exception 18416 * if it is not found. 18417 */ 18418 public static _Fields findByThriftIdOrThrow(int fieldId) { 18419 _Fields fields = findByThriftId(fieldId); 18420 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 18421 return fields; 18422 } 18423 18424 /** 18425 * Find the _Fields constant that matches name, or null if its not found. 18426 */ 18427 public static _Fields findByName(String name) { 18428 return byName.get(name); 18429 } 18430 18431 private final short _thriftId; 18432 private final String _fieldName; 18433 18434 _Fields(short thriftId, String fieldName) { 18435 _thriftId = thriftId; 18436 _fieldName = fieldName; 18437 } 18438 18439 public short getThriftFieldId() { 18440 return _thriftId; 18441 } 18442 18443 public String getFieldName() { 18444 return _fieldName; 18445 } 18446 } 18447 18448 // isset id assignments 18449 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 18450 static { 18451 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 18452 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 18453 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 18454 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 18455 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 18456 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 18457 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 18458 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 18459 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 18460 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 18461 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 18462 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 18463 metaDataMap = Collections.unmodifiableMap(tmpMap); 18464 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_args.class, metaDataMap); 18465 } 18466 18467 public getRowWithColumns_args() { 18468 } 18469 18470 public getRowWithColumns_args( 18471 ByteBuffer tableName, 18472 ByteBuffer row, 18473 List<ByteBuffer> columns, 18474 Map<ByteBuffer,ByteBuffer> attributes) 18475 { 18476 this(); 18477 this.tableName = tableName; 18478 this.row = row; 18479 this.columns = columns; 18480 this.attributes = attributes; 18481 } 18482 18483 /** 18484 * Performs a deep copy on <i>other</i>. 18485 */ 18486 public getRowWithColumns_args(getRowWithColumns_args other) { 18487 if (other.isSetTableName()) { 18488 this.tableName = other.tableName; 18489 } 18490 if (other.isSetRow()) { 18491 this.row = other.row; 18492 } 18493 if (other.isSetColumns()) { 18494 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 18495 for (ByteBuffer other_element : other.columns) { 18496 __this__columns.add(other_element); 18497 } 18498 this.columns = __this__columns; 18499 } 18500 if (other.isSetAttributes()) { 18501 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 18502 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 18503 18504 ByteBuffer other_element_key = other_element.getKey(); 18505 ByteBuffer other_element_value = other_element.getValue(); 18506 18507 ByteBuffer __this__attributes_copy_key = other_element_key; 18508 18509 ByteBuffer __this__attributes_copy_value = other_element_value; 18510 18511 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 18512 } 18513 this.attributes = __this__attributes; 18514 } 18515 } 18516 18517 public getRowWithColumns_args deepCopy() { 18518 return new getRowWithColumns_args(this); 18519 } 18520 18521 @Override 18522 public void clear() { 18523 this.tableName = null; 18524 this.row = null; 18525 this.columns = null; 18526 this.attributes = null; 18527 } 18528 18529 /** 18530 * name of table 18531 */ 18532 public byte[] getTableName() { 18533 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 18534 return tableName == null ? null : tableName.array(); 18535 } 18536 18537 public ByteBuffer bufferForTableName() { 18538 return tableName; 18539 } 18540 18541 /** 18542 * name of table 18543 */ 18544 public getRowWithColumns_args setTableName(byte[] tableName) { 18545 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 18546 return this; 18547 } 18548 18549 public getRowWithColumns_args setTableName(ByteBuffer tableName) { 18550 this.tableName = tableName; 18551 return this; 18552 } 18553 18554 public void unsetTableName() { 18555 this.tableName = null; 18556 } 18557 18558 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 18559 public boolean isSetTableName() { 18560 return this.tableName != null; 18561 } 18562 18563 public void setTableNameIsSet(boolean value) { 18564 if (!value) { 18565 this.tableName = null; 18566 } 18567 } 18568 18569 /** 18570 * row key 18571 */ 18572 public byte[] getRow() { 18573 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 18574 return row == null ? null : row.array(); 18575 } 18576 18577 public ByteBuffer bufferForRow() { 18578 return row; 18579 } 18580 18581 /** 18582 * row key 18583 */ 18584 public getRowWithColumns_args setRow(byte[] row) { 18585 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 18586 return this; 18587 } 18588 18589 public getRowWithColumns_args setRow(ByteBuffer row) { 18590 this.row = row; 18591 return this; 18592 } 18593 18594 public void unsetRow() { 18595 this.row = null; 18596 } 18597 18598 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 18599 public boolean isSetRow() { 18600 return this.row != null; 18601 } 18602 18603 public void setRowIsSet(boolean value) { 18604 if (!value) { 18605 this.row = null; 18606 } 18607 } 18608 18609 public int getColumnsSize() { 18610 return (this.columns == null) ? 0 : this.columns.size(); 18611 } 18612 18613 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 18614 return (this.columns == null) ? null : this.columns.iterator(); 18615 } 18616 18617 public void addToColumns(ByteBuffer elem) { 18618 if (this.columns == null) { 18619 this.columns = new ArrayList<ByteBuffer>(); 18620 } 18621 this.columns.add(elem); 18622 } 18623 18624 /** 18625 * List of columns to return, null for all columns 18626 */ 18627 public List<ByteBuffer> getColumns() { 18628 return this.columns; 18629 } 18630 18631 /** 18632 * List of columns to return, null for all columns 18633 */ 18634 public getRowWithColumns_args setColumns(List<ByteBuffer> columns) { 18635 this.columns = columns; 18636 return this; 18637 } 18638 18639 public void unsetColumns() { 18640 this.columns = null; 18641 } 18642 18643 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 18644 public boolean isSetColumns() { 18645 return this.columns != null; 18646 } 18647 18648 public void setColumnsIsSet(boolean value) { 18649 if (!value) { 18650 this.columns = null; 18651 } 18652 } 18653 18654 public int getAttributesSize() { 18655 return (this.attributes == null) ? 0 : this.attributes.size(); 18656 } 18657 18658 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 18659 if (this.attributes == null) { 18660 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 18661 } 18662 this.attributes.put(key, val); 18663 } 18664 18665 /** 18666 * Get attributes 18667 */ 18668 public Map<ByteBuffer,ByteBuffer> getAttributes() { 18669 return this.attributes; 18670 } 18671 18672 /** 18673 * Get attributes 18674 */ 18675 public getRowWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 18676 this.attributes = attributes; 18677 return this; 18678 } 18679 18680 public void unsetAttributes() { 18681 this.attributes = null; 18682 } 18683 18684 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 18685 public boolean isSetAttributes() { 18686 return this.attributes != null; 18687 } 18688 18689 public void setAttributesIsSet(boolean value) { 18690 if (!value) { 18691 this.attributes = null; 18692 } 18693 } 18694 18695 public void setFieldValue(_Fields field, Object value) { 18696 switch (field) { 18697 case TABLE_NAME: 18698 if (value == null) { 18699 unsetTableName(); 18700 } else { 18701 setTableName((ByteBuffer)value); 18702 } 18703 break; 18704 18705 case ROW: 18706 if (value == null) { 18707 unsetRow(); 18708 } else { 18709 setRow((ByteBuffer)value); 18710 } 18711 break; 18712 18713 case COLUMNS: 18714 if (value == null) { 18715 unsetColumns(); 18716 } else { 18717 setColumns((List<ByteBuffer>)value); 18718 } 18719 break; 18720 18721 case ATTRIBUTES: 18722 if (value == null) { 18723 unsetAttributes(); 18724 } else { 18725 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 18726 } 18727 break; 18728 18729 } 18730 } 18731 18732 public Object getFieldValue(_Fields field) { 18733 switch (field) { 18734 case TABLE_NAME: 18735 return getTableName(); 18736 18737 case ROW: 18738 return getRow(); 18739 18740 case COLUMNS: 18741 return getColumns(); 18742 18743 case ATTRIBUTES: 18744 return getAttributes(); 18745 18746 } 18747 throw new IllegalStateException(); 18748 } 18749 18750 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 18751 public boolean isSet(_Fields field) { 18752 if (field == null) { 18753 throw new IllegalArgumentException(); 18754 } 18755 18756 switch (field) { 18757 case TABLE_NAME: 18758 return isSetTableName(); 18759 case ROW: 18760 return isSetRow(); 18761 case COLUMNS: 18762 return isSetColumns(); 18763 case ATTRIBUTES: 18764 return isSetAttributes(); 18765 } 18766 throw new IllegalStateException(); 18767 } 18768 18769 @Override 18770 public boolean equals(Object that) { 18771 if (that == null) 18772 return false; 18773 if (that instanceof getRowWithColumns_args) 18774 return this.equals((getRowWithColumns_args)that); 18775 return false; 18776 } 18777 18778 public boolean equals(getRowWithColumns_args that) { 18779 if (that == null) 18780 return false; 18781 18782 boolean this_present_tableName = true && this.isSetTableName(); 18783 boolean that_present_tableName = true && that.isSetTableName(); 18784 if (this_present_tableName || that_present_tableName) { 18785 if (!(this_present_tableName && that_present_tableName)) 18786 return false; 18787 if (!this.tableName.equals(that.tableName)) 18788 return false; 18789 } 18790 18791 boolean this_present_row = true && this.isSetRow(); 18792 boolean that_present_row = true && that.isSetRow(); 18793 if (this_present_row || that_present_row) { 18794 if (!(this_present_row && that_present_row)) 18795 return false; 18796 if (!this.row.equals(that.row)) 18797 return false; 18798 } 18799 18800 boolean this_present_columns = true && this.isSetColumns(); 18801 boolean that_present_columns = true && that.isSetColumns(); 18802 if (this_present_columns || that_present_columns) { 18803 if (!(this_present_columns && that_present_columns)) 18804 return false; 18805 if (!this.columns.equals(that.columns)) 18806 return false; 18807 } 18808 18809 boolean this_present_attributes = true && this.isSetAttributes(); 18810 boolean that_present_attributes = true && that.isSetAttributes(); 18811 if (this_present_attributes || that_present_attributes) { 18812 if (!(this_present_attributes && that_present_attributes)) 18813 return false; 18814 if (!this.attributes.equals(that.attributes)) 18815 return false; 18816 } 18817 18818 return true; 18819 } 18820 18821 @Override 18822 public int hashCode() { 18823 HashCodeBuilder builder = new HashCodeBuilder(); 18824 18825 boolean present_tableName = true && (isSetTableName()); 18826 builder.append(present_tableName); 18827 if (present_tableName) 18828 builder.append(tableName); 18829 18830 boolean present_row = true && (isSetRow()); 18831 builder.append(present_row); 18832 if (present_row) 18833 builder.append(row); 18834 18835 boolean present_columns = true && (isSetColumns()); 18836 builder.append(present_columns); 18837 if (present_columns) 18838 builder.append(columns); 18839 18840 boolean present_attributes = true && (isSetAttributes()); 18841 builder.append(present_attributes); 18842 if (present_attributes) 18843 builder.append(attributes); 18844 18845 return builder.toHashCode(); 18846 } 18847 18848 public int compareTo(getRowWithColumns_args other) { 18849 if (!getClass().equals(other.getClass())) { 18850 return getClass().getName().compareTo(other.getClass().getName()); 18851 } 18852 18853 int lastComparison = 0; 18854 getRowWithColumns_args typedOther = (getRowWithColumns_args)other; 18855 18856 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 18857 if (lastComparison != 0) { 18858 return lastComparison; 18859 } 18860 if (isSetTableName()) { 18861 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 18862 if (lastComparison != 0) { 18863 return lastComparison; 18864 } 18865 } 18866 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 18867 if (lastComparison != 0) { 18868 return lastComparison; 18869 } 18870 if (isSetRow()) { 18871 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 18872 if (lastComparison != 0) { 18873 return lastComparison; 18874 } 18875 } 18876 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 18877 if (lastComparison != 0) { 18878 return lastComparison; 18879 } 18880 if (isSetColumns()) { 18881 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 18882 if (lastComparison != 0) { 18883 return lastComparison; 18884 } 18885 } 18886 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 18887 if (lastComparison != 0) { 18888 return lastComparison; 18889 } 18890 if (isSetAttributes()) { 18891 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 18892 if (lastComparison != 0) { 18893 return lastComparison; 18894 } 18895 } 18896 return 0; 18897 } 18898 18899 public _Fields fieldForId(int fieldId) { 18900 return _Fields.findByThriftId(fieldId); 18901 } 18902 18903 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 18904 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 18905 } 18906 18907 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 18908 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 18909 } 18910 18911 @Override 18912 public String toString() { 18913 StringBuilder sb = new StringBuilder("getRowWithColumns_args("); 18914 boolean first = true; 18915 18916 sb.append("tableName:"); 18917 if (this.tableName == null) { 18918 sb.append("null"); 18919 } else { 18920 sb.append(this.tableName); 18921 } 18922 first = false; 18923 if (!first) sb.append(", "); 18924 sb.append("row:"); 18925 if (this.row == null) { 18926 sb.append("null"); 18927 } else { 18928 sb.append(this.row); 18929 } 18930 first = false; 18931 if (!first) sb.append(", "); 18932 sb.append("columns:"); 18933 if (this.columns == null) { 18934 sb.append("null"); 18935 } else { 18936 sb.append(this.columns); 18937 } 18938 first = false; 18939 if (!first) sb.append(", "); 18940 sb.append("attributes:"); 18941 if (this.attributes == null) { 18942 sb.append("null"); 18943 } else { 18944 sb.append(this.attributes); 18945 } 18946 first = false; 18947 sb.append(")"); 18948 return sb.toString(); 18949 } 18950 18951 public void validate() throws org.apache.thrift.TException { 18952 // check for required fields 18953 } 18954 18955 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 18956 try { 18957 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 18958 } catch (org.apache.thrift.TException te) { 18959 throw new java.io.IOException(te); 18960 } 18961 } 18962 18963 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 18964 try { 18965 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 18966 } catch (org.apache.thrift.TException te) { 18967 throw new java.io.IOException(te); 18968 } 18969 } 18970 18971 private static class getRowWithColumns_argsStandardSchemeFactory implements SchemeFactory { 18972 public getRowWithColumns_argsStandardScheme getScheme() { 18973 return new getRowWithColumns_argsStandardScheme(); 18974 } 18975 } 18976 18977 private static class getRowWithColumns_argsStandardScheme extends StandardScheme<getRowWithColumns_args> { 18978 18979 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_args struct) throws org.apache.thrift.TException { 18980 org.apache.thrift.protocol.TField schemeField; 18981 iprot.readStructBegin(); 18982 while (true) 18983 { 18984 schemeField = iprot.readFieldBegin(); 18985 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 18986 break; 18987 } 18988 switch (schemeField.id) { 18989 case 1: // TABLE_NAME 18990 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 18991 struct.tableName = iprot.readBinary(); 18992 struct.setTableNameIsSet(true); 18993 } else { 18994 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 18995 } 18996 break; 18997 case 2: // ROW 18998 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 18999 struct.row = iprot.readBinary(); 19000 struct.setRowIsSet(true); 19001 } else { 19002 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19003 } 19004 break; 19005 case 3: // COLUMNS 19006 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 19007 { 19008 org.apache.thrift.protocol.TList _list140 = iprot.readListBegin(); 19009 struct.columns = new ArrayList<ByteBuffer>(_list140.size); 19010 for (int _i141 = 0; _i141 < _list140.size; ++_i141) 19011 { 19012 ByteBuffer _elem142; // required 19013 _elem142 = iprot.readBinary(); 19014 struct.columns.add(_elem142); 19015 } 19016 iprot.readListEnd(); 19017 } 19018 struct.setColumnsIsSet(true); 19019 } else { 19020 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19021 } 19022 break; 19023 case 4: // ATTRIBUTES 19024 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 19025 { 19026 org.apache.thrift.protocol.TMap _map143 = iprot.readMapBegin(); 19027 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map143.size); 19028 for (int _i144 = 0; _i144 < _map143.size; ++_i144) 19029 { 19030 ByteBuffer _key145; // required 19031 ByteBuffer _val146; // required 19032 _key145 = iprot.readBinary(); 19033 _val146 = iprot.readBinary(); 19034 struct.attributes.put(_key145, _val146); 19035 } 19036 iprot.readMapEnd(); 19037 } 19038 struct.setAttributesIsSet(true); 19039 } else { 19040 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19041 } 19042 break; 19043 default: 19044 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19045 } 19046 iprot.readFieldEnd(); 19047 } 19048 iprot.readStructEnd(); 19049 19050 // check for required fields of primitive type, which can't be checked in the validate method 19051 struct.validate(); 19052 } 19053 19054 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_args struct) throws org.apache.thrift.TException { 19055 struct.validate(); 19056 19057 oprot.writeStructBegin(STRUCT_DESC); 19058 if (struct.tableName != null) { 19059 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 19060 oprot.writeBinary(struct.tableName); 19061 oprot.writeFieldEnd(); 19062 } 19063 if (struct.row != null) { 19064 oprot.writeFieldBegin(ROW_FIELD_DESC); 19065 oprot.writeBinary(struct.row); 19066 oprot.writeFieldEnd(); 19067 } 19068 if (struct.columns != null) { 19069 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 19070 { 19071 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 19072 for (ByteBuffer _iter147 : struct.columns) 19073 { 19074 oprot.writeBinary(_iter147); 19075 } 19076 oprot.writeListEnd(); 19077 } 19078 oprot.writeFieldEnd(); 19079 } 19080 if (struct.attributes != null) { 19081 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 19082 { 19083 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 19084 for (Map.Entry<ByteBuffer, ByteBuffer> _iter148 : struct.attributes.entrySet()) 19085 { 19086 oprot.writeBinary(_iter148.getKey()); 19087 oprot.writeBinary(_iter148.getValue()); 19088 } 19089 oprot.writeMapEnd(); 19090 } 19091 oprot.writeFieldEnd(); 19092 } 19093 oprot.writeFieldStop(); 19094 oprot.writeStructEnd(); 19095 } 19096 19097 } 19098 19099 private static class getRowWithColumns_argsTupleSchemeFactory implements SchemeFactory { 19100 public getRowWithColumns_argsTupleScheme getScheme() { 19101 return new getRowWithColumns_argsTupleScheme(); 19102 } 19103 } 19104 19105 private static class getRowWithColumns_argsTupleScheme extends TupleScheme<getRowWithColumns_args> { 19106 19107 @Override 19108 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException { 19109 TTupleProtocol oprot = (TTupleProtocol) prot; 19110 BitSet optionals = new BitSet(); 19111 if (struct.isSetTableName()) { 19112 optionals.set(0); 19113 } 19114 if (struct.isSetRow()) { 19115 optionals.set(1); 19116 } 19117 if (struct.isSetColumns()) { 19118 optionals.set(2); 19119 } 19120 if (struct.isSetAttributes()) { 19121 optionals.set(3); 19122 } 19123 oprot.writeBitSet(optionals, 4); 19124 if (struct.isSetTableName()) { 19125 oprot.writeBinary(struct.tableName); 19126 } 19127 if (struct.isSetRow()) { 19128 oprot.writeBinary(struct.row); 19129 } 19130 if (struct.isSetColumns()) { 19131 { 19132 oprot.writeI32(struct.columns.size()); 19133 for (ByteBuffer _iter149 : struct.columns) 19134 { 19135 oprot.writeBinary(_iter149); 19136 } 19137 } 19138 } 19139 if (struct.isSetAttributes()) { 19140 { 19141 oprot.writeI32(struct.attributes.size()); 19142 for (Map.Entry<ByteBuffer, ByteBuffer> _iter150 : struct.attributes.entrySet()) 19143 { 19144 oprot.writeBinary(_iter150.getKey()); 19145 oprot.writeBinary(_iter150.getValue()); 19146 } 19147 } 19148 } 19149 } 19150 19151 @Override 19152 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException { 19153 TTupleProtocol iprot = (TTupleProtocol) prot; 19154 BitSet incoming = iprot.readBitSet(4); 19155 if (incoming.get(0)) { 19156 struct.tableName = iprot.readBinary(); 19157 struct.setTableNameIsSet(true); 19158 } 19159 if (incoming.get(1)) { 19160 struct.row = iprot.readBinary(); 19161 struct.setRowIsSet(true); 19162 } 19163 if (incoming.get(2)) { 19164 { 19165 org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 19166 struct.columns = new ArrayList<ByteBuffer>(_list151.size); 19167 for (int _i152 = 0; _i152 < _list151.size; ++_i152) 19168 { 19169 ByteBuffer _elem153; // required 19170 _elem153 = iprot.readBinary(); 19171 struct.columns.add(_elem153); 19172 } 19173 } 19174 struct.setColumnsIsSet(true); 19175 } 19176 if (incoming.get(3)) { 19177 { 19178 org.apache.thrift.protocol.TMap _map154 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 19179 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map154.size); 19180 for (int _i155 = 0; _i155 < _map154.size; ++_i155) 19181 { 19182 ByteBuffer _key156; // required 19183 ByteBuffer _val157; // required 19184 _key156 = iprot.readBinary(); 19185 _val157 = iprot.readBinary(); 19186 struct.attributes.put(_key156, _val157); 19187 } 19188 } 19189 struct.setAttributesIsSet(true); 19190 } 19191 } 19192 } 19193 19194 } 19195 19196 public static class getRowWithColumns_result implements org.apache.thrift.TBase<getRowWithColumns_result, getRowWithColumns_result._Fields>, java.io.Serializable, Cloneable { 19197 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_result"); 19198 19199 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 19200 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 19201 19202 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 19203 static { 19204 schemes.put(StandardScheme.class, new getRowWithColumns_resultStandardSchemeFactory()); 19205 schemes.put(TupleScheme.class, new getRowWithColumns_resultTupleSchemeFactory()); 19206 } 19207 19208 public List<TRowResult> success; // required 19209 public IOError io; // required 19210 19211 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 19212 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 19213 SUCCESS((short)0, "success"), 19214 IO((short)1, "io"); 19215 19216 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 19217 19218 static { 19219 for (_Fields field : EnumSet.allOf(_Fields.class)) { 19220 byName.put(field.getFieldName(), field); 19221 } 19222 } 19223 19224 /** 19225 * Find the _Fields constant that matches fieldId, or null if its not found. 19226 */ 19227 public static _Fields findByThriftId(int fieldId) { 19228 switch(fieldId) { 19229 case 0: // SUCCESS 19230 return SUCCESS; 19231 case 1: // IO 19232 return IO; 19233 default: 19234 return null; 19235 } 19236 } 19237 19238 /** 19239 * Find the _Fields constant that matches fieldId, throwing an exception 19240 * if it is not found. 19241 */ 19242 public static _Fields findByThriftIdOrThrow(int fieldId) { 19243 _Fields fields = findByThriftId(fieldId); 19244 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 19245 return fields; 19246 } 19247 19248 /** 19249 * Find the _Fields constant that matches name, or null if its not found. 19250 */ 19251 public static _Fields findByName(String name) { 19252 return byName.get(name); 19253 } 19254 19255 private final short _thriftId; 19256 private final String _fieldName; 19257 19258 _Fields(short thriftId, String fieldName) { 19259 _thriftId = thriftId; 19260 _fieldName = fieldName; 19261 } 19262 19263 public short getThriftFieldId() { 19264 return _thriftId; 19265 } 19266 19267 public String getFieldName() { 19268 return _fieldName; 19269 } 19270 } 19271 19272 // isset id assignments 19273 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 19274 static { 19275 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 19276 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 19277 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 19278 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 19279 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 19280 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 19281 metaDataMap = Collections.unmodifiableMap(tmpMap); 19282 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_result.class, metaDataMap); 19283 } 19284 19285 public getRowWithColumns_result() { 19286 } 19287 19288 public getRowWithColumns_result( 19289 List<TRowResult> success, 19290 IOError io) 19291 { 19292 this(); 19293 this.success = success; 19294 this.io = io; 19295 } 19296 19297 /** 19298 * Performs a deep copy on <i>other</i>. 19299 */ 19300 public getRowWithColumns_result(getRowWithColumns_result other) { 19301 if (other.isSetSuccess()) { 19302 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 19303 for (TRowResult other_element : other.success) { 19304 __this__success.add(new TRowResult(other_element)); 19305 } 19306 this.success = __this__success; 19307 } 19308 if (other.isSetIo()) { 19309 this.io = new IOError(other.io); 19310 } 19311 } 19312 19313 public getRowWithColumns_result deepCopy() { 19314 return new getRowWithColumns_result(this); 19315 } 19316 19317 @Override 19318 public void clear() { 19319 this.success = null; 19320 this.io = null; 19321 } 19322 19323 public int getSuccessSize() { 19324 return (this.success == null) ? 0 : this.success.size(); 19325 } 19326 19327 public java.util.Iterator<TRowResult> getSuccessIterator() { 19328 return (this.success == null) ? null : this.success.iterator(); 19329 } 19330 19331 public void addToSuccess(TRowResult elem) { 19332 if (this.success == null) { 19333 this.success = new ArrayList<TRowResult>(); 19334 } 19335 this.success.add(elem); 19336 } 19337 19338 public List<TRowResult> getSuccess() { 19339 return this.success; 19340 } 19341 19342 public getRowWithColumns_result setSuccess(List<TRowResult> success) { 19343 this.success = success; 19344 return this; 19345 } 19346 19347 public void unsetSuccess() { 19348 this.success = null; 19349 } 19350 19351 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 19352 public boolean isSetSuccess() { 19353 return this.success != null; 19354 } 19355 19356 public void setSuccessIsSet(boolean value) { 19357 if (!value) { 19358 this.success = null; 19359 } 19360 } 19361 19362 public IOError getIo() { 19363 return this.io; 19364 } 19365 19366 public getRowWithColumns_result setIo(IOError io) { 19367 this.io = io; 19368 return this; 19369 } 19370 19371 public void unsetIo() { 19372 this.io = null; 19373 } 19374 19375 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 19376 public boolean isSetIo() { 19377 return this.io != null; 19378 } 19379 19380 public void setIoIsSet(boolean value) { 19381 if (!value) { 19382 this.io = null; 19383 } 19384 } 19385 19386 public void setFieldValue(_Fields field, Object value) { 19387 switch (field) { 19388 case SUCCESS: 19389 if (value == null) { 19390 unsetSuccess(); 19391 } else { 19392 setSuccess((List<TRowResult>)value); 19393 } 19394 break; 19395 19396 case IO: 19397 if (value == null) { 19398 unsetIo(); 19399 } else { 19400 setIo((IOError)value); 19401 } 19402 break; 19403 19404 } 19405 } 19406 19407 public Object getFieldValue(_Fields field) { 19408 switch (field) { 19409 case SUCCESS: 19410 return getSuccess(); 19411 19412 case IO: 19413 return getIo(); 19414 19415 } 19416 throw new IllegalStateException(); 19417 } 19418 19419 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 19420 public boolean isSet(_Fields field) { 19421 if (field == null) { 19422 throw new IllegalArgumentException(); 19423 } 19424 19425 switch (field) { 19426 case SUCCESS: 19427 return isSetSuccess(); 19428 case IO: 19429 return isSetIo(); 19430 } 19431 throw new IllegalStateException(); 19432 } 19433 19434 @Override 19435 public boolean equals(Object that) { 19436 if (that == null) 19437 return false; 19438 if (that instanceof getRowWithColumns_result) 19439 return this.equals((getRowWithColumns_result)that); 19440 return false; 19441 } 19442 19443 public boolean equals(getRowWithColumns_result that) { 19444 if (that == null) 19445 return false; 19446 19447 boolean this_present_success = true && this.isSetSuccess(); 19448 boolean that_present_success = true && that.isSetSuccess(); 19449 if (this_present_success || that_present_success) { 19450 if (!(this_present_success && that_present_success)) 19451 return false; 19452 if (!this.success.equals(that.success)) 19453 return false; 19454 } 19455 19456 boolean this_present_io = true && this.isSetIo(); 19457 boolean that_present_io = true && that.isSetIo(); 19458 if (this_present_io || that_present_io) { 19459 if (!(this_present_io && that_present_io)) 19460 return false; 19461 if (!this.io.equals(that.io)) 19462 return false; 19463 } 19464 19465 return true; 19466 } 19467 19468 @Override 19469 public int hashCode() { 19470 HashCodeBuilder builder = new HashCodeBuilder(); 19471 19472 boolean present_success = true && (isSetSuccess()); 19473 builder.append(present_success); 19474 if (present_success) 19475 builder.append(success); 19476 19477 boolean present_io = true && (isSetIo()); 19478 builder.append(present_io); 19479 if (present_io) 19480 builder.append(io); 19481 19482 return builder.toHashCode(); 19483 } 19484 19485 public int compareTo(getRowWithColumns_result other) { 19486 if (!getClass().equals(other.getClass())) { 19487 return getClass().getName().compareTo(other.getClass().getName()); 19488 } 19489 19490 int lastComparison = 0; 19491 getRowWithColumns_result typedOther = (getRowWithColumns_result)other; 19492 19493 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 19494 if (lastComparison != 0) { 19495 return lastComparison; 19496 } 19497 if (isSetSuccess()) { 19498 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 19499 if (lastComparison != 0) { 19500 return lastComparison; 19501 } 19502 } 19503 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 19504 if (lastComparison != 0) { 19505 return lastComparison; 19506 } 19507 if (isSetIo()) { 19508 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 19509 if (lastComparison != 0) { 19510 return lastComparison; 19511 } 19512 } 19513 return 0; 19514 } 19515 19516 public _Fields fieldForId(int fieldId) { 19517 return _Fields.findByThriftId(fieldId); 19518 } 19519 19520 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 19521 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 19522 } 19523 19524 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 19525 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 19526 } 19527 19528 @Override 19529 public String toString() { 19530 StringBuilder sb = new StringBuilder("getRowWithColumns_result("); 19531 boolean first = true; 19532 19533 sb.append("success:"); 19534 if (this.success == null) { 19535 sb.append("null"); 19536 } else { 19537 sb.append(this.success); 19538 } 19539 first = false; 19540 if (!first) sb.append(", "); 19541 sb.append("io:"); 19542 if (this.io == null) { 19543 sb.append("null"); 19544 } else { 19545 sb.append(this.io); 19546 } 19547 first = false; 19548 sb.append(")"); 19549 return sb.toString(); 19550 } 19551 19552 public void validate() throws org.apache.thrift.TException { 19553 // check for required fields 19554 } 19555 19556 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 19557 try { 19558 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 19559 } catch (org.apache.thrift.TException te) { 19560 throw new java.io.IOException(te); 19561 } 19562 } 19563 19564 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 19565 try { 19566 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 19567 } catch (org.apache.thrift.TException te) { 19568 throw new java.io.IOException(te); 19569 } 19570 } 19571 19572 private static class getRowWithColumns_resultStandardSchemeFactory implements SchemeFactory { 19573 public getRowWithColumns_resultStandardScheme getScheme() { 19574 return new getRowWithColumns_resultStandardScheme(); 19575 } 19576 } 19577 19578 private static class getRowWithColumns_resultStandardScheme extends StandardScheme<getRowWithColumns_result> { 19579 19580 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_result struct) throws org.apache.thrift.TException { 19581 org.apache.thrift.protocol.TField schemeField; 19582 iprot.readStructBegin(); 19583 while (true) 19584 { 19585 schemeField = iprot.readFieldBegin(); 19586 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 19587 break; 19588 } 19589 switch (schemeField.id) { 19590 case 0: // SUCCESS 19591 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 19592 { 19593 org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); 19594 struct.success = new ArrayList<TRowResult>(_list158.size); 19595 for (int _i159 = 0; _i159 < _list158.size; ++_i159) 19596 { 19597 TRowResult _elem160; // required 19598 _elem160 = new TRowResult(); 19599 _elem160.read(iprot); 19600 struct.success.add(_elem160); 19601 } 19602 iprot.readListEnd(); 19603 } 19604 struct.setSuccessIsSet(true); 19605 } else { 19606 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19607 } 19608 break; 19609 case 1: // IO 19610 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 19611 struct.io = new IOError(); 19612 struct.io.read(iprot); 19613 struct.setIoIsSet(true); 19614 } else { 19615 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19616 } 19617 break; 19618 default: 19619 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 19620 } 19621 iprot.readFieldEnd(); 19622 } 19623 iprot.readStructEnd(); 19624 19625 // check for required fields of primitive type, which can't be checked in the validate method 19626 struct.validate(); 19627 } 19628 19629 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_result struct) throws org.apache.thrift.TException { 19630 struct.validate(); 19631 19632 oprot.writeStructBegin(STRUCT_DESC); 19633 if (struct.success != null) { 19634 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 19635 { 19636 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 19637 for (TRowResult _iter161 : struct.success) 19638 { 19639 _iter161.write(oprot); 19640 } 19641 oprot.writeListEnd(); 19642 } 19643 oprot.writeFieldEnd(); 19644 } 19645 if (struct.io != null) { 19646 oprot.writeFieldBegin(IO_FIELD_DESC); 19647 struct.io.write(oprot); 19648 oprot.writeFieldEnd(); 19649 } 19650 oprot.writeFieldStop(); 19651 oprot.writeStructEnd(); 19652 } 19653 19654 } 19655 19656 private static class getRowWithColumns_resultTupleSchemeFactory implements SchemeFactory { 19657 public getRowWithColumns_resultTupleScheme getScheme() { 19658 return new getRowWithColumns_resultTupleScheme(); 19659 } 19660 } 19661 19662 private static class getRowWithColumns_resultTupleScheme extends TupleScheme<getRowWithColumns_result> { 19663 19664 @Override 19665 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException { 19666 TTupleProtocol oprot = (TTupleProtocol) prot; 19667 BitSet optionals = new BitSet(); 19668 if (struct.isSetSuccess()) { 19669 optionals.set(0); 19670 } 19671 if (struct.isSetIo()) { 19672 optionals.set(1); 19673 } 19674 oprot.writeBitSet(optionals, 2); 19675 if (struct.isSetSuccess()) { 19676 { 19677 oprot.writeI32(struct.success.size()); 19678 for (TRowResult _iter162 : struct.success) 19679 { 19680 _iter162.write(oprot); 19681 } 19682 } 19683 } 19684 if (struct.isSetIo()) { 19685 struct.io.write(oprot); 19686 } 19687 } 19688 19689 @Override 19690 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException { 19691 TTupleProtocol iprot = (TTupleProtocol) prot; 19692 BitSet incoming = iprot.readBitSet(2); 19693 if (incoming.get(0)) { 19694 { 19695 org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 19696 struct.success = new ArrayList<TRowResult>(_list163.size); 19697 for (int _i164 = 0; _i164 < _list163.size; ++_i164) 19698 { 19699 TRowResult _elem165; // required 19700 _elem165 = new TRowResult(); 19701 _elem165.read(iprot); 19702 struct.success.add(_elem165); 19703 } 19704 } 19705 struct.setSuccessIsSet(true); 19706 } 19707 if (incoming.get(1)) { 19708 struct.io = new IOError(); 19709 struct.io.read(iprot); 19710 struct.setIoIsSet(true); 19711 } 19712 } 19713 } 19714 19715 } 19716 19717 public static class getRowTs_args implements org.apache.thrift.TBase<getRowTs_args, getRowTs_args._Fields>, java.io.Serializable, Cloneable { 19718 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_args"); 19719 19720 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 19721 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 19722 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); 19723 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 19724 19725 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 19726 static { 19727 schemes.put(StandardScheme.class, new getRowTs_argsStandardSchemeFactory()); 19728 schemes.put(TupleScheme.class, new getRowTs_argsTupleSchemeFactory()); 19729 } 19730 19731 /** 19732 * name of the table 19733 */ 19734 public ByteBuffer tableName; // required 19735 /** 19736 * row key 19737 */ 19738 public ByteBuffer row; // required 19739 /** 19740 * timestamp 19741 */ 19742 public long timestamp; // required 19743 /** 19744 * Get attributes 19745 */ 19746 public Map<ByteBuffer,ByteBuffer> attributes; // required 19747 19748 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 19749 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 19750 /** 19751 * name of the table 19752 */ 19753 TABLE_NAME((short)1, "tableName"), 19754 /** 19755 * row key 19756 */ 19757 ROW((short)2, "row"), 19758 /** 19759 * timestamp 19760 */ 19761 TIMESTAMP((short)3, "timestamp"), 19762 /** 19763 * Get attributes 19764 */ 19765 ATTRIBUTES((short)4, "attributes"); 19766 19767 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 19768 19769 static { 19770 for (_Fields field : EnumSet.allOf(_Fields.class)) { 19771 byName.put(field.getFieldName(), field); 19772 } 19773 } 19774 19775 /** 19776 * Find the _Fields constant that matches fieldId, or null if its not found. 19777 */ 19778 public static _Fields findByThriftId(int fieldId) { 19779 switch(fieldId) { 19780 case 1: // TABLE_NAME 19781 return TABLE_NAME; 19782 case 2: // ROW 19783 return ROW; 19784 case 3: // TIMESTAMP 19785 return TIMESTAMP; 19786 case 4: // ATTRIBUTES 19787 return ATTRIBUTES; 19788 default: 19789 return null; 19790 } 19791 } 19792 19793 /** 19794 * Find the _Fields constant that matches fieldId, throwing an exception 19795 * if it is not found. 19796 */ 19797 public static _Fields findByThriftIdOrThrow(int fieldId) { 19798 _Fields fields = findByThriftId(fieldId); 19799 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 19800 return fields; 19801 } 19802 19803 /** 19804 * Find the _Fields constant that matches name, or null if its not found. 19805 */ 19806 public static _Fields findByName(String name) { 19807 return byName.get(name); 19808 } 19809 19810 private final short _thriftId; 19811 private final String _fieldName; 19812 19813 _Fields(short thriftId, String fieldName) { 19814 _thriftId = thriftId; 19815 _fieldName = fieldName; 19816 } 19817 19818 public short getThriftFieldId() { 19819 return _thriftId; 19820 } 19821 19822 public String getFieldName() { 19823 return _fieldName; 19824 } 19825 } 19826 19827 // isset id assignments 19828 private static final int __TIMESTAMP_ISSET_ID = 0; 19829 private BitSet __isset_bit_vector = new BitSet(1); 19830 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 19831 static { 19832 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 19833 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 19834 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 19835 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 19836 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 19837 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 19838 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 19839 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 19840 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 19841 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 19842 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 19843 metaDataMap = Collections.unmodifiableMap(tmpMap); 19844 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_args.class, metaDataMap); 19845 } 19846 19847 public getRowTs_args() { 19848 } 19849 19850 public getRowTs_args( 19851 ByteBuffer tableName, 19852 ByteBuffer row, 19853 long timestamp, 19854 Map<ByteBuffer,ByteBuffer> attributes) 19855 { 19856 this(); 19857 this.tableName = tableName; 19858 this.row = row; 19859 this.timestamp = timestamp; 19860 setTimestampIsSet(true); 19861 this.attributes = attributes; 19862 } 19863 19864 /** 19865 * Performs a deep copy on <i>other</i>. 19866 */ 19867 public getRowTs_args(getRowTs_args other) { 19868 __isset_bit_vector.clear(); 19869 __isset_bit_vector.or(other.__isset_bit_vector); 19870 if (other.isSetTableName()) { 19871 this.tableName = other.tableName; 19872 } 19873 if (other.isSetRow()) { 19874 this.row = other.row; 19875 } 19876 this.timestamp = other.timestamp; 19877 if (other.isSetAttributes()) { 19878 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 19879 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 19880 19881 ByteBuffer other_element_key = other_element.getKey(); 19882 ByteBuffer other_element_value = other_element.getValue(); 19883 19884 ByteBuffer __this__attributes_copy_key = other_element_key; 19885 19886 ByteBuffer __this__attributes_copy_value = other_element_value; 19887 19888 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 19889 } 19890 this.attributes = __this__attributes; 19891 } 19892 } 19893 19894 public getRowTs_args deepCopy() { 19895 return new getRowTs_args(this); 19896 } 19897 19898 @Override 19899 public void clear() { 19900 this.tableName = null; 19901 this.row = null; 19902 setTimestampIsSet(false); 19903 this.timestamp = 0; 19904 this.attributes = null; 19905 } 19906 19907 /** 19908 * name of the table 19909 */ 19910 public byte[] getTableName() { 19911 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 19912 return tableName == null ? null : tableName.array(); 19913 } 19914 19915 public ByteBuffer bufferForTableName() { 19916 return tableName; 19917 } 19918 19919 /** 19920 * name of the table 19921 */ 19922 public getRowTs_args setTableName(byte[] tableName) { 19923 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 19924 return this; 19925 } 19926 19927 public getRowTs_args setTableName(ByteBuffer tableName) { 19928 this.tableName = tableName; 19929 return this; 19930 } 19931 19932 public void unsetTableName() { 19933 this.tableName = null; 19934 } 19935 19936 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 19937 public boolean isSetTableName() { 19938 return this.tableName != null; 19939 } 19940 19941 public void setTableNameIsSet(boolean value) { 19942 if (!value) { 19943 this.tableName = null; 19944 } 19945 } 19946 19947 /** 19948 * row key 19949 */ 19950 public byte[] getRow() { 19951 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 19952 return row == null ? null : row.array(); 19953 } 19954 19955 public ByteBuffer bufferForRow() { 19956 return row; 19957 } 19958 19959 /** 19960 * row key 19961 */ 19962 public getRowTs_args setRow(byte[] row) { 19963 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 19964 return this; 19965 } 19966 19967 public getRowTs_args setRow(ByteBuffer row) { 19968 this.row = row; 19969 return this; 19970 } 19971 19972 public void unsetRow() { 19973 this.row = null; 19974 } 19975 19976 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 19977 public boolean isSetRow() { 19978 return this.row != null; 19979 } 19980 19981 public void setRowIsSet(boolean value) { 19982 if (!value) { 19983 this.row = null; 19984 } 19985 } 19986 19987 /** 19988 * timestamp 19989 */ 19990 public long getTimestamp() { 19991 return this.timestamp; 19992 } 19993 19994 /** 19995 * timestamp 19996 */ 19997 public getRowTs_args setTimestamp(long timestamp) { 19998 this.timestamp = timestamp; 19999 setTimestampIsSet(true); 20000 return this; 20001 } 20002 20003 public void unsetTimestamp() { 20004 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 20005 } 20006 20007 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 20008 public boolean isSetTimestamp() { 20009 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 20010 } 20011 20012 public void setTimestampIsSet(boolean value) { 20013 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 20014 } 20015 20016 public int getAttributesSize() { 20017 return (this.attributes == null) ? 0 : this.attributes.size(); 20018 } 20019 20020 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 20021 if (this.attributes == null) { 20022 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 20023 } 20024 this.attributes.put(key, val); 20025 } 20026 20027 /** 20028 * Get attributes 20029 */ 20030 public Map<ByteBuffer,ByteBuffer> getAttributes() { 20031 return this.attributes; 20032 } 20033 20034 /** 20035 * Get attributes 20036 */ 20037 public getRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 20038 this.attributes = attributes; 20039 return this; 20040 } 20041 20042 public void unsetAttributes() { 20043 this.attributes = null; 20044 } 20045 20046 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 20047 public boolean isSetAttributes() { 20048 return this.attributes != null; 20049 } 20050 20051 public void setAttributesIsSet(boolean value) { 20052 if (!value) { 20053 this.attributes = null; 20054 } 20055 } 20056 20057 public void setFieldValue(_Fields field, Object value) { 20058 switch (field) { 20059 case TABLE_NAME: 20060 if (value == null) { 20061 unsetTableName(); 20062 } else { 20063 setTableName((ByteBuffer)value); 20064 } 20065 break; 20066 20067 case ROW: 20068 if (value == null) { 20069 unsetRow(); 20070 } else { 20071 setRow((ByteBuffer)value); 20072 } 20073 break; 20074 20075 case TIMESTAMP: 20076 if (value == null) { 20077 unsetTimestamp(); 20078 } else { 20079 setTimestamp((Long)value); 20080 } 20081 break; 20082 20083 case ATTRIBUTES: 20084 if (value == null) { 20085 unsetAttributes(); 20086 } else { 20087 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 20088 } 20089 break; 20090 20091 } 20092 } 20093 20094 public Object getFieldValue(_Fields field) { 20095 switch (field) { 20096 case TABLE_NAME: 20097 return getTableName(); 20098 20099 case ROW: 20100 return getRow(); 20101 20102 case TIMESTAMP: 20103 return Long.valueOf(getTimestamp()); 20104 20105 case ATTRIBUTES: 20106 return getAttributes(); 20107 20108 } 20109 throw new IllegalStateException(); 20110 } 20111 20112 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 20113 public boolean isSet(_Fields field) { 20114 if (field == null) { 20115 throw new IllegalArgumentException(); 20116 } 20117 20118 switch (field) { 20119 case TABLE_NAME: 20120 return isSetTableName(); 20121 case ROW: 20122 return isSetRow(); 20123 case TIMESTAMP: 20124 return isSetTimestamp(); 20125 case ATTRIBUTES: 20126 return isSetAttributes(); 20127 } 20128 throw new IllegalStateException(); 20129 } 20130 20131 @Override 20132 public boolean equals(Object that) { 20133 if (that == null) 20134 return false; 20135 if (that instanceof getRowTs_args) 20136 return this.equals((getRowTs_args)that); 20137 return false; 20138 } 20139 20140 public boolean equals(getRowTs_args that) { 20141 if (that == null) 20142 return false; 20143 20144 boolean this_present_tableName = true && this.isSetTableName(); 20145 boolean that_present_tableName = true && that.isSetTableName(); 20146 if (this_present_tableName || that_present_tableName) { 20147 if (!(this_present_tableName && that_present_tableName)) 20148 return false; 20149 if (!this.tableName.equals(that.tableName)) 20150 return false; 20151 } 20152 20153 boolean this_present_row = true && this.isSetRow(); 20154 boolean that_present_row = true && that.isSetRow(); 20155 if (this_present_row || that_present_row) { 20156 if (!(this_present_row && that_present_row)) 20157 return false; 20158 if (!this.row.equals(that.row)) 20159 return false; 20160 } 20161 20162 boolean this_present_timestamp = true; 20163 boolean that_present_timestamp = true; 20164 if (this_present_timestamp || that_present_timestamp) { 20165 if (!(this_present_timestamp && that_present_timestamp)) 20166 return false; 20167 if (this.timestamp != that.timestamp) 20168 return false; 20169 } 20170 20171 boolean this_present_attributes = true && this.isSetAttributes(); 20172 boolean that_present_attributes = true && that.isSetAttributes(); 20173 if (this_present_attributes || that_present_attributes) { 20174 if (!(this_present_attributes && that_present_attributes)) 20175 return false; 20176 if (!this.attributes.equals(that.attributes)) 20177 return false; 20178 } 20179 20180 return true; 20181 } 20182 20183 @Override 20184 public int hashCode() { 20185 HashCodeBuilder builder = new HashCodeBuilder(); 20186 20187 boolean present_tableName = true && (isSetTableName()); 20188 builder.append(present_tableName); 20189 if (present_tableName) 20190 builder.append(tableName); 20191 20192 boolean present_row = true && (isSetRow()); 20193 builder.append(present_row); 20194 if (present_row) 20195 builder.append(row); 20196 20197 boolean present_timestamp = true; 20198 builder.append(present_timestamp); 20199 if (present_timestamp) 20200 builder.append(timestamp); 20201 20202 boolean present_attributes = true && (isSetAttributes()); 20203 builder.append(present_attributes); 20204 if (present_attributes) 20205 builder.append(attributes); 20206 20207 return builder.toHashCode(); 20208 } 20209 20210 public int compareTo(getRowTs_args other) { 20211 if (!getClass().equals(other.getClass())) { 20212 return getClass().getName().compareTo(other.getClass().getName()); 20213 } 20214 20215 int lastComparison = 0; 20216 getRowTs_args typedOther = (getRowTs_args)other; 20217 20218 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 20219 if (lastComparison != 0) { 20220 return lastComparison; 20221 } 20222 if (isSetTableName()) { 20223 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 20224 if (lastComparison != 0) { 20225 return lastComparison; 20226 } 20227 } 20228 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 20229 if (lastComparison != 0) { 20230 return lastComparison; 20231 } 20232 if (isSetRow()) { 20233 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 20234 if (lastComparison != 0) { 20235 return lastComparison; 20236 } 20237 } 20238 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 20239 if (lastComparison != 0) { 20240 return lastComparison; 20241 } 20242 if (isSetTimestamp()) { 20243 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 20244 if (lastComparison != 0) { 20245 return lastComparison; 20246 } 20247 } 20248 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 20249 if (lastComparison != 0) { 20250 return lastComparison; 20251 } 20252 if (isSetAttributes()) { 20253 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 20254 if (lastComparison != 0) { 20255 return lastComparison; 20256 } 20257 } 20258 return 0; 20259 } 20260 20261 public _Fields fieldForId(int fieldId) { 20262 return _Fields.findByThriftId(fieldId); 20263 } 20264 20265 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 20266 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 20267 } 20268 20269 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 20270 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 20271 } 20272 20273 @Override 20274 public String toString() { 20275 StringBuilder sb = new StringBuilder("getRowTs_args("); 20276 boolean first = true; 20277 20278 sb.append("tableName:"); 20279 if (this.tableName == null) { 20280 sb.append("null"); 20281 } else { 20282 sb.append(this.tableName); 20283 } 20284 first = false; 20285 if (!first) sb.append(", "); 20286 sb.append("row:"); 20287 if (this.row == null) { 20288 sb.append("null"); 20289 } else { 20290 sb.append(this.row); 20291 } 20292 first = false; 20293 if (!first) sb.append(", "); 20294 sb.append("timestamp:"); 20295 sb.append(this.timestamp); 20296 first = false; 20297 if (!first) sb.append(", "); 20298 sb.append("attributes:"); 20299 if (this.attributes == null) { 20300 sb.append("null"); 20301 } else { 20302 sb.append(this.attributes); 20303 } 20304 first = false; 20305 sb.append(")"); 20306 return sb.toString(); 20307 } 20308 20309 public void validate() throws org.apache.thrift.TException { 20310 // check for required fields 20311 } 20312 20313 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 20314 try { 20315 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 20316 } catch (org.apache.thrift.TException te) { 20317 throw new java.io.IOException(te); 20318 } 20319 } 20320 20321 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 20322 try { 20323 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 20324 __isset_bit_vector = new BitSet(1); 20325 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 20326 } catch (org.apache.thrift.TException te) { 20327 throw new java.io.IOException(te); 20328 } 20329 } 20330 20331 private static class getRowTs_argsStandardSchemeFactory implements SchemeFactory { 20332 public getRowTs_argsStandardScheme getScheme() { 20333 return new getRowTs_argsStandardScheme(); 20334 } 20335 } 20336 20337 private static class getRowTs_argsStandardScheme extends StandardScheme<getRowTs_args> { 20338 20339 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_args struct) throws org.apache.thrift.TException { 20340 org.apache.thrift.protocol.TField schemeField; 20341 iprot.readStructBegin(); 20342 while (true) 20343 { 20344 schemeField = iprot.readFieldBegin(); 20345 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 20346 break; 20347 } 20348 switch (schemeField.id) { 20349 case 1: // TABLE_NAME 20350 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 20351 struct.tableName = iprot.readBinary(); 20352 struct.setTableNameIsSet(true); 20353 } else { 20354 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20355 } 20356 break; 20357 case 2: // ROW 20358 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 20359 struct.row = iprot.readBinary(); 20360 struct.setRowIsSet(true); 20361 } else { 20362 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20363 } 20364 break; 20365 case 3: // TIMESTAMP 20366 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 20367 struct.timestamp = iprot.readI64(); 20368 struct.setTimestampIsSet(true); 20369 } else { 20370 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20371 } 20372 break; 20373 case 4: // ATTRIBUTES 20374 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 20375 { 20376 org.apache.thrift.protocol.TMap _map166 = iprot.readMapBegin(); 20377 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map166.size); 20378 for (int _i167 = 0; _i167 < _map166.size; ++_i167) 20379 { 20380 ByteBuffer _key168; // required 20381 ByteBuffer _val169; // required 20382 _key168 = iprot.readBinary(); 20383 _val169 = iprot.readBinary(); 20384 struct.attributes.put(_key168, _val169); 20385 } 20386 iprot.readMapEnd(); 20387 } 20388 struct.setAttributesIsSet(true); 20389 } else { 20390 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20391 } 20392 break; 20393 default: 20394 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20395 } 20396 iprot.readFieldEnd(); 20397 } 20398 iprot.readStructEnd(); 20399 20400 // check for required fields of primitive type, which can't be checked in the validate method 20401 struct.validate(); 20402 } 20403 20404 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_args struct) throws org.apache.thrift.TException { 20405 struct.validate(); 20406 20407 oprot.writeStructBegin(STRUCT_DESC); 20408 if (struct.tableName != null) { 20409 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 20410 oprot.writeBinary(struct.tableName); 20411 oprot.writeFieldEnd(); 20412 } 20413 if (struct.row != null) { 20414 oprot.writeFieldBegin(ROW_FIELD_DESC); 20415 oprot.writeBinary(struct.row); 20416 oprot.writeFieldEnd(); 20417 } 20418 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 20419 oprot.writeI64(struct.timestamp); 20420 oprot.writeFieldEnd(); 20421 if (struct.attributes != null) { 20422 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 20423 { 20424 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 20425 for (Map.Entry<ByteBuffer, ByteBuffer> _iter170 : struct.attributes.entrySet()) 20426 { 20427 oprot.writeBinary(_iter170.getKey()); 20428 oprot.writeBinary(_iter170.getValue()); 20429 } 20430 oprot.writeMapEnd(); 20431 } 20432 oprot.writeFieldEnd(); 20433 } 20434 oprot.writeFieldStop(); 20435 oprot.writeStructEnd(); 20436 } 20437 20438 } 20439 20440 private static class getRowTs_argsTupleSchemeFactory implements SchemeFactory { 20441 public getRowTs_argsTupleScheme getScheme() { 20442 return new getRowTs_argsTupleScheme(); 20443 } 20444 } 20445 20446 private static class getRowTs_argsTupleScheme extends TupleScheme<getRowTs_args> { 20447 20448 @Override 20449 public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException { 20450 TTupleProtocol oprot = (TTupleProtocol) prot; 20451 BitSet optionals = new BitSet(); 20452 if (struct.isSetTableName()) { 20453 optionals.set(0); 20454 } 20455 if (struct.isSetRow()) { 20456 optionals.set(1); 20457 } 20458 if (struct.isSetTimestamp()) { 20459 optionals.set(2); 20460 } 20461 if (struct.isSetAttributes()) { 20462 optionals.set(3); 20463 } 20464 oprot.writeBitSet(optionals, 4); 20465 if (struct.isSetTableName()) { 20466 oprot.writeBinary(struct.tableName); 20467 } 20468 if (struct.isSetRow()) { 20469 oprot.writeBinary(struct.row); 20470 } 20471 if (struct.isSetTimestamp()) { 20472 oprot.writeI64(struct.timestamp); 20473 } 20474 if (struct.isSetAttributes()) { 20475 { 20476 oprot.writeI32(struct.attributes.size()); 20477 for (Map.Entry<ByteBuffer, ByteBuffer> _iter171 : struct.attributes.entrySet()) 20478 { 20479 oprot.writeBinary(_iter171.getKey()); 20480 oprot.writeBinary(_iter171.getValue()); 20481 } 20482 } 20483 } 20484 } 20485 20486 @Override 20487 public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException { 20488 TTupleProtocol iprot = (TTupleProtocol) prot; 20489 BitSet incoming = iprot.readBitSet(4); 20490 if (incoming.get(0)) { 20491 struct.tableName = iprot.readBinary(); 20492 struct.setTableNameIsSet(true); 20493 } 20494 if (incoming.get(1)) { 20495 struct.row = iprot.readBinary(); 20496 struct.setRowIsSet(true); 20497 } 20498 if (incoming.get(2)) { 20499 struct.timestamp = iprot.readI64(); 20500 struct.setTimestampIsSet(true); 20501 } 20502 if (incoming.get(3)) { 20503 { 20504 org.apache.thrift.protocol.TMap _map172 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 20505 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map172.size); 20506 for (int _i173 = 0; _i173 < _map172.size; ++_i173) 20507 { 20508 ByteBuffer _key174; // required 20509 ByteBuffer _val175; // required 20510 _key174 = iprot.readBinary(); 20511 _val175 = iprot.readBinary(); 20512 struct.attributes.put(_key174, _val175); 20513 } 20514 } 20515 struct.setAttributesIsSet(true); 20516 } 20517 } 20518 } 20519 20520 } 20521 20522 public static class getRowTs_result implements org.apache.thrift.TBase<getRowTs_result, getRowTs_result._Fields>, java.io.Serializable, Cloneable { 20523 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_result"); 20524 20525 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 20526 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 20527 20528 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 20529 static { 20530 schemes.put(StandardScheme.class, new getRowTs_resultStandardSchemeFactory()); 20531 schemes.put(TupleScheme.class, new getRowTs_resultTupleSchemeFactory()); 20532 } 20533 20534 public List<TRowResult> success; // required 20535 public IOError io; // required 20536 20537 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 20538 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 20539 SUCCESS((short)0, "success"), 20540 IO((short)1, "io"); 20541 20542 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 20543 20544 static { 20545 for (_Fields field : EnumSet.allOf(_Fields.class)) { 20546 byName.put(field.getFieldName(), field); 20547 } 20548 } 20549 20550 /** 20551 * Find the _Fields constant that matches fieldId, or null if its not found. 20552 */ 20553 public static _Fields findByThriftId(int fieldId) { 20554 switch(fieldId) { 20555 case 0: // SUCCESS 20556 return SUCCESS; 20557 case 1: // IO 20558 return IO; 20559 default: 20560 return null; 20561 } 20562 } 20563 20564 /** 20565 * Find the _Fields constant that matches fieldId, throwing an exception 20566 * if it is not found. 20567 */ 20568 public static _Fields findByThriftIdOrThrow(int fieldId) { 20569 _Fields fields = findByThriftId(fieldId); 20570 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 20571 return fields; 20572 } 20573 20574 /** 20575 * Find the _Fields constant that matches name, or null if its not found. 20576 */ 20577 public static _Fields findByName(String name) { 20578 return byName.get(name); 20579 } 20580 20581 private final short _thriftId; 20582 private final String _fieldName; 20583 20584 _Fields(short thriftId, String fieldName) { 20585 _thriftId = thriftId; 20586 _fieldName = fieldName; 20587 } 20588 20589 public short getThriftFieldId() { 20590 return _thriftId; 20591 } 20592 20593 public String getFieldName() { 20594 return _fieldName; 20595 } 20596 } 20597 20598 // isset id assignments 20599 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 20600 static { 20601 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 20602 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 20603 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 20604 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 20605 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 20606 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 20607 metaDataMap = Collections.unmodifiableMap(tmpMap); 20608 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_result.class, metaDataMap); 20609 } 20610 20611 public getRowTs_result() { 20612 } 20613 20614 public getRowTs_result( 20615 List<TRowResult> success, 20616 IOError io) 20617 { 20618 this(); 20619 this.success = success; 20620 this.io = io; 20621 } 20622 20623 /** 20624 * Performs a deep copy on <i>other</i>. 20625 */ 20626 public getRowTs_result(getRowTs_result other) { 20627 if (other.isSetSuccess()) { 20628 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 20629 for (TRowResult other_element : other.success) { 20630 __this__success.add(new TRowResult(other_element)); 20631 } 20632 this.success = __this__success; 20633 } 20634 if (other.isSetIo()) { 20635 this.io = new IOError(other.io); 20636 } 20637 } 20638 20639 public getRowTs_result deepCopy() { 20640 return new getRowTs_result(this); 20641 } 20642 20643 @Override 20644 public void clear() { 20645 this.success = null; 20646 this.io = null; 20647 } 20648 20649 public int getSuccessSize() { 20650 return (this.success == null) ? 0 : this.success.size(); 20651 } 20652 20653 public java.util.Iterator<TRowResult> getSuccessIterator() { 20654 return (this.success == null) ? null : this.success.iterator(); 20655 } 20656 20657 public void addToSuccess(TRowResult elem) { 20658 if (this.success == null) { 20659 this.success = new ArrayList<TRowResult>(); 20660 } 20661 this.success.add(elem); 20662 } 20663 20664 public List<TRowResult> getSuccess() { 20665 return this.success; 20666 } 20667 20668 public getRowTs_result setSuccess(List<TRowResult> success) { 20669 this.success = success; 20670 return this; 20671 } 20672 20673 public void unsetSuccess() { 20674 this.success = null; 20675 } 20676 20677 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 20678 public boolean isSetSuccess() { 20679 return this.success != null; 20680 } 20681 20682 public void setSuccessIsSet(boolean value) { 20683 if (!value) { 20684 this.success = null; 20685 } 20686 } 20687 20688 public IOError getIo() { 20689 return this.io; 20690 } 20691 20692 public getRowTs_result setIo(IOError io) { 20693 this.io = io; 20694 return this; 20695 } 20696 20697 public void unsetIo() { 20698 this.io = null; 20699 } 20700 20701 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 20702 public boolean isSetIo() { 20703 return this.io != null; 20704 } 20705 20706 public void setIoIsSet(boolean value) { 20707 if (!value) { 20708 this.io = null; 20709 } 20710 } 20711 20712 public void setFieldValue(_Fields field, Object value) { 20713 switch (field) { 20714 case SUCCESS: 20715 if (value == null) { 20716 unsetSuccess(); 20717 } else { 20718 setSuccess((List<TRowResult>)value); 20719 } 20720 break; 20721 20722 case IO: 20723 if (value == null) { 20724 unsetIo(); 20725 } else { 20726 setIo((IOError)value); 20727 } 20728 break; 20729 20730 } 20731 } 20732 20733 public Object getFieldValue(_Fields field) { 20734 switch (field) { 20735 case SUCCESS: 20736 return getSuccess(); 20737 20738 case IO: 20739 return getIo(); 20740 20741 } 20742 throw new IllegalStateException(); 20743 } 20744 20745 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 20746 public boolean isSet(_Fields field) { 20747 if (field == null) { 20748 throw new IllegalArgumentException(); 20749 } 20750 20751 switch (field) { 20752 case SUCCESS: 20753 return isSetSuccess(); 20754 case IO: 20755 return isSetIo(); 20756 } 20757 throw new IllegalStateException(); 20758 } 20759 20760 @Override 20761 public boolean equals(Object that) { 20762 if (that == null) 20763 return false; 20764 if (that instanceof getRowTs_result) 20765 return this.equals((getRowTs_result)that); 20766 return false; 20767 } 20768 20769 public boolean equals(getRowTs_result that) { 20770 if (that == null) 20771 return false; 20772 20773 boolean this_present_success = true && this.isSetSuccess(); 20774 boolean that_present_success = true && that.isSetSuccess(); 20775 if (this_present_success || that_present_success) { 20776 if (!(this_present_success && that_present_success)) 20777 return false; 20778 if (!this.success.equals(that.success)) 20779 return false; 20780 } 20781 20782 boolean this_present_io = true && this.isSetIo(); 20783 boolean that_present_io = true && that.isSetIo(); 20784 if (this_present_io || that_present_io) { 20785 if (!(this_present_io && that_present_io)) 20786 return false; 20787 if (!this.io.equals(that.io)) 20788 return false; 20789 } 20790 20791 return true; 20792 } 20793 20794 @Override 20795 public int hashCode() { 20796 HashCodeBuilder builder = new HashCodeBuilder(); 20797 20798 boolean present_success = true && (isSetSuccess()); 20799 builder.append(present_success); 20800 if (present_success) 20801 builder.append(success); 20802 20803 boolean present_io = true && (isSetIo()); 20804 builder.append(present_io); 20805 if (present_io) 20806 builder.append(io); 20807 20808 return builder.toHashCode(); 20809 } 20810 20811 public int compareTo(getRowTs_result other) { 20812 if (!getClass().equals(other.getClass())) { 20813 return getClass().getName().compareTo(other.getClass().getName()); 20814 } 20815 20816 int lastComparison = 0; 20817 getRowTs_result typedOther = (getRowTs_result)other; 20818 20819 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 20820 if (lastComparison != 0) { 20821 return lastComparison; 20822 } 20823 if (isSetSuccess()) { 20824 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 20825 if (lastComparison != 0) { 20826 return lastComparison; 20827 } 20828 } 20829 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 20830 if (lastComparison != 0) { 20831 return lastComparison; 20832 } 20833 if (isSetIo()) { 20834 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 20835 if (lastComparison != 0) { 20836 return lastComparison; 20837 } 20838 } 20839 return 0; 20840 } 20841 20842 public _Fields fieldForId(int fieldId) { 20843 return _Fields.findByThriftId(fieldId); 20844 } 20845 20846 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 20847 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 20848 } 20849 20850 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 20851 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 20852 } 20853 20854 @Override 20855 public String toString() { 20856 StringBuilder sb = new StringBuilder("getRowTs_result("); 20857 boolean first = true; 20858 20859 sb.append("success:"); 20860 if (this.success == null) { 20861 sb.append("null"); 20862 } else { 20863 sb.append(this.success); 20864 } 20865 first = false; 20866 if (!first) sb.append(", "); 20867 sb.append("io:"); 20868 if (this.io == null) { 20869 sb.append("null"); 20870 } else { 20871 sb.append(this.io); 20872 } 20873 first = false; 20874 sb.append(")"); 20875 return sb.toString(); 20876 } 20877 20878 public void validate() throws org.apache.thrift.TException { 20879 // check for required fields 20880 } 20881 20882 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 20883 try { 20884 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 20885 } catch (org.apache.thrift.TException te) { 20886 throw new java.io.IOException(te); 20887 } 20888 } 20889 20890 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 20891 try { 20892 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 20893 } catch (org.apache.thrift.TException te) { 20894 throw new java.io.IOException(te); 20895 } 20896 } 20897 20898 private static class getRowTs_resultStandardSchemeFactory implements SchemeFactory { 20899 public getRowTs_resultStandardScheme getScheme() { 20900 return new getRowTs_resultStandardScheme(); 20901 } 20902 } 20903 20904 private static class getRowTs_resultStandardScheme extends StandardScheme<getRowTs_result> { 20905 20906 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_result struct) throws org.apache.thrift.TException { 20907 org.apache.thrift.protocol.TField schemeField; 20908 iprot.readStructBegin(); 20909 while (true) 20910 { 20911 schemeField = iprot.readFieldBegin(); 20912 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 20913 break; 20914 } 20915 switch (schemeField.id) { 20916 case 0: // SUCCESS 20917 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 20918 { 20919 org.apache.thrift.protocol.TList _list176 = iprot.readListBegin(); 20920 struct.success = new ArrayList<TRowResult>(_list176.size); 20921 for (int _i177 = 0; _i177 < _list176.size; ++_i177) 20922 { 20923 TRowResult _elem178; // required 20924 _elem178 = new TRowResult(); 20925 _elem178.read(iprot); 20926 struct.success.add(_elem178); 20927 } 20928 iprot.readListEnd(); 20929 } 20930 struct.setSuccessIsSet(true); 20931 } else { 20932 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20933 } 20934 break; 20935 case 1: // IO 20936 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 20937 struct.io = new IOError(); 20938 struct.io.read(iprot); 20939 struct.setIoIsSet(true); 20940 } else { 20941 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20942 } 20943 break; 20944 default: 20945 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 20946 } 20947 iprot.readFieldEnd(); 20948 } 20949 iprot.readStructEnd(); 20950 20951 // check for required fields of primitive type, which can't be checked in the validate method 20952 struct.validate(); 20953 } 20954 20955 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_result struct) throws org.apache.thrift.TException { 20956 struct.validate(); 20957 20958 oprot.writeStructBegin(STRUCT_DESC); 20959 if (struct.success != null) { 20960 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 20961 { 20962 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 20963 for (TRowResult _iter179 : struct.success) 20964 { 20965 _iter179.write(oprot); 20966 } 20967 oprot.writeListEnd(); 20968 } 20969 oprot.writeFieldEnd(); 20970 } 20971 if (struct.io != null) { 20972 oprot.writeFieldBegin(IO_FIELD_DESC); 20973 struct.io.write(oprot); 20974 oprot.writeFieldEnd(); 20975 } 20976 oprot.writeFieldStop(); 20977 oprot.writeStructEnd(); 20978 } 20979 20980 } 20981 20982 private static class getRowTs_resultTupleSchemeFactory implements SchemeFactory { 20983 public getRowTs_resultTupleScheme getScheme() { 20984 return new getRowTs_resultTupleScheme(); 20985 } 20986 } 20987 20988 private static class getRowTs_resultTupleScheme extends TupleScheme<getRowTs_result> { 20989 20990 @Override 20991 public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException { 20992 TTupleProtocol oprot = (TTupleProtocol) prot; 20993 BitSet optionals = new BitSet(); 20994 if (struct.isSetSuccess()) { 20995 optionals.set(0); 20996 } 20997 if (struct.isSetIo()) { 20998 optionals.set(1); 20999 } 21000 oprot.writeBitSet(optionals, 2); 21001 if (struct.isSetSuccess()) { 21002 { 21003 oprot.writeI32(struct.success.size()); 21004 for (TRowResult _iter180 : struct.success) 21005 { 21006 _iter180.write(oprot); 21007 } 21008 } 21009 } 21010 if (struct.isSetIo()) { 21011 struct.io.write(oprot); 21012 } 21013 } 21014 21015 @Override 21016 public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException { 21017 TTupleProtocol iprot = (TTupleProtocol) prot; 21018 BitSet incoming = iprot.readBitSet(2); 21019 if (incoming.get(0)) { 21020 { 21021 org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 21022 struct.success = new ArrayList<TRowResult>(_list181.size); 21023 for (int _i182 = 0; _i182 < _list181.size; ++_i182) 21024 { 21025 TRowResult _elem183; // required 21026 _elem183 = new TRowResult(); 21027 _elem183.read(iprot); 21028 struct.success.add(_elem183); 21029 } 21030 } 21031 struct.setSuccessIsSet(true); 21032 } 21033 if (incoming.get(1)) { 21034 struct.io = new IOError(); 21035 struct.io.read(iprot); 21036 struct.setIoIsSet(true); 21037 } 21038 } 21039 } 21040 21041 } 21042 21043 public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase<getRowWithColumnsTs_args, getRowWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable { 21044 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_args"); 21045 21046 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 21047 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 21048 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 21049 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 21050 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 21051 21052 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 21053 static { 21054 schemes.put(StandardScheme.class, new getRowWithColumnsTs_argsStandardSchemeFactory()); 21055 schemes.put(TupleScheme.class, new getRowWithColumnsTs_argsTupleSchemeFactory()); 21056 } 21057 21058 /** 21059 * name of table 21060 */ 21061 public ByteBuffer tableName; // required 21062 /** 21063 * row key 21064 */ 21065 public ByteBuffer row; // required 21066 /** 21067 * List of columns to return, null for all columns 21068 */ 21069 public List<ByteBuffer> columns; // required 21070 public long timestamp; // required 21071 /** 21072 * Get attributes 21073 */ 21074 public Map<ByteBuffer,ByteBuffer> attributes; // required 21075 21076 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 21077 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 21078 /** 21079 * name of table 21080 */ 21081 TABLE_NAME((short)1, "tableName"), 21082 /** 21083 * row key 21084 */ 21085 ROW((short)2, "row"), 21086 /** 21087 * List of columns to return, null for all columns 21088 */ 21089 COLUMNS((short)3, "columns"), 21090 TIMESTAMP((short)4, "timestamp"), 21091 /** 21092 * Get attributes 21093 */ 21094 ATTRIBUTES((short)5, "attributes"); 21095 21096 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 21097 21098 static { 21099 for (_Fields field : EnumSet.allOf(_Fields.class)) { 21100 byName.put(field.getFieldName(), field); 21101 } 21102 } 21103 21104 /** 21105 * Find the _Fields constant that matches fieldId, or null if its not found. 21106 */ 21107 public static _Fields findByThriftId(int fieldId) { 21108 switch(fieldId) { 21109 case 1: // TABLE_NAME 21110 return TABLE_NAME; 21111 case 2: // ROW 21112 return ROW; 21113 case 3: // COLUMNS 21114 return COLUMNS; 21115 case 4: // TIMESTAMP 21116 return TIMESTAMP; 21117 case 5: // ATTRIBUTES 21118 return ATTRIBUTES; 21119 default: 21120 return null; 21121 } 21122 } 21123 21124 /** 21125 * Find the _Fields constant that matches fieldId, throwing an exception 21126 * if it is not found. 21127 */ 21128 public static _Fields findByThriftIdOrThrow(int fieldId) { 21129 _Fields fields = findByThriftId(fieldId); 21130 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 21131 return fields; 21132 } 21133 21134 /** 21135 * Find the _Fields constant that matches name, or null if its not found. 21136 */ 21137 public static _Fields findByName(String name) { 21138 return byName.get(name); 21139 } 21140 21141 private final short _thriftId; 21142 private final String _fieldName; 21143 21144 _Fields(short thriftId, String fieldName) { 21145 _thriftId = thriftId; 21146 _fieldName = fieldName; 21147 } 21148 21149 public short getThriftFieldId() { 21150 return _thriftId; 21151 } 21152 21153 public String getFieldName() { 21154 return _fieldName; 21155 } 21156 } 21157 21158 // isset id assignments 21159 private static final int __TIMESTAMP_ISSET_ID = 0; 21160 private BitSet __isset_bit_vector = new BitSet(1); 21161 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 21162 static { 21163 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 21164 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 21165 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 21166 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 21167 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 21168 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 21169 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 21170 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 21171 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 21172 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 21173 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 21174 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 21175 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 21176 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 21177 metaDataMap = Collections.unmodifiableMap(tmpMap); 21178 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_args.class, metaDataMap); 21179 } 21180 21181 public getRowWithColumnsTs_args() { 21182 } 21183 21184 public getRowWithColumnsTs_args( 21185 ByteBuffer tableName, 21186 ByteBuffer row, 21187 List<ByteBuffer> columns, 21188 long timestamp, 21189 Map<ByteBuffer,ByteBuffer> attributes) 21190 { 21191 this(); 21192 this.tableName = tableName; 21193 this.row = row; 21194 this.columns = columns; 21195 this.timestamp = timestamp; 21196 setTimestampIsSet(true); 21197 this.attributes = attributes; 21198 } 21199 21200 /** 21201 * Performs a deep copy on <i>other</i>. 21202 */ 21203 public getRowWithColumnsTs_args(getRowWithColumnsTs_args other) { 21204 __isset_bit_vector.clear(); 21205 __isset_bit_vector.or(other.__isset_bit_vector); 21206 if (other.isSetTableName()) { 21207 this.tableName = other.tableName; 21208 } 21209 if (other.isSetRow()) { 21210 this.row = other.row; 21211 } 21212 if (other.isSetColumns()) { 21213 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 21214 for (ByteBuffer other_element : other.columns) { 21215 __this__columns.add(other_element); 21216 } 21217 this.columns = __this__columns; 21218 } 21219 this.timestamp = other.timestamp; 21220 if (other.isSetAttributes()) { 21221 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 21222 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 21223 21224 ByteBuffer other_element_key = other_element.getKey(); 21225 ByteBuffer other_element_value = other_element.getValue(); 21226 21227 ByteBuffer __this__attributes_copy_key = other_element_key; 21228 21229 ByteBuffer __this__attributes_copy_value = other_element_value; 21230 21231 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 21232 } 21233 this.attributes = __this__attributes; 21234 } 21235 } 21236 21237 public getRowWithColumnsTs_args deepCopy() { 21238 return new getRowWithColumnsTs_args(this); 21239 } 21240 21241 @Override 21242 public void clear() { 21243 this.tableName = null; 21244 this.row = null; 21245 this.columns = null; 21246 setTimestampIsSet(false); 21247 this.timestamp = 0; 21248 this.attributes = null; 21249 } 21250 21251 /** 21252 * name of table 21253 */ 21254 public byte[] getTableName() { 21255 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 21256 return tableName == null ? null : tableName.array(); 21257 } 21258 21259 public ByteBuffer bufferForTableName() { 21260 return tableName; 21261 } 21262 21263 /** 21264 * name of table 21265 */ 21266 public getRowWithColumnsTs_args setTableName(byte[] tableName) { 21267 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 21268 return this; 21269 } 21270 21271 public getRowWithColumnsTs_args setTableName(ByteBuffer tableName) { 21272 this.tableName = tableName; 21273 return this; 21274 } 21275 21276 public void unsetTableName() { 21277 this.tableName = null; 21278 } 21279 21280 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 21281 public boolean isSetTableName() { 21282 return this.tableName != null; 21283 } 21284 21285 public void setTableNameIsSet(boolean value) { 21286 if (!value) { 21287 this.tableName = null; 21288 } 21289 } 21290 21291 /** 21292 * row key 21293 */ 21294 public byte[] getRow() { 21295 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 21296 return row == null ? null : row.array(); 21297 } 21298 21299 public ByteBuffer bufferForRow() { 21300 return row; 21301 } 21302 21303 /** 21304 * row key 21305 */ 21306 public getRowWithColumnsTs_args setRow(byte[] row) { 21307 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 21308 return this; 21309 } 21310 21311 public getRowWithColumnsTs_args setRow(ByteBuffer row) { 21312 this.row = row; 21313 return this; 21314 } 21315 21316 public void unsetRow() { 21317 this.row = null; 21318 } 21319 21320 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 21321 public boolean isSetRow() { 21322 return this.row != null; 21323 } 21324 21325 public void setRowIsSet(boolean value) { 21326 if (!value) { 21327 this.row = null; 21328 } 21329 } 21330 21331 public int getColumnsSize() { 21332 return (this.columns == null) ? 0 : this.columns.size(); 21333 } 21334 21335 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 21336 return (this.columns == null) ? null : this.columns.iterator(); 21337 } 21338 21339 public void addToColumns(ByteBuffer elem) { 21340 if (this.columns == null) { 21341 this.columns = new ArrayList<ByteBuffer>(); 21342 } 21343 this.columns.add(elem); 21344 } 21345 21346 /** 21347 * List of columns to return, null for all columns 21348 */ 21349 public List<ByteBuffer> getColumns() { 21350 return this.columns; 21351 } 21352 21353 /** 21354 * List of columns to return, null for all columns 21355 */ 21356 public getRowWithColumnsTs_args setColumns(List<ByteBuffer> columns) { 21357 this.columns = columns; 21358 return this; 21359 } 21360 21361 public void unsetColumns() { 21362 this.columns = null; 21363 } 21364 21365 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 21366 public boolean isSetColumns() { 21367 return this.columns != null; 21368 } 21369 21370 public void setColumnsIsSet(boolean value) { 21371 if (!value) { 21372 this.columns = null; 21373 } 21374 } 21375 21376 public long getTimestamp() { 21377 return this.timestamp; 21378 } 21379 21380 public getRowWithColumnsTs_args setTimestamp(long timestamp) { 21381 this.timestamp = timestamp; 21382 setTimestampIsSet(true); 21383 return this; 21384 } 21385 21386 public void unsetTimestamp() { 21387 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 21388 } 21389 21390 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 21391 public boolean isSetTimestamp() { 21392 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 21393 } 21394 21395 public void setTimestampIsSet(boolean value) { 21396 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 21397 } 21398 21399 public int getAttributesSize() { 21400 return (this.attributes == null) ? 0 : this.attributes.size(); 21401 } 21402 21403 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 21404 if (this.attributes == null) { 21405 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 21406 } 21407 this.attributes.put(key, val); 21408 } 21409 21410 /** 21411 * Get attributes 21412 */ 21413 public Map<ByteBuffer,ByteBuffer> getAttributes() { 21414 return this.attributes; 21415 } 21416 21417 /** 21418 * Get attributes 21419 */ 21420 public getRowWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 21421 this.attributes = attributes; 21422 return this; 21423 } 21424 21425 public void unsetAttributes() { 21426 this.attributes = null; 21427 } 21428 21429 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 21430 public boolean isSetAttributes() { 21431 return this.attributes != null; 21432 } 21433 21434 public void setAttributesIsSet(boolean value) { 21435 if (!value) { 21436 this.attributes = null; 21437 } 21438 } 21439 21440 public void setFieldValue(_Fields field, Object value) { 21441 switch (field) { 21442 case TABLE_NAME: 21443 if (value == null) { 21444 unsetTableName(); 21445 } else { 21446 setTableName((ByteBuffer)value); 21447 } 21448 break; 21449 21450 case ROW: 21451 if (value == null) { 21452 unsetRow(); 21453 } else { 21454 setRow((ByteBuffer)value); 21455 } 21456 break; 21457 21458 case COLUMNS: 21459 if (value == null) { 21460 unsetColumns(); 21461 } else { 21462 setColumns((List<ByteBuffer>)value); 21463 } 21464 break; 21465 21466 case TIMESTAMP: 21467 if (value == null) { 21468 unsetTimestamp(); 21469 } else { 21470 setTimestamp((Long)value); 21471 } 21472 break; 21473 21474 case ATTRIBUTES: 21475 if (value == null) { 21476 unsetAttributes(); 21477 } else { 21478 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 21479 } 21480 break; 21481 21482 } 21483 } 21484 21485 public Object getFieldValue(_Fields field) { 21486 switch (field) { 21487 case TABLE_NAME: 21488 return getTableName(); 21489 21490 case ROW: 21491 return getRow(); 21492 21493 case COLUMNS: 21494 return getColumns(); 21495 21496 case TIMESTAMP: 21497 return Long.valueOf(getTimestamp()); 21498 21499 case ATTRIBUTES: 21500 return getAttributes(); 21501 21502 } 21503 throw new IllegalStateException(); 21504 } 21505 21506 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 21507 public boolean isSet(_Fields field) { 21508 if (field == null) { 21509 throw new IllegalArgumentException(); 21510 } 21511 21512 switch (field) { 21513 case TABLE_NAME: 21514 return isSetTableName(); 21515 case ROW: 21516 return isSetRow(); 21517 case COLUMNS: 21518 return isSetColumns(); 21519 case TIMESTAMP: 21520 return isSetTimestamp(); 21521 case ATTRIBUTES: 21522 return isSetAttributes(); 21523 } 21524 throw new IllegalStateException(); 21525 } 21526 21527 @Override 21528 public boolean equals(Object that) { 21529 if (that == null) 21530 return false; 21531 if (that instanceof getRowWithColumnsTs_args) 21532 return this.equals((getRowWithColumnsTs_args)that); 21533 return false; 21534 } 21535 21536 public boolean equals(getRowWithColumnsTs_args that) { 21537 if (that == null) 21538 return false; 21539 21540 boolean this_present_tableName = true && this.isSetTableName(); 21541 boolean that_present_tableName = true && that.isSetTableName(); 21542 if (this_present_tableName || that_present_tableName) { 21543 if (!(this_present_tableName && that_present_tableName)) 21544 return false; 21545 if (!this.tableName.equals(that.tableName)) 21546 return false; 21547 } 21548 21549 boolean this_present_row = true && this.isSetRow(); 21550 boolean that_present_row = true && that.isSetRow(); 21551 if (this_present_row || that_present_row) { 21552 if (!(this_present_row && that_present_row)) 21553 return false; 21554 if (!this.row.equals(that.row)) 21555 return false; 21556 } 21557 21558 boolean this_present_columns = true && this.isSetColumns(); 21559 boolean that_present_columns = true && that.isSetColumns(); 21560 if (this_present_columns || that_present_columns) { 21561 if (!(this_present_columns && that_present_columns)) 21562 return false; 21563 if (!this.columns.equals(that.columns)) 21564 return false; 21565 } 21566 21567 boolean this_present_timestamp = true; 21568 boolean that_present_timestamp = true; 21569 if (this_present_timestamp || that_present_timestamp) { 21570 if (!(this_present_timestamp && that_present_timestamp)) 21571 return false; 21572 if (this.timestamp != that.timestamp) 21573 return false; 21574 } 21575 21576 boolean this_present_attributes = true && this.isSetAttributes(); 21577 boolean that_present_attributes = true && that.isSetAttributes(); 21578 if (this_present_attributes || that_present_attributes) { 21579 if (!(this_present_attributes && that_present_attributes)) 21580 return false; 21581 if (!this.attributes.equals(that.attributes)) 21582 return false; 21583 } 21584 21585 return true; 21586 } 21587 21588 @Override 21589 public int hashCode() { 21590 HashCodeBuilder builder = new HashCodeBuilder(); 21591 21592 boolean present_tableName = true && (isSetTableName()); 21593 builder.append(present_tableName); 21594 if (present_tableName) 21595 builder.append(tableName); 21596 21597 boolean present_row = true && (isSetRow()); 21598 builder.append(present_row); 21599 if (present_row) 21600 builder.append(row); 21601 21602 boolean present_columns = true && (isSetColumns()); 21603 builder.append(present_columns); 21604 if (present_columns) 21605 builder.append(columns); 21606 21607 boolean present_timestamp = true; 21608 builder.append(present_timestamp); 21609 if (present_timestamp) 21610 builder.append(timestamp); 21611 21612 boolean present_attributes = true && (isSetAttributes()); 21613 builder.append(present_attributes); 21614 if (present_attributes) 21615 builder.append(attributes); 21616 21617 return builder.toHashCode(); 21618 } 21619 21620 public int compareTo(getRowWithColumnsTs_args other) { 21621 if (!getClass().equals(other.getClass())) { 21622 return getClass().getName().compareTo(other.getClass().getName()); 21623 } 21624 21625 int lastComparison = 0; 21626 getRowWithColumnsTs_args typedOther = (getRowWithColumnsTs_args)other; 21627 21628 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 21629 if (lastComparison != 0) { 21630 return lastComparison; 21631 } 21632 if (isSetTableName()) { 21633 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 21634 if (lastComparison != 0) { 21635 return lastComparison; 21636 } 21637 } 21638 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 21639 if (lastComparison != 0) { 21640 return lastComparison; 21641 } 21642 if (isSetRow()) { 21643 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 21644 if (lastComparison != 0) { 21645 return lastComparison; 21646 } 21647 } 21648 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 21649 if (lastComparison != 0) { 21650 return lastComparison; 21651 } 21652 if (isSetColumns()) { 21653 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 21654 if (lastComparison != 0) { 21655 return lastComparison; 21656 } 21657 } 21658 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 21659 if (lastComparison != 0) { 21660 return lastComparison; 21661 } 21662 if (isSetTimestamp()) { 21663 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 21664 if (lastComparison != 0) { 21665 return lastComparison; 21666 } 21667 } 21668 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 21669 if (lastComparison != 0) { 21670 return lastComparison; 21671 } 21672 if (isSetAttributes()) { 21673 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 21674 if (lastComparison != 0) { 21675 return lastComparison; 21676 } 21677 } 21678 return 0; 21679 } 21680 21681 public _Fields fieldForId(int fieldId) { 21682 return _Fields.findByThriftId(fieldId); 21683 } 21684 21685 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 21686 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 21687 } 21688 21689 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 21690 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 21691 } 21692 21693 @Override 21694 public String toString() { 21695 StringBuilder sb = new StringBuilder("getRowWithColumnsTs_args("); 21696 boolean first = true; 21697 21698 sb.append("tableName:"); 21699 if (this.tableName == null) { 21700 sb.append("null"); 21701 } else { 21702 sb.append(this.tableName); 21703 } 21704 first = false; 21705 if (!first) sb.append(", "); 21706 sb.append("row:"); 21707 if (this.row == null) { 21708 sb.append("null"); 21709 } else { 21710 sb.append(this.row); 21711 } 21712 first = false; 21713 if (!first) sb.append(", "); 21714 sb.append("columns:"); 21715 if (this.columns == null) { 21716 sb.append("null"); 21717 } else { 21718 sb.append(this.columns); 21719 } 21720 first = false; 21721 if (!first) sb.append(", "); 21722 sb.append("timestamp:"); 21723 sb.append(this.timestamp); 21724 first = false; 21725 if (!first) sb.append(", "); 21726 sb.append("attributes:"); 21727 if (this.attributes == null) { 21728 sb.append("null"); 21729 } else { 21730 sb.append(this.attributes); 21731 } 21732 first = false; 21733 sb.append(")"); 21734 return sb.toString(); 21735 } 21736 21737 public void validate() throws org.apache.thrift.TException { 21738 // check for required fields 21739 } 21740 21741 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 21742 try { 21743 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 21744 } catch (org.apache.thrift.TException te) { 21745 throw new java.io.IOException(te); 21746 } 21747 } 21748 21749 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 21750 try { 21751 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 21752 __isset_bit_vector = new BitSet(1); 21753 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 21754 } catch (org.apache.thrift.TException te) { 21755 throw new java.io.IOException(te); 21756 } 21757 } 21758 21759 private static class getRowWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory { 21760 public getRowWithColumnsTs_argsStandardScheme getScheme() { 21761 return new getRowWithColumnsTs_argsStandardScheme(); 21762 } 21763 } 21764 21765 private static class getRowWithColumnsTs_argsStandardScheme extends StandardScheme<getRowWithColumnsTs_args> { 21766 21767 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { 21768 org.apache.thrift.protocol.TField schemeField; 21769 iprot.readStructBegin(); 21770 while (true) 21771 { 21772 schemeField = iprot.readFieldBegin(); 21773 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 21774 break; 21775 } 21776 switch (schemeField.id) { 21777 case 1: // TABLE_NAME 21778 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 21779 struct.tableName = iprot.readBinary(); 21780 struct.setTableNameIsSet(true); 21781 } else { 21782 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21783 } 21784 break; 21785 case 2: // ROW 21786 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 21787 struct.row = iprot.readBinary(); 21788 struct.setRowIsSet(true); 21789 } else { 21790 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21791 } 21792 break; 21793 case 3: // COLUMNS 21794 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 21795 { 21796 org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); 21797 struct.columns = new ArrayList<ByteBuffer>(_list184.size); 21798 for (int _i185 = 0; _i185 < _list184.size; ++_i185) 21799 { 21800 ByteBuffer _elem186; // required 21801 _elem186 = iprot.readBinary(); 21802 struct.columns.add(_elem186); 21803 } 21804 iprot.readListEnd(); 21805 } 21806 struct.setColumnsIsSet(true); 21807 } else { 21808 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21809 } 21810 break; 21811 case 4: // TIMESTAMP 21812 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 21813 struct.timestamp = iprot.readI64(); 21814 struct.setTimestampIsSet(true); 21815 } else { 21816 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21817 } 21818 break; 21819 case 5: // ATTRIBUTES 21820 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 21821 { 21822 org.apache.thrift.protocol.TMap _map187 = iprot.readMapBegin(); 21823 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map187.size); 21824 for (int _i188 = 0; _i188 < _map187.size; ++_i188) 21825 { 21826 ByteBuffer _key189; // required 21827 ByteBuffer _val190; // required 21828 _key189 = iprot.readBinary(); 21829 _val190 = iprot.readBinary(); 21830 struct.attributes.put(_key189, _val190); 21831 } 21832 iprot.readMapEnd(); 21833 } 21834 struct.setAttributesIsSet(true); 21835 } else { 21836 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21837 } 21838 break; 21839 default: 21840 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 21841 } 21842 iprot.readFieldEnd(); 21843 } 21844 iprot.readStructEnd(); 21845 21846 // check for required fields of primitive type, which can't be checked in the validate method 21847 struct.validate(); 21848 } 21849 21850 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { 21851 struct.validate(); 21852 21853 oprot.writeStructBegin(STRUCT_DESC); 21854 if (struct.tableName != null) { 21855 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 21856 oprot.writeBinary(struct.tableName); 21857 oprot.writeFieldEnd(); 21858 } 21859 if (struct.row != null) { 21860 oprot.writeFieldBegin(ROW_FIELD_DESC); 21861 oprot.writeBinary(struct.row); 21862 oprot.writeFieldEnd(); 21863 } 21864 if (struct.columns != null) { 21865 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 21866 { 21867 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 21868 for (ByteBuffer _iter191 : struct.columns) 21869 { 21870 oprot.writeBinary(_iter191); 21871 } 21872 oprot.writeListEnd(); 21873 } 21874 oprot.writeFieldEnd(); 21875 } 21876 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 21877 oprot.writeI64(struct.timestamp); 21878 oprot.writeFieldEnd(); 21879 if (struct.attributes != null) { 21880 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 21881 { 21882 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 21883 for (Map.Entry<ByteBuffer, ByteBuffer> _iter192 : struct.attributes.entrySet()) 21884 { 21885 oprot.writeBinary(_iter192.getKey()); 21886 oprot.writeBinary(_iter192.getValue()); 21887 } 21888 oprot.writeMapEnd(); 21889 } 21890 oprot.writeFieldEnd(); 21891 } 21892 oprot.writeFieldStop(); 21893 oprot.writeStructEnd(); 21894 } 21895 21896 } 21897 21898 private static class getRowWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory { 21899 public getRowWithColumnsTs_argsTupleScheme getScheme() { 21900 return new getRowWithColumnsTs_argsTupleScheme(); 21901 } 21902 } 21903 21904 private static class getRowWithColumnsTs_argsTupleScheme extends TupleScheme<getRowWithColumnsTs_args> { 21905 21906 @Override 21907 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { 21908 TTupleProtocol oprot = (TTupleProtocol) prot; 21909 BitSet optionals = new BitSet(); 21910 if (struct.isSetTableName()) { 21911 optionals.set(0); 21912 } 21913 if (struct.isSetRow()) { 21914 optionals.set(1); 21915 } 21916 if (struct.isSetColumns()) { 21917 optionals.set(2); 21918 } 21919 if (struct.isSetTimestamp()) { 21920 optionals.set(3); 21921 } 21922 if (struct.isSetAttributes()) { 21923 optionals.set(4); 21924 } 21925 oprot.writeBitSet(optionals, 5); 21926 if (struct.isSetTableName()) { 21927 oprot.writeBinary(struct.tableName); 21928 } 21929 if (struct.isSetRow()) { 21930 oprot.writeBinary(struct.row); 21931 } 21932 if (struct.isSetColumns()) { 21933 { 21934 oprot.writeI32(struct.columns.size()); 21935 for (ByteBuffer _iter193 : struct.columns) 21936 { 21937 oprot.writeBinary(_iter193); 21938 } 21939 } 21940 } 21941 if (struct.isSetTimestamp()) { 21942 oprot.writeI64(struct.timestamp); 21943 } 21944 if (struct.isSetAttributes()) { 21945 { 21946 oprot.writeI32(struct.attributes.size()); 21947 for (Map.Entry<ByteBuffer, ByteBuffer> _iter194 : struct.attributes.entrySet()) 21948 { 21949 oprot.writeBinary(_iter194.getKey()); 21950 oprot.writeBinary(_iter194.getValue()); 21951 } 21952 } 21953 } 21954 } 21955 21956 @Override 21957 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException { 21958 TTupleProtocol iprot = (TTupleProtocol) prot; 21959 BitSet incoming = iprot.readBitSet(5); 21960 if (incoming.get(0)) { 21961 struct.tableName = iprot.readBinary(); 21962 struct.setTableNameIsSet(true); 21963 } 21964 if (incoming.get(1)) { 21965 struct.row = iprot.readBinary(); 21966 struct.setRowIsSet(true); 21967 } 21968 if (incoming.get(2)) { 21969 { 21970 org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 21971 struct.columns = new ArrayList<ByteBuffer>(_list195.size); 21972 for (int _i196 = 0; _i196 < _list195.size; ++_i196) 21973 { 21974 ByteBuffer _elem197; // required 21975 _elem197 = iprot.readBinary(); 21976 struct.columns.add(_elem197); 21977 } 21978 } 21979 struct.setColumnsIsSet(true); 21980 } 21981 if (incoming.get(3)) { 21982 struct.timestamp = iprot.readI64(); 21983 struct.setTimestampIsSet(true); 21984 } 21985 if (incoming.get(4)) { 21986 { 21987 org.apache.thrift.protocol.TMap _map198 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 21988 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map198.size); 21989 for (int _i199 = 0; _i199 < _map198.size; ++_i199) 21990 { 21991 ByteBuffer _key200; // required 21992 ByteBuffer _val201; // required 21993 _key200 = iprot.readBinary(); 21994 _val201 = iprot.readBinary(); 21995 struct.attributes.put(_key200, _val201); 21996 } 21997 } 21998 struct.setAttributesIsSet(true); 21999 } 22000 } 22001 } 22002 22003 } 22004 22005 public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase<getRowWithColumnsTs_result, getRowWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable { 22006 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_result"); 22007 22008 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 22009 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 22010 22011 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 22012 static { 22013 schemes.put(StandardScheme.class, new getRowWithColumnsTs_resultStandardSchemeFactory()); 22014 schemes.put(TupleScheme.class, new getRowWithColumnsTs_resultTupleSchemeFactory()); 22015 } 22016 22017 public List<TRowResult> success; // required 22018 public IOError io; // required 22019 22020 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 22021 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 22022 SUCCESS((short)0, "success"), 22023 IO((short)1, "io"); 22024 22025 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 22026 22027 static { 22028 for (_Fields field : EnumSet.allOf(_Fields.class)) { 22029 byName.put(field.getFieldName(), field); 22030 } 22031 } 22032 22033 /** 22034 * Find the _Fields constant that matches fieldId, or null if its not found. 22035 */ 22036 public static _Fields findByThriftId(int fieldId) { 22037 switch(fieldId) { 22038 case 0: // SUCCESS 22039 return SUCCESS; 22040 case 1: // IO 22041 return IO; 22042 default: 22043 return null; 22044 } 22045 } 22046 22047 /** 22048 * Find the _Fields constant that matches fieldId, throwing an exception 22049 * if it is not found. 22050 */ 22051 public static _Fields findByThriftIdOrThrow(int fieldId) { 22052 _Fields fields = findByThriftId(fieldId); 22053 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 22054 return fields; 22055 } 22056 22057 /** 22058 * Find the _Fields constant that matches name, or null if its not found. 22059 */ 22060 public static _Fields findByName(String name) { 22061 return byName.get(name); 22062 } 22063 22064 private final short _thriftId; 22065 private final String _fieldName; 22066 22067 _Fields(short thriftId, String fieldName) { 22068 _thriftId = thriftId; 22069 _fieldName = fieldName; 22070 } 22071 22072 public short getThriftFieldId() { 22073 return _thriftId; 22074 } 22075 22076 public String getFieldName() { 22077 return _fieldName; 22078 } 22079 } 22080 22081 // isset id assignments 22082 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 22083 static { 22084 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 22085 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 22086 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 22087 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 22088 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 22089 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 22090 metaDataMap = Collections.unmodifiableMap(tmpMap); 22091 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_result.class, metaDataMap); 22092 } 22093 22094 public getRowWithColumnsTs_result() { 22095 } 22096 22097 public getRowWithColumnsTs_result( 22098 List<TRowResult> success, 22099 IOError io) 22100 { 22101 this(); 22102 this.success = success; 22103 this.io = io; 22104 } 22105 22106 /** 22107 * Performs a deep copy on <i>other</i>. 22108 */ 22109 public getRowWithColumnsTs_result(getRowWithColumnsTs_result other) { 22110 if (other.isSetSuccess()) { 22111 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 22112 for (TRowResult other_element : other.success) { 22113 __this__success.add(new TRowResult(other_element)); 22114 } 22115 this.success = __this__success; 22116 } 22117 if (other.isSetIo()) { 22118 this.io = new IOError(other.io); 22119 } 22120 } 22121 22122 public getRowWithColumnsTs_result deepCopy() { 22123 return new getRowWithColumnsTs_result(this); 22124 } 22125 22126 @Override 22127 public void clear() { 22128 this.success = null; 22129 this.io = null; 22130 } 22131 22132 public int getSuccessSize() { 22133 return (this.success == null) ? 0 : this.success.size(); 22134 } 22135 22136 public java.util.Iterator<TRowResult> getSuccessIterator() { 22137 return (this.success == null) ? null : this.success.iterator(); 22138 } 22139 22140 public void addToSuccess(TRowResult elem) { 22141 if (this.success == null) { 22142 this.success = new ArrayList<TRowResult>(); 22143 } 22144 this.success.add(elem); 22145 } 22146 22147 public List<TRowResult> getSuccess() { 22148 return this.success; 22149 } 22150 22151 public getRowWithColumnsTs_result setSuccess(List<TRowResult> success) { 22152 this.success = success; 22153 return this; 22154 } 22155 22156 public void unsetSuccess() { 22157 this.success = null; 22158 } 22159 22160 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 22161 public boolean isSetSuccess() { 22162 return this.success != null; 22163 } 22164 22165 public void setSuccessIsSet(boolean value) { 22166 if (!value) { 22167 this.success = null; 22168 } 22169 } 22170 22171 public IOError getIo() { 22172 return this.io; 22173 } 22174 22175 public getRowWithColumnsTs_result setIo(IOError io) { 22176 this.io = io; 22177 return this; 22178 } 22179 22180 public void unsetIo() { 22181 this.io = null; 22182 } 22183 22184 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 22185 public boolean isSetIo() { 22186 return this.io != null; 22187 } 22188 22189 public void setIoIsSet(boolean value) { 22190 if (!value) { 22191 this.io = null; 22192 } 22193 } 22194 22195 public void setFieldValue(_Fields field, Object value) { 22196 switch (field) { 22197 case SUCCESS: 22198 if (value == null) { 22199 unsetSuccess(); 22200 } else { 22201 setSuccess((List<TRowResult>)value); 22202 } 22203 break; 22204 22205 case IO: 22206 if (value == null) { 22207 unsetIo(); 22208 } else { 22209 setIo((IOError)value); 22210 } 22211 break; 22212 22213 } 22214 } 22215 22216 public Object getFieldValue(_Fields field) { 22217 switch (field) { 22218 case SUCCESS: 22219 return getSuccess(); 22220 22221 case IO: 22222 return getIo(); 22223 22224 } 22225 throw new IllegalStateException(); 22226 } 22227 22228 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 22229 public boolean isSet(_Fields field) { 22230 if (field == null) { 22231 throw new IllegalArgumentException(); 22232 } 22233 22234 switch (field) { 22235 case SUCCESS: 22236 return isSetSuccess(); 22237 case IO: 22238 return isSetIo(); 22239 } 22240 throw new IllegalStateException(); 22241 } 22242 22243 @Override 22244 public boolean equals(Object that) { 22245 if (that == null) 22246 return false; 22247 if (that instanceof getRowWithColumnsTs_result) 22248 return this.equals((getRowWithColumnsTs_result)that); 22249 return false; 22250 } 22251 22252 public boolean equals(getRowWithColumnsTs_result that) { 22253 if (that == null) 22254 return false; 22255 22256 boolean this_present_success = true && this.isSetSuccess(); 22257 boolean that_present_success = true && that.isSetSuccess(); 22258 if (this_present_success || that_present_success) { 22259 if (!(this_present_success && that_present_success)) 22260 return false; 22261 if (!this.success.equals(that.success)) 22262 return false; 22263 } 22264 22265 boolean this_present_io = true && this.isSetIo(); 22266 boolean that_present_io = true && that.isSetIo(); 22267 if (this_present_io || that_present_io) { 22268 if (!(this_present_io && that_present_io)) 22269 return false; 22270 if (!this.io.equals(that.io)) 22271 return false; 22272 } 22273 22274 return true; 22275 } 22276 22277 @Override 22278 public int hashCode() { 22279 HashCodeBuilder builder = new HashCodeBuilder(); 22280 22281 boolean present_success = true && (isSetSuccess()); 22282 builder.append(present_success); 22283 if (present_success) 22284 builder.append(success); 22285 22286 boolean present_io = true && (isSetIo()); 22287 builder.append(present_io); 22288 if (present_io) 22289 builder.append(io); 22290 22291 return builder.toHashCode(); 22292 } 22293 22294 public int compareTo(getRowWithColumnsTs_result other) { 22295 if (!getClass().equals(other.getClass())) { 22296 return getClass().getName().compareTo(other.getClass().getName()); 22297 } 22298 22299 int lastComparison = 0; 22300 getRowWithColumnsTs_result typedOther = (getRowWithColumnsTs_result)other; 22301 22302 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 22303 if (lastComparison != 0) { 22304 return lastComparison; 22305 } 22306 if (isSetSuccess()) { 22307 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 22308 if (lastComparison != 0) { 22309 return lastComparison; 22310 } 22311 } 22312 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 22313 if (lastComparison != 0) { 22314 return lastComparison; 22315 } 22316 if (isSetIo()) { 22317 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 22318 if (lastComparison != 0) { 22319 return lastComparison; 22320 } 22321 } 22322 return 0; 22323 } 22324 22325 public _Fields fieldForId(int fieldId) { 22326 return _Fields.findByThriftId(fieldId); 22327 } 22328 22329 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 22330 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 22331 } 22332 22333 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 22334 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 22335 } 22336 22337 @Override 22338 public String toString() { 22339 StringBuilder sb = new StringBuilder("getRowWithColumnsTs_result("); 22340 boolean first = true; 22341 22342 sb.append("success:"); 22343 if (this.success == null) { 22344 sb.append("null"); 22345 } else { 22346 sb.append(this.success); 22347 } 22348 first = false; 22349 if (!first) sb.append(", "); 22350 sb.append("io:"); 22351 if (this.io == null) { 22352 sb.append("null"); 22353 } else { 22354 sb.append(this.io); 22355 } 22356 first = false; 22357 sb.append(")"); 22358 return sb.toString(); 22359 } 22360 22361 public void validate() throws org.apache.thrift.TException { 22362 // check for required fields 22363 } 22364 22365 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 22366 try { 22367 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 22368 } catch (org.apache.thrift.TException te) { 22369 throw new java.io.IOException(te); 22370 } 22371 } 22372 22373 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 22374 try { 22375 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 22376 } catch (org.apache.thrift.TException te) { 22377 throw new java.io.IOException(te); 22378 } 22379 } 22380 22381 private static class getRowWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory { 22382 public getRowWithColumnsTs_resultStandardScheme getScheme() { 22383 return new getRowWithColumnsTs_resultStandardScheme(); 22384 } 22385 } 22386 22387 private static class getRowWithColumnsTs_resultStandardScheme extends StandardScheme<getRowWithColumnsTs_result> { 22388 22389 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { 22390 org.apache.thrift.protocol.TField schemeField; 22391 iprot.readStructBegin(); 22392 while (true) 22393 { 22394 schemeField = iprot.readFieldBegin(); 22395 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 22396 break; 22397 } 22398 switch (schemeField.id) { 22399 case 0: // SUCCESS 22400 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 22401 { 22402 org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); 22403 struct.success = new ArrayList<TRowResult>(_list202.size); 22404 for (int _i203 = 0; _i203 < _list202.size; ++_i203) 22405 { 22406 TRowResult _elem204; // required 22407 _elem204 = new TRowResult(); 22408 _elem204.read(iprot); 22409 struct.success.add(_elem204); 22410 } 22411 iprot.readListEnd(); 22412 } 22413 struct.setSuccessIsSet(true); 22414 } else { 22415 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 22416 } 22417 break; 22418 case 1: // IO 22419 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 22420 struct.io = new IOError(); 22421 struct.io.read(iprot); 22422 struct.setIoIsSet(true); 22423 } else { 22424 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 22425 } 22426 break; 22427 default: 22428 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 22429 } 22430 iprot.readFieldEnd(); 22431 } 22432 iprot.readStructEnd(); 22433 22434 // check for required fields of primitive type, which can't be checked in the validate method 22435 struct.validate(); 22436 } 22437 22438 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { 22439 struct.validate(); 22440 22441 oprot.writeStructBegin(STRUCT_DESC); 22442 if (struct.success != null) { 22443 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 22444 { 22445 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 22446 for (TRowResult _iter205 : struct.success) 22447 { 22448 _iter205.write(oprot); 22449 } 22450 oprot.writeListEnd(); 22451 } 22452 oprot.writeFieldEnd(); 22453 } 22454 if (struct.io != null) { 22455 oprot.writeFieldBegin(IO_FIELD_DESC); 22456 struct.io.write(oprot); 22457 oprot.writeFieldEnd(); 22458 } 22459 oprot.writeFieldStop(); 22460 oprot.writeStructEnd(); 22461 } 22462 22463 } 22464 22465 private static class getRowWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory { 22466 public getRowWithColumnsTs_resultTupleScheme getScheme() { 22467 return new getRowWithColumnsTs_resultTupleScheme(); 22468 } 22469 } 22470 22471 private static class getRowWithColumnsTs_resultTupleScheme extends TupleScheme<getRowWithColumnsTs_result> { 22472 22473 @Override 22474 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { 22475 TTupleProtocol oprot = (TTupleProtocol) prot; 22476 BitSet optionals = new BitSet(); 22477 if (struct.isSetSuccess()) { 22478 optionals.set(0); 22479 } 22480 if (struct.isSetIo()) { 22481 optionals.set(1); 22482 } 22483 oprot.writeBitSet(optionals, 2); 22484 if (struct.isSetSuccess()) { 22485 { 22486 oprot.writeI32(struct.success.size()); 22487 for (TRowResult _iter206 : struct.success) 22488 { 22489 _iter206.write(oprot); 22490 } 22491 } 22492 } 22493 if (struct.isSetIo()) { 22494 struct.io.write(oprot); 22495 } 22496 } 22497 22498 @Override 22499 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException { 22500 TTupleProtocol iprot = (TTupleProtocol) prot; 22501 BitSet incoming = iprot.readBitSet(2); 22502 if (incoming.get(0)) { 22503 { 22504 org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 22505 struct.success = new ArrayList<TRowResult>(_list207.size); 22506 for (int _i208 = 0; _i208 < _list207.size; ++_i208) 22507 { 22508 TRowResult _elem209; // required 22509 _elem209 = new TRowResult(); 22510 _elem209.read(iprot); 22511 struct.success.add(_elem209); 22512 } 22513 } 22514 struct.setSuccessIsSet(true); 22515 } 22516 if (incoming.get(1)) { 22517 struct.io = new IOError(); 22518 struct.io.read(iprot); 22519 struct.setIoIsSet(true); 22520 } 22521 } 22522 } 22523 22524 } 22525 22526 public static class getRows_args implements org.apache.thrift.TBase<getRows_args, getRows_args._Fields>, java.io.Serializable, Cloneable { 22527 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_args"); 22528 22529 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 22530 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2); 22531 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); 22532 22533 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 22534 static { 22535 schemes.put(StandardScheme.class, new getRows_argsStandardSchemeFactory()); 22536 schemes.put(TupleScheme.class, new getRows_argsTupleSchemeFactory()); 22537 } 22538 22539 /** 22540 * name of table 22541 */ 22542 public ByteBuffer tableName; // required 22543 /** 22544 * row keys 22545 */ 22546 public List<ByteBuffer> rows; // required 22547 /** 22548 * Get attributes 22549 */ 22550 public Map<ByteBuffer,ByteBuffer> attributes; // required 22551 22552 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 22553 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 22554 /** 22555 * name of table 22556 */ 22557 TABLE_NAME((short)1, "tableName"), 22558 /** 22559 * row keys 22560 */ 22561 ROWS((short)2, "rows"), 22562 /** 22563 * Get attributes 22564 */ 22565 ATTRIBUTES((short)3, "attributes"); 22566 22567 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 22568 22569 static { 22570 for (_Fields field : EnumSet.allOf(_Fields.class)) { 22571 byName.put(field.getFieldName(), field); 22572 } 22573 } 22574 22575 /** 22576 * Find the _Fields constant that matches fieldId, or null if its not found. 22577 */ 22578 public static _Fields findByThriftId(int fieldId) { 22579 switch(fieldId) { 22580 case 1: // TABLE_NAME 22581 return TABLE_NAME; 22582 case 2: // ROWS 22583 return ROWS; 22584 case 3: // ATTRIBUTES 22585 return ATTRIBUTES; 22586 default: 22587 return null; 22588 } 22589 } 22590 22591 /** 22592 * Find the _Fields constant that matches fieldId, throwing an exception 22593 * if it is not found. 22594 */ 22595 public static _Fields findByThriftIdOrThrow(int fieldId) { 22596 _Fields fields = findByThriftId(fieldId); 22597 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 22598 return fields; 22599 } 22600 22601 /** 22602 * Find the _Fields constant that matches name, or null if its not found. 22603 */ 22604 public static _Fields findByName(String name) { 22605 return byName.get(name); 22606 } 22607 22608 private final short _thriftId; 22609 private final String _fieldName; 22610 22611 _Fields(short thriftId, String fieldName) { 22612 _thriftId = thriftId; 22613 _fieldName = fieldName; 22614 } 22615 22616 public short getThriftFieldId() { 22617 return _thriftId; 22618 } 22619 22620 public String getFieldName() { 22621 return _fieldName; 22622 } 22623 } 22624 22625 // isset id assignments 22626 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 22627 static { 22628 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 22629 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 22630 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 22631 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 22632 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 22633 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 22634 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 22635 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 22636 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 22637 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 22638 metaDataMap = Collections.unmodifiableMap(tmpMap); 22639 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_args.class, metaDataMap); 22640 } 22641 22642 public getRows_args() { 22643 } 22644 22645 public getRows_args( 22646 ByteBuffer tableName, 22647 List<ByteBuffer> rows, 22648 Map<ByteBuffer,ByteBuffer> attributes) 22649 { 22650 this(); 22651 this.tableName = tableName; 22652 this.rows = rows; 22653 this.attributes = attributes; 22654 } 22655 22656 /** 22657 * Performs a deep copy on <i>other</i>. 22658 */ 22659 public getRows_args(getRows_args other) { 22660 if (other.isSetTableName()) { 22661 this.tableName = other.tableName; 22662 } 22663 if (other.isSetRows()) { 22664 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>(); 22665 for (ByteBuffer other_element : other.rows) { 22666 __this__rows.add(other_element); 22667 } 22668 this.rows = __this__rows; 22669 } 22670 if (other.isSetAttributes()) { 22671 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 22672 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 22673 22674 ByteBuffer other_element_key = other_element.getKey(); 22675 ByteBuffer other_element_value = other_element.getValue(); 22676 22677 ByteBuffer __this__attributes_copy_key = other_element_key; 22678 22679 ByteBuffer __this__attributes_copy_value = other_element_value; 22680 22681 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 22682 } 22683 this.attributes = __this__attributes; 22684 } 22685 } 22686 22687 public getRows_args deepCopy() { 22688 return new getRows_args(this); 22689 } 22690 22691 @Override 22692 public void clear() { 22693 this.tableName = null; 22694 this.rows = null; 22695 this.attributes = null; 22696 } 22697 22698 /** 22699 * name of table 22700 */ 22701 public byte[] getTableName() { 22702 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 22703 return tableName == null ? null : tableName.array(); 22704 } 22705 22706 public ByteBuffer bufferForTableName() { 22707 return tableName; 22708 } 22709 22710 /** 22711 * name of table 22712 */ 22713 public getRows_args setTableName(byte[] tableName) { 22714 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 22715 return this; 22716 } 22717 22718 public getRows_args setTableName(ByteBuffer tableName) { 22719 this.tableName = tableName; 22720 return this; 22721 } 22722 22723 public void unsetTableName() { 22724 this.tableName = null; 22725 } 22726 22727 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 22728 public boolean isSetTableName() { 22729 return this.tableName != null; 22730 } 22731 22732 public void setTableNameIsSet(boolean value) { 22733 if (!value) { 22734 this.tableName = null; 22735 } 22736 } 22737 22738 public int getRowsSize() { 22739 return (this.rows == null) ? 0 : this.rows.size(); 22740 } 22741 22742 public java.util.Iterator<ByteBuffer> getRowsIterator() { 22743 return (this.rows == null) ? null : this.rows.iterator(); 22744 } 22745 22746 public void addToRows(ByteBuffer elem) { 22747 if (this.rows == null) { 22748 this.rows = new ArrayList<ByteBuffer>(); 22749 } 22750 this.rows.add(elem); 22751 } 22752 22753 /** 22754 * row keys 22755 */ 22756 public List<ByteBuffer> getRows() { 22757 return this.rows; 22758 } 22759 22760 /** 22761 * row keys 22762 */ 22763 public getRows_args setRows(List<ByteBuffer> rows) { 22764 this.rows = rows; 22765 return this; 22766 } 22767 22768 public void unsetRows() { 22769 this.rows = null; 22770 } 22771 22772 /** Returns true if field rows is set (has been assigned a value) and false otherwise */ 22773 public boolean isSetRows() { 22774 return this.rows != null; 22775 } 22776 22777 public void setRowsIsSet(boolean value) { 22778 if (!value) { 22779 this.rows = null; 22780 } 22781 } 22782 22783 public int getAttributesSize() { 22784 return (this.attributes == null) ? 0 : this.attributes.size(); 22785 } 22786 22787 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 22788 if (this.attributes == null) { 22789 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 22790 } 22791 this.attributes.put(key, val); 22792 } 22793 22794 /** 22795 * Get attributes 22796 */ 22797 public Map<ByteBuffer,ByteBuffer> getAttributes() { 22798 return this.attributes; 22799 } 22800 22801 /** 22802 * Get attributes 22803 */ 22804 public getRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 22805 this.attributes = attributes; 22806 return this; 22807 } 22808 22809 public void unsetAttributes() { 22810 this.attributes = null; 22811 } 22812 22813 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 22814 public boolean isSetAttributes() { 22815 return this.attributes != null; 22816 } 22817 22818 public void setAttributesIsSet(boolean value) { 22819 if (!value) { 22820 this.attributes = null; 22821 } 22822 } 22823 22824 public void setFieldValue(_Fields field, Object value) { 22825 switch (field) { 22826 case TABLE_NAME: 22827 if (value == null) { 22828 unsetTableName(); 22829 } else { 22830 setTableName((ByteBuffer)value); 22831 } 22832 break; 22833 22834 case ROWS: 22835 if (value == null) { 22836 unsetRows(); 22837 } else { 22838 setRows((List<ByteBuffer>)value); 22839 } 22840 break; 22841 22842 case ATTRIBUTES: 22843 if (value == null) { 22844 unsetAttributes(); 22845 } else { 22846 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 22847 } 22848 break; 22849 22850 } 22851 } 22852 22853 public Object getFieldValue(_Fields field) { 22854 switch (field) { 22855 case TABLE_NAME: 22856 return getTableName(); 22857 22858 case ROWS: 22859 return getRows(); 22860 22861 case ATTRIBUTES: 22862 return getAttributes(); 22863 22864 } 22865 throw new IllegalStateException(); 22866 } 22867 22868 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 22869 public boolean isSet(_Fields field) { 22870 if (field == null) { 22871 throw new IllegalArgumentException(); 22872 } 22873 22874 switch (field) { 22875 case TABLE_NAME: 22876 return isSetTableName(); 22877 case ROWS: 22878 return isSetRows(); 22879 case ATTRIBUTES: 22880 return isSetAttributes(); 22881 } 22882 throw new IllegalStateException(); 22883 } 22884 22885 @Override 22886 public boolean equals(Object that) { 22887 if (that == null) 22888 return false; 22889 if (that instanceof getRows_args) 22890 return this.equals((getRows_args)that); 22891 return false; 22892 } 22893 22894 public boolean equals(getRows_args that) { 22895 if (that == null) 22896 return false; 22897 22898 boolean this_present_tableName = true && this.isSetTableName(); 22899 boolean that_present_tableName = true && that.isSetTableName(); 22900 if (this_present_tableName || that_present_tableName) { 22901 if (!(this_present_tableName && that_present_tableName)) 22902 return false; 22903 if (!this.tableName.equals(that.tableName)) 22904 return false; 22905 } 22906 22907 boolean this_present_rows = true && this.isSetRows(); 22908 boolean that_present_rows = true && that.isSetRows(); 22909 if (this_present_rows || that_present_rows) { 22910 if (!(this_present_rows && that_present_rows)) 22911 return false; 22912 if (!this.rows.equals(that.rows)) 22913 return false; 22914 } 22915 22916 boolean this_present_attributes = true && this.isSetAttributes(); 22917 boolean that_present_attributes = true && that.isSetAttributes(); 22918 if (this_present_attributes || that_present_attributes) { 22919 if (!(this_present_attributes && that_present_attributes)) 22920 return false; 22921 if (!this.attributes.equals(that.attributes)) 22922 return false; 22923 } 22924 22925 return true; 22926 } 22927 22928 @Override 22929 public int hashCode() { 22930 HashCodeBuilder builder = new HashCodeBuilder(); 22931 22932 boolean present_tableName = true && (isSetTableName()); 22933 builder.append(present_tableName); 22934 if (present_tableName) 22935 builder.append(tableName); 22936 22937 boolean present_rows = true && (isSetRows()); 22938 builder.append(present_rows); 22939 if (present_rows) 22940 builder.append(rows); 22941 22942 boolean present_attributes = true && (isSetAttributes()); 22943 builder.append(present_attributes); 22944 if (present_attributes) 22945 builder.append(attributes); 22946 22947 return builder.toHashCode(); 22948 } 22949 22950 public int compareTo(getRows_args other) { 22951 if (!getClass().equals(other.getClass())) { 22952 return getClass().getName().compareTo(other.getClass().getName()); 22953 } 22954 22955 int lastComparison = 0; 22956 getRows_args typedOther = (getRows_args)other; 22957 22958 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 22959 if (lastComparison != 0) { 22960 return lastComparison; 22961 } 22962 if (isSetTableName()) { 22963 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 22964 if (lastComparison != 0) { 22965 return lastComparison; 22966 } 22967 } 22968 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); 22969 if (lastComparison != 0) { 22970 return lastComparison; 22971 } 22972 if (isSetRows()) { 22973 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); 22974 if (lastComparison != 0) { 22975 return lastComparison; 22976 } 22977 } 22978 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 22979 if (lastComparison != 0) { 22980 return lastComparison; 22981 } 22982 if (isSetAttributes()) { 22983 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 22984 if (lastComparison != 0) { 22985 return lastComparison; 22986 } 22987 } 22988 return 0; 22989 } 22990 22991 public _Fields fieldForId(int fieldId) { 22992 return _Fields.findByThriftId(fieldId); 22993 } 22994 22995 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 22996 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 22997 } 22998 22999 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 23000 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 23001 } 23002 23003 @Override 23004 public String toString() { 23005 StringBuilder sb = new StringBuilder("getRows_args("); 23006 boolean first = true; 23007 23008 sb.append("tableName:"); 23009 if (this.tableName == null) { 23010 sb.append("null"); 23011 } else { 23012 sb.append(this.tableName); 23013 } 23014 first = false; 23015 if (!first) sb.append(", "); 23016 sb.append("rows:"); 23017 if (this.rows == null) { 23018 sb.append("null"); 23019 } else { 23020 sb.append(this.rows); 23021 } 23022 first = false; 23023 if (!first) sb.append(", "); 23024 sb.append("attributes:"); 23025 if (this.attributes == null) { 23026 sb.append("null"); 23027 } else { 23028 sb.append(this.attributes); 23029 } 23030 first = false; 23031 sb.append(")"); 23032 return sb.toString(); 23033 } 23034 23035 public void validate() throws org.apache.thrift.TException { 23036 // check for required fields 23037 } 23038 23039 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 23040 try { 23041 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 23042 } catch (org.apache.thrift.TException te) { 23043 throw new java.io.IOException(te); 23044 } 23045 } 23046 23047 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 23048 try { 23049 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 23050 } catch (org.apache.thrift.TException te) { 23051 throw new java.io.IOException(te); 23052 } 23053 } 23054 23055 private static class getRows_argsStandardSchemeFactory implements SchemeFactory { 23056 public getRows_argsStandardScheme getScheme() { 23057 return new getRows_argsStandardScheme(); 23058 } 23059 } 23060 23061 private static class getRows_argsStandardScheme extends StandardScheme<getRows_args> { 23062 23063 public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_args struct) throws org.apache.thrift.TException { 23064 org.apache.thrift.protocol.TField schemeField; 23065 iprot.readStructBegin(); 23066 while (true) 23067 { 23068 schemeField = iprot.readFieldBegin(); 23069 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 23070 break; 23071 } 23072 switch (schemeField.id) { 23073 case 1: // TABLE_NAME 23074 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 23075 struct.tableName = iprot.readBinary(); 23076 struct.setTableNameIsSet(true); 23077 } else { 23078 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23079 } 23080 break; 23081 case 2: // ROWS 23082 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 23083 { 23084 org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); 23085 struct.rows = new ArrayList<ByteBuffer>(_list210.size); 23086 for (int _i211 = 0; _i211 < _list210.size; ++_i211) 23087 { 23088 ByteBuffer _elem212; // required 23089 _elem212 = iprot.readBinary(); 23090 struct.rows.add(_elem212); 23091 } 23092 iprot.readListEnd(); 23093 } 23094 struct.setRowsIsSet(true); 23095 } else { 23096 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23097 } 23098 break; 23099 case 3: // ATTRIBUTES 23100 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 23101 { 23102 org.apache.thrift.protocol.TMap _map213 = iprot.readMapBegin(); 23103 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map213.size); 23104 for (int _i214 = 0; _i214 < _map213.size; ++_i214) 23105 { 23106 ByteBuffer _key215; // required 23107 ByteBuffer _val216; // required 23108 _key215 = iprot.readBinary(); 23109 _val216 = iprot.readBinary(); 23110 struct.attributes.put(_key215, _val216); 23111 } 23112 iprot.readMapEnd(); 23113 } 23114 struct.setAttributesIsSet(true); 23115 } else { 23116 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23117 } 23118 break; 23119 default: 23120 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23121 } 23122 iprot.readFieldEnd(); 23123 } 23124 iprot.readStructEnd(); 23125 23126 // check for required fields of primitive type, which can't be checked in the validate method 23127 struct.validate(); 23128 } 23129 23130 public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_args struct) throws org.apache.thrift.TException { 23131 struct.validate(); 23132 23133 oprot.writeStructBegin(STRUCT_DESC); 23134 if (struct.tableName != null) { 23135 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 23136 oprot.writeBinary(struct.tableName); 23137 oprot.writeFieldEnd(); 23138 } 23139 if (struct.rows != null) { 23140 oprot.writeFieldBegin(ROWS_FIELD_DESC); 23141 { 23142 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); 23143 for (ByteBuffer _iter217 : struct.rows) 23144 { 23145 oprot.writeBinary(_iter217); 23146 } 23147 oprot.writeListEnd(); 23148 } 23149 oprot.writeFieldEnd(); 23150 } 23151 if (struct.attributes != null) { 23152 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 23153 { 23154 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 23155 for (Map.Entry<ByteBuffer, ByteBuffer> _iter218 : struct.attributes.entrySet()) 23156 { 23157 oprot.writeBinary(_iter218.getKey()); 23158 oprot.writeBinary(_iter218.getValue()); 23159 } 23160 oprot.writeMapEnd(); 23161 } 23162 oprot.writeFieldEnd(); 23163 } 23164 oprot.writeFieldStop(); 23165 oprot.writeStructEnd(); 23166 } 23167 23168 } 23169 23170 private static class getRows_argsTupleSchemeFactory implements SchemeFactory { 23171 public getRows_argsTupleScheme getScheme() { 23172 return new getRows_argsTupleScheme(); 23173 } 23174 } 23175 23176 private static class getRows_argsTupleScheme extends TupleScheme<getRows_args> { 23177 23178 @Override 23179 public void write(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException { 23180 TTupleProtocol oprot = (TTupleProtocol) prot; 23181 BitSet optionals = new BitSet(); 23182 if (struct.isSetTableName()) { 23183 optionals.set(0); 23184 } 23185 if (struct.isSetRows()) { 23186 optionals.set(1); 23187 } 23188 if (struct.isSetAttributes()) { 23189 optionals.set(2); 23190 } 23191 oprot.writeBitSet(optionals, 3); 23192 if (struct.isSetTableName()) { 23193 oprot.writeBinary(struct.tableName); 23194 } 23195 if (struct.isSetRows()) { 23196 { 23197 oprot.writeI32(struct.rows.size()); 23198 for (ByteBuffer _iter219 : struct.rows) 23199 { 23200 oprot.writeBinary(_iter219); 23201 } 23202 } 23203 } 23204 if (struct.isSetAttributes()) { 23205 { 23206 oprot.writeI32(struct.attributes.size()); 23207 for (Map.Entry<ByteBuffer, ByteBuffer> _iter220 : struct.attributes.entrySet()) 23208 { 23209 oprot.writeBinary(_iter220.getKey()); 23210 oprot.writeBinary(_iter220.getValue()); 23211 } 23212 } 23213 } 23214 } 23215 23216 @Override 23217 public void read(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException { 23218 TTupleProtocol iprot = (TTupleProtocol) prot; 23219 BitSet incoming = iprot.readBitSet(3); 23220 if (incoming.get(0)) { 23221 struct.tableName = iprot.readBinary(); 23222 struct.setTableNameIsSet(true); 23223 } 23224 if (incoming.get(1)) { 23225 { 23226 org.apache.thrift.protocol.TList _list221 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 23227 struct.rows = new ArrayList<ByteBuffer>(_list221.size); 23228 for (int _i222 = 0; _i222 < _list221.size; ++_i222) 23229 { 23230 ByteBuffer _elem223; // required 23231 _elem223 = iprot.readBinary(); 23232 struct.rows.add(_elem223); 23233 } 23234 } 23235 struct.setRowsIsSet(true); 23236 } 23237 if (incoming.get(2)) { 23238 { 23239 org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 23240 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map224.size); 23241 for (int _i225 = 0; _i225 < _map224.size; ++_i225) 23242 { 23243 ByteBuffer _key226; // required 23244 ByteBuffer _val227; // required 23245 _key226 = iprot.readBinary(); 23246 _val227 = iprot.readBinary(); 23247 struct.attributes.put(_key226, _val227); 23248 } 23249 } 23250 struct.setAttributesIsSet(true); 23251 } 23252 } 23253 } 23254 23255 } 23256 23257 public static class getRows_result implements org.apache.thrift.TBase<getRows_result, getRows_result._Fields>, java.io.Serializable, Cloneable { 23258 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_result"); 23259 23260 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 23261 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 23262 23263 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 23264 static { 23265 schemes.put(StandardScheme.class, new getRows_resultStandardSchemeFactory()); 23266 schemes.put(TupleScheme.class, new getRows_resultTupleSchemeFactory()); 23267 } 23268 23269 public List<TRowResult> success; // required 23270 public IOError io; // required 23271 23272 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 23273 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 23274 SUCCESS((short)0, "success"), 23275 IO((short)1, "io"); 23276 23277 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 23278 23279 static { 23280 for (_Fields field : EnumSet.allOf(_Fields.class)) { 23281 byName.put(field.getFieldName(), field); 23282 } 23283 } 23284 23285 /** 23286 * Find the _Fields constant that matches fieldId, or null if its not found. 23287 */ 23288 public static _Fields findByThriftId(int fieldId) { 23289 switch(fieldId) { 23290 case 0: // SUCCESS 23291 return SUCCESS; 23292 case 1: // IO 23293 return IO; 23294 default: 23295 return null; 23296 } 23297 } 23298 23299 /** 23300 * Find the _Fields constant that matches fieldId, throwing an exception 23301 * if it is not found. 23302 */ 23303 public static _Fields findByThriftIdOrThrow(int fieldId) { 23304 _Fields fields = findByThriftId(fieldId); 23305 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 23306 return fields; 23307 } 23308 23309 /** 23310 * Find the _Fields constant that matches name, or null if its not found. 23311 */ 23312 public static _Fields findByName(String name) { 23313 return byName.get(name); 23314 } 23315 23316 private final short _thriftId; 23317 private final String _fieldName; 23318 23319 _Fields(short thriftId, String fieldName) { 23320 _thriftId = thriftId; 23321 _fieldName = fieldName; 23322 } 23323 23324 public short getThriftFieldId() { 23325 return _thriftId; 23326 } 23327 23328 public String getFieldName() { 23329 return _fieldName; 23330 } 23331 } 23332 23333 // isset id assignments 23334 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 23335 static { 23336 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 23337 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 23338 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 23339 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 23340 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 23341 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 23342 metaDataMap = Collections.unmodifiableMap(tmpMap); 23343 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_result.class, metaDataMap); 23344 } 23345 23346 public getRows_result() { 23347 } 23348 23349 public getRows_result( 23350 List<TRowResult> success, 23351 IOError io) 23352 { 23353 this(); 23354 this.success = success; 23355 this.io = io; 23356 } 23357 23358 /** 23359 * Performs a deep copy on <i>other</i>. 23360 */ 23361 public getRows_result(getRows_result other) { 23362 if (other.isSetSuccess()) { 23363 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 23364 for (TRowResult other_element : other.success) { 23365 __this__success.add(new TRowResult(other_element)); 23366 } 23367 this.success = __this__success; 23368 } 23369 if (other.isSetIo()) { 23370 this.io = new IOError(other.io); 23371 } 23372 } 23373 23374 public getRows_result deepCopy() { 23375 return new getRows_result(this); 23376 } 23377 23378 @Override 23379 public void clear() { 23380 this.success = null; 23381 this.io = null; 23382 } 23383 23384 public int getSuccessSize() { 23385 return (this.success == null) ? 0 : this.success.size(); 23386 } 23387 23388 public java.util.Iterator<TRowResult> getSuccessIterator() { 23389 return (this.success == null) ? null : this.success.iterator(); 23390 } 23391 23392 public void addToSuccess(TRowResult elem) { 23393 if (this.success == null) { 23394 this.success = new ArrayList<TRowResult>(); 23395 } 23396 this.success.add(elem); 23397 } 23398 23399 public List<TRowResult> getSuccess() { 23400 return this.success; 23401 } 23402 23403 public getRows_result setSuccess(List<TRowResult> success) { 23404 this.success = success; 23405 return this; 23406 } 23407 23408 public void unsetSuccess() { 23409 this.success = null; 23410 } 23411 23412 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 23413 public boolean isSetSuccess() { 23414 return this.success != null; 23415 } 23416 23417 public void setSuccessIsSet(boolean value) { 23418 if (!value) { 23419 this.success = null; 23420 } 23421 } 23422 23423 public IOError getIo() { 23424 return this.io; 23425 } 23426 23427 public getRows_result setIo(IOError io) { 23428 this.io = io; 23429 return this; 23430 } 23431 23432 public void unsetIo() { 23433 this.io = null; 23434 } 23435 23436 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 23437 public boolean isSetIo() { 23438 return this.io != null; 23439 } 23440 23441 public void setIoIsSet(boolean value) { 23442 if (!value) { 23443 this.io = null; 23444 } 23445 } 23446 23447 public void setFieldValue(_Fields field, Object value) { 23448 switch (field) { 23449 case SUCCESS: 23450 if (value == null) { 23451 unsetSuccess(); 23452 } else { 23453 setSuccess((List<TRowResult>)value); 23454 } 23455 break; 23456 23457 case IO: 23458 if (value == null) { 23459 unsetIo(); 23460 } else { 23461 setIo((IOError)value); 23462 } 23463 break; 23464 23465 } 23466 } 23467 23468 public Object getFieldValue(_Fields field) { 23469 switch (field) { 23470 case SUCCESS: 23471 return getSuccess(); 23472 23473 case IO: 23474 return getIo(); 23475 23476 } 23477 throw new IllegalStateException(); 23478 } 23479 23480 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 23481 public boolean isSet(_Fields field) { 23482 if (field == null) { 23483 throw new IllegalArgumentException(); 23484 } 23485 23486 switch (field) { 23487 case SUCCESS: 23488 return isSetSuccess(); 23489 case IO: 23490 return isSetIo(); 23491 } 23492 throw new IllegalStateException(); 23493 } 23494 23495 @Override 23496 public boolean equals(Object that) { 23497 if (that == null) 23498 return false; 23499 if (that instanceof getRows_result) 23500 return this.equals((getRows_result)that); 23501 return false; 23502 } 23503 23504 public boolean equals(getRows_result that) { 23505 if (that == null) 23506 return false; 23507 23508 boolean this_present_success = true && this.isSetSuccess(); 23509 boolean that_present_success = true && that.isSetSuccess(); 23510 if (this_present_success || that_present_success) { 23511 if (!(this_present_success && that_present_success)) 23512 return false; 23513 if (!this.success.equals(that.success)) 23514 return false; 23515 } 23516 23517 boolean this_present_io = true && this.isSetIo(); 23518 boolean that_present_io = true && that.isSetIo(); 23519 if (this_present_io || that_present_io) { 23520 if (!(this_present_io && that_present_io)) 23521 return false; 23522 if (!this.io.equals(that.io)) 23523 return false; 23524 } 23525 23526 return true; 23527 } 23528 23529 @Override 23530 public int hashCode() { 23531 HashCodeBuilder builder = new HashCodeBuilder(); 23532 23533 boolean present_success = true && (isSetSuccess()); 23534 builder.append(present_success); 23535 if (present_success) 23536 builder.append(success); 23537 23538 boolean present_io = true && (isSetIo()); 23539 builder.append(present_io); 23540 if (present_io) 23541 builder.append(io); 23542 23543 return builder.toHashCode(); 23544 } 23545 23546 public int compareTo(getRows_result other) { 23547 if (!getClass().equals(other.getClass())) { 23548 return getClass().getName().compareTo(other.getClass().getName()); 23549 } 23550 23551 int lastComparison = 0; 23552 getRows_result typedOther = (getRows_result)other; 23553 23554 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 23555 if (lastComparison != 0) { 23556 return lastComparison; 23557 } 23558 if (isSetSuccess()) { 23559 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 23560 if (lastComparison != 0) { 23561 return lastComparison; 23562 } 23563 } 23564 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 23565 if (lastComparison != 0) { 23566 return lastComparison; 23567 } 23568 if (isSetIo()) { 23569 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 23570 if (lastComparison != 0) { 23571 return lastComparison; 23572 } 23573 } 23574 return 0; 23575 } 23576 23577 public _Fields fieldForId(int fieldId) { 23578 return _Fields.findByThriftId(fieldId); 23579 } 23580 23581 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 23582 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 23583 } 23584 23585 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 23586 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 23587 } 23588 23589 @Override 23590 public String toString() { 23591 StringBuilder sb = new StringBuilder("getRows_result("); 23592 boolean first = true; 23593 23594 sb.append("success:"); 23595 if (this.success == null) { 23596 sb.append("null"); 23597 } else { 23598 sb.append(this.success); 23599 } 23600 first = false; 23601 if (!first) sb.append(", "); 23602 sb.append("io:"); 23603 if (this.io == null) { 23604 sb.append("null"); 23605 } else { 23606 sb.append(this.io); 23607 } 23608 first = false; 23609 sb.append(")"); 23610 return sb.toString(); 23611 } 23612 23613 public void validate() throws org.apache.thrift.TException { 23614 // check for required fields 23615 } 23616 23617 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 23618 try { 23619 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 23620 } catch (org.apache.thrift.TException te) { 23621 throw new java.io.IOException(te); 23622 } 23623 } 23624 23625 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 23626 try { 23627 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 23628 } catch (org.apache.thrift.TException te) { 23629 throw new java.io.IOException(te); 23630 } 23631 } 23632 23633 private static class getRows_resultStandardSchemeFactory implements SchemeFactory { 23634 public getRows_resultStandardScheme getScheme() { 23635 return new getRows_resultStandardScheme(); 23636 } 23637 } 23638 23639 private static class getRows_resultStandardScheme extends StandardScheme<getRows_result> { 23640 23641 public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_result struct) throws org.apache.thrift.TException { 23642 org.apache.thrift.protocol.TField schemeField; 23643 iprot.readStructBegin(); 23644 while (true) 23645 { 23646 schemeField = iprot.readFieldBegin(); 23647 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 23648 break; 23649 } 23650 switch (schemeField.id) { 23651 case 0: // SUCCESS 23652 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 23653 { 23654 org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); 23655 struct.success = new ArrayList<TRowResult>(_list228.size); 23656 for (int _i229 = 0; _i229 < _list228.size; ++_i229) 23657 { 23658 TRowResult _elem230; // required 23659 _elem230 = new TRowResult(); 23660 _elem230.read(iprot); 23661 struct.success.add(_elem230); 23662 } 23663 iprot.readListEnd(); 23664 } 23665 struct.setSuccessIsSet(true); 23666 } else { 23667 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23668 } 23669 break; 23670 case 1: // IO 23671 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 23672 struct.io = new IOError(); 23673 struct.io.read(iprot); 23674 struct.setIoIsSet(true); 23675 } else { 23676 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23677 } 23678 break; 23679 default: 23680 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 23681 } 23682 iprot.readFieldEnd(); 23683 } 23684 iprot.readStructEnd(); 23685 23686 // check for required fields of primitive type, which can't be checked in the validate method 23687 struct.validate(); 23688 } 23689 23690 public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_result struct) throws org.apache.thrift.TException { 23691 struct.validate(); 23692 23693 oprot.writeStructBegin(STRUCT_DESC); 23694 if (struct.success != null) { 23695 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 23696 { 23697 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 23698 for (TRowResult _iter231 : struct.success) 23699 { 23700 _iter231.write(oprot); 23701 } 23702 oprot.writeListEnd(); 23703 } 23704 oprot.writeFieldEnd(); 23705 } 23706 if (struct.io != null) { 23707 oprot.writeFieldBegin(IO_FIELD_DESC); 23708 struct.io.write(oprot); 23709 oprot.writeFieldEnd(); 23710 } 23711 oprot.writeFieldStop(); 23712 oprot.writeStructEnd(); 23713 } 23714 23715 } 23716 23717 private static class getRows_resultTupleSchemeFactory implements SchemeFactory { 23718 public getRows_resultTupleScheme getScheme() { 23719 return new getRows_resultTupleScheme(); 23720 } 23721 } 23722 23723 private static class getRows_resultTupleScheme extends TupleScheme<getRows_result> { 23724 23725 @Override 23726 public void write(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException { 23727 TTupleProtocol oprot = (TTupleProtocol) prot; 23728 BitSet optionals = new BitSet(); 23729 if (struct.isSetSuccess()) { 23730 optionals.set(0); 23731 } 23732 if (struct.isSetIo()) { 23733 optionals.set(1); 23734 } 23735 oprot.writeBitSet(optionals, 2); 23736 if (struct.isSetSuccess()) { 23737 { 23738 oprot.writeI32(struct.success.size()); 23739 for (TRowResult _iter232 : struct.success) 23740 { 23741 _iter232.write(oprot); 23742 } 23743 } 23744 } 23745 if (struct.isSetIo()) { 23746 struct.io.write(oprot); 23747 } 23748 } 23749 23750 @Override 23751 public void read(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException { 23752 TTupleProtocol iprot = (TTupleProtocol) prot; 23753 BitSet incoming = iprot.readBitSet(2); 23754 if (incoming.get(0)) { 23755 { 23756 org.apache.thrift.protocol.TList _list233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 23757 struct.success = new ArrayList<TRowResult>(_list233.size); 23758 for (int _i234 = 0; _i234 < _list233.size; ++_i234) 23759 { 23760 TRowResult _elem235; // required 23761 _elem235 = new TRowResult(); 23762 _elem235.read(iprot); 23763 struct.success.add(_elem235); 23764 } 23765 } 23766 struct.setSuccessIsSet(true); 23767 } 23768 if (incoming.get(1)) { 23769 struct.io = new IOError(); 23770 struct.io.read(iprot); 23771 struct.setIoIsSet(true); 23772 } 23773 } 23774 } 23775 23776 } 23777 23778 public static class getRowsWithColumns_args implements org.apache.thrift.TBase<getRowsWithColumns_args, getRowsWithColumns_args._Fields>, java.io.Serializable, Cloneable { 23779 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_args"); 23780 23781 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 23782 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2); 23783 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 23784 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 23785 23786 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 23787 static { 23788 schemes.put(StandardScheme.class, new getRowsWithColumns_argsStandardSchemeFactory()); 23789 schemes.put(TupleScheme.class, new getRowsWithColumns_argsTupleSchemeFactory()); 23790 } 23791 23792 /** 23793 * name of table 23794 */ 23795 public ByteBuffer tableName; // required 23796 /** 23797 * row keys 23798 */ 23799 public List<ByteBuffer> rows; // required 23800 /** 23801 * List of columns to return, null for all columns 23802 */ 23803 public List<ByteBuffer> columns; // required 23804 /** 23805 * Get attributes 23806 */ 23807 public Map<ByteBuffer,ByteBuffer> attributes; // required 23808 23809 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 23810 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 23811 /** 23812 * name of table 23813 */ 23814 TABLE_NAME((short)1, "tableName"), 23815 /** 23816 * row keys 23817 */ 23818 ROWS((short)2, "rows"), 23819 /** 23820 * List of columns to return, null for all columns 23821 */ 23822 COLUMNS((short)3, "columns"), 23823 /** 23824 * Get attributes 23825 */ 23826 ATTRIBUTES((short)4, "attributes"); 23827 23828 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 23829 23830 static { 23831 for (_Fields field : EnumSet.allOf(_Fields.class)) { 23832 byName.put(field.getFieldName(), field); 23833 } 23834 } 23835 23836 /** 23837 * Find the _Fields constant that matches fieldId, or null if its not found. 23838 */ 23839 public static _Fields findByThriftId(int fieldId) { 23840 switch(fieldId) { 23841 case 1: // TABLE_NAME 23842 return TABLE_NAME; 23843 case 2: // ROWS 23844 return ROWS; 23845 case 3: // COLUMNS 23846 return COLUMNS; 23847 case 4: // ATTRIBUTES 23848 return ATTRIBUTES; 23849 default: 23850 return null; 23851 } 23852 } 23853 23854 /** 23855 * Find the _Fields constant that matches fieldId, throwing an exception 23856 * if it is not found. 23857 */ 23858 public static _Fields findByThriftIdOrThrow(int fieldId) { 23859 _Fields fields = findByThriftId(fieldId); 23860 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 23861 return fields; 23862 } 23863 23864 /** 23865 * Find the _Fields constant that matches name, or null if its not found. 23866 */ 23867 public static _Fields findByName(String name) { 23868 return byName.get(name); 23869 } 23870 23871 private final short _thriftId; 23872 private final String _fieldName; 23873 23874 _Fields(short thriftId, String fieldName) { 23875 _thriftId = thriftId; 23876 _fieldName = fieldName; 23877 } 23878 23879 public short getThriftFieldId() { 23880 return _thriftId; 23881 } 23882 23883 public String getFieldName() { 23884 return _fieldName; 23885 } 23886 } 23887 23888 // isset id assignments 23889 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 23890 static { 23891 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 23892 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 23893 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 23894 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 23895 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 23896 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 23897 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 23898 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 23899 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 23900 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 23901 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 23902 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 23903 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 23904 metaDataMap = Collections.unmodifiableMap(tmpMap); 23905 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_args.class, metaDataMap); 23906 } 23907 23908 public getRowsWithColumns_args() { 23909 } 23910 23911 public getRowsWithColumns_args( 23912 ByteBuffer tableName, 23913 List<ByteBuffer> rows, 23914 List<ByteBuffer> columns, 23915 Map<ByteBuffer,ByteBuffer> attributes) 23916 { 23917 this(); 23918 this.tableName = tableName; 23919 this.rows = rows; 23920 this.columns = columns; 23921 this.attributes = attributes; 23922 } 23923 23924 /** 23925 * Performs a deep copy on <i>other</i>. 23926 */ 23927 public getRowsWithColumns_args(getRowsWithColumns_args other) { 23928 if (other.isSetTableName()) { 23929 this.tableName = other.tableName; 23930 } 23931 if (other.isSetRows()) { 23932 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>(); 23933 for (ByteBuffer other_element : other.rows) { 23934 __this__rows.add(other_element); 23935 } 23936 this.rows = __this__rows; 23937 } 23938 if (other.isSetColumns()) { 23939 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 23940 for (ByteBuffer other_element : other.columns) { 23941 __this__columns.add(other_element); 23942 } 23943 this.columns = __this__columns; 23944 } 23945 if (other.isSetAttributes()) { 23946 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 23947 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 23948 23949 ByteBuffer other_element_key = other_element.getKey(); 23950 ByteBuffer other_element_value = other_element.getValue(); 23951 23952 ByteBuffer __this__attributes_copy_key = other_element_key; 23953 23954 ByteBuffer __this__attributes_copy_value = other_element_value; 23955 23956 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 23957 } 23958 this.attributes = __this__attributes; 23959 } 23960 } 23961 23962 public getRowsWithColumns_args deepCopy() { 23963 return new getRowsWithColumns_args(this); 23964 } 23965 23966 @Override 23967 public void clear() { 23968 this.tableName = null; 23969 this.rows = null; 23970 this.columns = null; 23971 this.attributes = null; 23972 } 23973 23974 /** 23975 * name of table 23976 */ 23977 public byte[] getTableName() { 23978 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 23979 return tableName == null ? null : tableName.array(); 23980 } 23981 23982 public ByteBuffer bufferForTableName() { 23983 return tableName; 23984 } 23985 23986 /** 23987 * name of table 23988 */ 23989 public getRowsWithColumns_args setTableName(byte[] tableName) { 23990 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 23991 return this; 23992 } 23993 23994 public getRowsWithColumns_args setTableName(ByteBuffer tableName) { 23995 this.tableName = tableName; 23996 return this; 23997 } 23998 23999 public void unsetTableName() { 24000 this.tableName = null; 24001 } 24002 24003 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 24004 public boolean isSetTableName() { 24005 return this.tableName != null; 24006 } 24007 24008 public void setTableNameIsSet(boolean value) { 24009 if (!value) { 24010 this.tableName = null; 24011 } 24012 } 24013 24014 public int getRowsSize() { 24015 return (this.rows == null) ? 0 : this.rows.size(); 24016 } 24017 24018 public java.util.Iterator<ByteBuffer> getRowsIterator() { 24019 return (this.rows == null) ? null : this.rows.iterator(); 24020 } 24021 24022 public void addToRows(ByteBuffer elem) { 24023 if (this.rows == null) { 24024 this.rows = new ArrayList<ByteBuffer>(); 24025 } 24026 this.rows.add(elem); 24027 } 24028 24029 /** 24030 * row keys 24031 */ 24032 public List<ByteBuffer> getRows() { 24033 return this.rows; 24034 } 24035 24036 /** 24037 * row keys 24038 */ 24039 public getRowsWithColumns_args setRows(List<ByteBuffer> rows) { 24040 this.rows = rows; 24041 return this; 24042 } 24043 24044 public void unsetRows() { 24045 this.rows = null; 24046 } 24047 24048 /** Returns true if field rows is set (has been assigned a value) and false otherwise */ 24049 public boolean isSetRows() { 24050 return this.rows != null; 24051 } 24052 24053 public void setRowsIsSet(boolean value) { 24054 if (!value) { 24055 this.rows = null; 24056 } 24057 } 24058 24059 public int getColumnsSize() { 24060 return (this.columns == null) ? 0 : this.columns.size(); 24061 } 24062 24063 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 24064 return (this.columns == null) ? null : this.columns.iterator(); 24065 } 24066 24067 public void addToColumns(ByteBuffer elem) { 24068 if (this.columns == null) { 24069 this.columns = new ArrayList<ByteBuffer>(); 24070 } 24071 this.columns.add(elem); 24072 } 24073 24074 /** 24075 * List of columns to return, null for all columns 24076 */ 24077 public List<ByteBuffer> getColumns() { 24078 return this.columns; 24079 } 24080 24081 /** 24082 * List of columns to return, null for all columns 24083 */ 24084 public getRowsWithColumns_args setColumns(List<ByteBuffer> columns) { 24085 this.columns = columns; 24086 return this; 24087 } 24088 24089 public void unsetColumns() { 24090 this.columns = null; 24091 } 24092 24093 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 24094 public boolean isSetColumns() { 24095 return this.columns != null; 24096 } 24097 24098 public void setColumnsIsSet(boolean value) { 24099 if (!value) { 24100 this.columns = null; 24101 } 24102 } 24103 24104 public int getAttributesSize() { 24105 return (this.attributes == null) ? 0 : this.attributes.size(); 24106 } 24107 24108 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 24109 if (this.attributes == null) { 24110 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 24111 } 24112 this.attributes.put(key, val); 24113 } 24114 24115 /** 24116 * Get attributes 24117 */ 24118 public Map<ByteBuffer,ByteBuffer> getAttributes() { 24119 return this.attributes; 24120 } 24121 24122 /** 24123 * Get attributes 24124 */ 24125 public getRowsWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 24126 this.attributes = attributes; 24127 return this; 24128 } 24129 24130 public void unsetAttributes() { 24131 this.attributes = null; 24132 } 24133 24134 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 24135 public boolean isSetAttributes() { 24136 return this.attributes != null; 24137 } 24138 24139 public void setAttributesIsSet(boolean value) { 24140 if (!value) { 24141 this.attributes = null; 24142 } 24143 } 24144 24145 public void setFieldValue(_Fields field, Object value) { 24146 switch (field) { 24147 case TABLE_NAME: 24148 if (value == null) { 24149 unsetTableName(); 24150 } else { 24151 setTableName((ByteBuffer)value); 24152 } 24153 break; 24154 24155 case ROWS: 24156 if (value == null) { 24157 unsetRows(); 24158 } else { 24159 setRows((List<ByteBuffer>)value); 24160 } 24161 break; 24162 24163 case COLUMNS: 24164 if (value == null) { 24165 unsetColumns(); 24166 } else { 24167 setColumns((List<ByteBuffer>)value); 24168 } 24169 break; 24170 24171 case ATTRIBUTES: 24172 if (value == null) { 24173 unsetAttributes(); 24174 } else { 24175 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 24176 } 24177 break; 24178 24179 } 24180 } 24181 24182 public Object getFieldValue(_Fields field) { 24183 switch (field) { 24184 case TABLE_NAME: 24185 return getTableName(); 24186 24187 case ROWS: 24188 return getRows(); 24189 24190 case COLUMNS: 24191 return getColumns(); 24192 24193 case ATTRIBUTES: 24194 return getAttributes(); 24195 24196 } 24197 throw new IllegalStateException(); 24198 } 24199 24200 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 24201 public boolean isSet(_Fields field) { 24202 if (field == null) { 24203 throw new IllegalArgumentException(); 24204 } 24205 24206 switch (field) { 24207 case TABLE_NAME: 24208 return isSetTableName(); 24209 case ROWS: 24210 return isSetRows(); 24211 case COLUMNS: 24212 return isSetColumns(); 24213 case ATTRIBUTES: 24214 return isSetAttributes(); 24215 } 24216 throw new IllegalStateException(); 24217 } 24218 24219 @Override 24220 public boolean equals(Object that) { 24221 if (that == null) 24222 return false; 24223 if (that instanceof getRowsWithColumns_args) 24224 return this.equals((getRowsWithColumns_args)that); 24225 return false; 24226 } 24227 24228 public boolean equals(getRowsWithColumns_args that) { 24229 if (that == null) 24230 return false; 24231 24232 boolean this_present_tableName = true && this.isSetTableName(); 24233 boolean that_present_tableName = true && that.isSetTableName(); 24234 if (this_present_tableName || that_present_tableName) { 24235 if (!(this_present_tableName && that_present_tableName)) 24236 return false; 24237 if (!this.tableName.equals(that.tableName)) 24238 return false; 24239 } 24240 24241 boolean this_present_rows = true && this.isSetRows(); 24242 boolean that_present_rows = true && that.isSetRows(); 24243 if (this_present_rows || that_present_rows) { 24244 if (!(this_present_rows && that_present_rows)) 24245 return false; 24246 if (!this.rows.equals(that.rows)) 24247 return false; 24248 } 24249 24250 boolean this_present_columns = true && this.isSetColumns(); 24251 boolean that_present_columns = true && that.isSetColumns(); 24252 if (this_present_columns || that_present_columns) { 24253 if (!(this_present_columns && that_present_columns)) 24254 return false; 24255 if (!this.columns.equals(that.columns)) 24256 return false; 24257 } 24258 24259 boolean this_present_attributes = true && this.isSetAttributes(); 24260 boolean that_present_attributes = true && that.isSetAttributes(); 24261 if (this_present_attributes || that_present_attributes) { 24262 if (!(this_present_attributes && that_present_attributes)) 24263 return false; 24264 if (!this.attributes.equals(that.attributes)) 24265 return false; 24266 } 24267 24268 return true; 24269 } 24270 24271 @Override 24272 public int hashCode() { 24273 HashCodeBuilder builder = new HashCodeBuilder(); 24274 24275 boolean present_tableName = true && (isSetTableName()); 24276 builder.append(present_tableName); 24277 if (present_tableName) 24278 builder.append(tableName); 24279 24280 boolean present_rows = true && (isSetRows()); 24281 builder.append(present_rows); 24282 if (present_rows) 24283 builder.append(rows); 24284 24285 boolean present_columns = true && (isSetColumns()); 24286 builder.append(present_columns); 24287 if (present_columns) 24288 builder.append(columns); 24289 24290 boolean present_attributes = true && (isSetAttributes()); 24291 builder.append(present_attributes); 24292 if (present_attributes) 24293 builder.append(attributes); 24294 24295 return builder.toHashCode(); 24296 } 24297 24298 public int compareTo(getRowsWithColumns_args other) { 24299 if (!getClass().equals(other.getClass())) { 24300 return getClass().getName().compareTo(other.getClass().getName()); 24301 } 24302 24303 int lastComparison = 0; 24304 getRowsWithColumns_args typedOther = (getRowsWithColumns_args)other; 24305 24306 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 24307 if (lastComparison != 0) { 24308 return lastComparison; 24309 } 24310 if (isSetTableName()) { 24311 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 24312 if (lastComparison != 0) { 24313 return lastComparison; 24314 } 24315 } 24316 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); 24317 if (lastComparison != 0) { 24318 return lastComparison; 24319 } 24320 if (isSetRows()) { 24321 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); 24322 if (lastComparison != 0) { 24323 return lastComparison; 24324 } 24325 } 24326 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 24327 if (lastComparison != 0) { 24328 return lastComparison; 24329 } 24330 if (isSetColumns()) { 24331 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 24332 if (lastComparison != 0) { 24333 return lastComparison; 24334 } 24335 } 24336 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 24337 if (lastComparison != 0) { 24338 return lastComparison; 24339 } 24340 if (isSetAttributes()) { 24341 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 24342 if (lastComparison != 0) { 24343 return lastComparison; 24344 } 24345 } 24346 return 0; 24347 } 24348 24349 public _Fields fieldForId(int fieldId) { 24350 return _Fields.findByThriftId(fieldId); 24351 } 24352 24353 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 24354 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 24355 } 24356 24357 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 24358 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 24359 } 24360 24361 @Override 24362 public String toString() { 24363 StringBuilder sb = new StringBuilder("getRowsWithColumns_args("); 24364 boolean first = true; 24365 24366 sb.append("tableName:"); 24367 if (this.tableName == null) { 24368 sb.append("null"); 24369 } else { 24370 sb.append(this.tableName); 24371 } 24372 first = false; 24373 if (!first) sb.append(", "); 24374 sb.append("rows:"); 24375 if (this.rows == null) { 24376 sb.append("null"); 24377 } else { 24378 sb.append(this.rows); 24379 } 24380 first = false; 24381 if (!first) sb.append(", "); 24382 sb.append("columns:"); 24383 if (this.columns == null) { 24384 sb.append("null"); 24385 } else { 24386 sb.append(this.columns); 24387 } 24388 first = false; 24389 if (!first) sb.append(", "); 24390 sb.append("attributes:"); 24391 if (this.attributes == null) { 24392 sb.append("null"); 24393 } else { 24394 sb.append(this.attributes); 24395 } 24396 first = false; 24397 sb.append(")"); 24398 return sb.toString(); 24399 } 24400 24401 public void validate() throws org.apache.thrift.TException { 24402 // check for required fields 24403 } 24404 24405 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 24406 try { 24407 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 24408 } catch (org.apache.thrift.TException te) { 24409 throw new java.io.IOException(te); 24410 } 24411 } 24412 24413 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 24414 try { 24415 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 24416 } catch (org.apache.thrift.TException te) { 24417 throw new java.io.IOException(te); 24418 } 24419 } 24420 24421 private static class getRowsWithColumns_argsStandardSchemeFactory implements SchemeFactory { 24422 public getRowsWithColumns_argsStandardScheme getScheme() { 24423 return new getRowsWithColumns_argsStandardScheme(); 24424 } 24425 } 24426 24427 private static class getRowsWithColumns_argsStandardScheme extends StandardScheme<getRowsWithColumns_args> { 24428 24429 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { 24430 org.apache.thrift.protocol.TField schemeField; 24431 iprot.readStructBegin(); 24432 while (true) 24433 { 24434 schemeField = iprot.readFieldBegin(); 24435 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 24436 break; 24437 } 24438 switch (schemeField.id) { 24439 case 1: // TABLE_NAME 24440 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 24441 struct.tableName = iprot.readBinary(); 24442 struct.setTableNameIsSet(true); 24443 } else { 24444 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 24445 } 24446 break; 24447 case 2: // ROWS 24448 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 24449 { 24450 org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); 24451 struct.rows = new ArrayList<ByteBuffer>(_list236.size); 24452 for (int _i237 = 0; _i237 < _list236.size; ++_i237) 24453 { 24454 ByteBuffer _elem238; // required 24455 _elem238 = iprot.readBinary(); 24456 struct.rows.add(_elem238); 24457 } 24458 iprot.readListEnd(); 24459 } 24460 struct.setRowsIsSet(true); 24461 } else { 24462 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 24463 } 24464 break; 24465 case 3: // COLUMNS 24466 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 24467 { 24468 org.apache.thrift.protocol.TList _list239 = iprot.readListBegin(); 24469 struct.columns = new ArrayList<ByteBuffer>(_list239.size); 24470 for (int _i240 = 0; _i240 < _list239.size; ++_i240) 24471 { 24472 ByteBuffer _elem241; // required 24473 _elem241 = iprot.readBinary(); 24474 struct.columns.add(_elem241); 24475 } 24476 iprot.readListEnd(); 24477 } 24478 struct.setColumnsIsSet(true); 24479 } else { 24480 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 24481 } 24482 break; 24483 case 4: // ATTRIBUTES 24484 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 24485 { 24486 org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin(); 24487 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map242.size); 24488 for (int _i243 = 0; _i243 < _map242.size; ++_i243) 24489 { 24490 ByteBuffer _key244; // required 24491 ByteBuffer _val245; // required 24492 _key244 = iprot.readBinary(); 24493 _val245 = iprot.readBinary(); 24494 struct.attributes.put(_key244, _val245); 24495 } 24496 iprot.readMapEnd(); 24497 } 24498 struct.setAttributesIsSet(true); 24499 } else { 24500 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 24501 } 24502 break; 24503 default: 24504 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 24505 } 24506 iprot.readFieldEnd(); 24507 } 24508 iprot.readStructEnd(); 24509 24510 // check for required fields of primitive type, which can't be checked in the validate method 24511 struct.validate(); 24512 } 24513 24514 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { 24515 struct.validate(); 24516 24517 oprot.writeStructBegin(STRUCT_DESC); 24518 if (struct.tableName != null) { 24519 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 24520 oprot.writeBinary(struct.tableName); 24521 oprot.writeFieldEnd(); 24522 } 24523 if (struct.rows != null) { 24524 oprot.writeFieldBegin(ROWS_FIELD_DESC); 24525 { 24526 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); 24527 for (ByteBuffer _iter246 : struct.rows) 24528 { 24529 oprot.writeBinary(_iter246); 24530 } 24531 oprot.writeListEnd(); 24532 } 24533 oprot.writeFieldEnd(); 24534 } 24535 if (struct.columns != null) { 24536 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 24537 { 24538 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 24539 for (ByteBuffer _iter247 : struct.columns) 24540 { 24541 oprot.writeBinary(_iter247); 24542 } 24543 oprot.writeListEnd(); 24544 } 24545 oprot.writeFieldEnd(); 24546 } 24547 if (struct.attributes != null) { 24548 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 24549 { 24550 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 24551 for (Map.Entry<ByteBuffer, ByteBuffer> _iter248 : struct.attributes.entrySet()) 24552 { 24553 oprot.writeBinary(_iter248.getKey()); 24554 oprot.writeBinary(_iter248.getValue()); 24555 } 24556 oprot.writeMapEnd(); 24557 } 24558 oprot.writeFieldEnd(); 24559 } 24560 oprot.writeFieldStop(); 24561 oprot.writeStructEnd(); 24562 } 24563 24564 } 24565 24566 private static class getRowsWithColumns_argsTupleSchemeFactory implements SchemeFactory { 24567 public getRowsWithColumns_argsTupleScheme getScheme() { 24568 return new getRowsWithColumns_argsTupleScheme(); 24569 } 24570 } 24571 24572 private static class getRowsWithColumns_argsTupleScheme extends TupleScheme<getRowsWithColumns_args> { 24573 24574 @Override 24575 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { 24576 TTupleProtocol oprot = (TTupleProtocol) prot; 24577 BitSet optionals = new BitSet(); 24578 if (struct.isSetTableName()) { 24579 optionals.set(0); 24580 } 24581 if (struct.isSetRows()) { 24582 optionals.set(1); 24583 } 24584 if (struct.isSetColumns()) { 24585 optionals.set(2); 24586 } 24587 if (struct.isSetAttributes()) { 24588 optionals.set(3); 24589 } 24590 oprot.writeBitSet(optionals, 4); 24591 if (struct.isSetTableName()) { 24592 oprot.writeBinary(struct.tableName); 24593 } 24594 if (struct.isSetRows()) { 24595 { 24596 oprot.writeI32(struct.rows.size()); 24597 for (ByteBuffer _iter249 : struct.rows) 24598 { 24599 oprot.writeBinary(_iter249); 24600 } 24601 } 24602 } 24603 if (struct.isSetColumns()) { 24604 { 24605 oprot.writeI32(struct.columns.size()); 24606 for (ByteBuffer _iter250 : struct.columns) 24607 { 24608 oprot.writeBinary(_iter250); 24609 } 24610 } 24611 } 24612 if (struct.isSetAttributes()) { 24613 { 24614 oprot.writeI32(struct.attributes.size()); 24615 for (Map.Entry<ByteBuffer, ByteBuffer> _iter251 : struct.attributes.entrySet()) 24616 { 24617 oprot.writeBinary(_iter251.getKey()); 24618 oprot.writeBinary(_iter251.getValue()); 24619 } 24620 } 24621 } 24622 } 24623 24624 @Override 24625 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException { 24626 TTupleProtocol iprot = (TTupleProtocol) prot; 24627 BitSet incoming = iprot.readBitSet(4); 24628 if (incoming.get(0)) { 24629 struct.tableName = iprot.readBinary(); 24630 struct.setTableNameIsSet(true); 24631 } 24632 if (incoming.get(1)) { 24633 { 24634 org.apache.thrift.protocol.TList _list252 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 24635 struct.rows = new ArrayList<ByteBuffer>(_list252.size); 24636 for (int _i253 = 0; _i253 < _list252.size; ++_i253) 24637 { 24638 ByteBuffer _elem254; // required 24639 _elem254 = iprot.readBinary(); 24640 struct.rows.add(_elem254); 24641 } 24642 } 24643 struct.setRowsIsSet(true); 24644 } 24645 if (incoming.get(2)) { 24646 { 24647 org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 24648 struct.columns = new ArrayList<ByteBuffer>(_list255.size); 24649 for (int _i256 = 0; _i256 < _list255.size; ++_i256) 24650 { 24651 ByteBuffer _elem257; // required 24652 _elem257 = iprot.readBinary(); 24653 struct.columns.add(_elem257); 24654 } 24655 } 24656 struct.setColumnsIsSet(true); 24657 } 24658 if (incoming.get(3)) { 24659 { 24660 org.apache.thrift.protocol.TMap _map258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 24661 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map258.size); 24662 for (int _i259 = 0; _i259 < _map258.size; ++_i259) 24663 { 24664 ByteBuffer _key260; // required 24665 ByteBuffer _val261; // required 24666 _key260 = iprot.readBinary(); 24667 _val261 = iprot.readBinary(); 24668 struct.attributes.put(_key260, _val261); 24669 } 24670 } 24671 struct.setAttributesIsSet(true); 24672 } 24673 } 24674 } 24675 24676 } 24677 24678 public static class getRowsWithColumns_result implements org.apache.thrift.TBase<getRowsWithColumns_result, getRowsWithColumns_result._Fields>, java.io.Serializable, Cloneable { 24679 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_result"); 24680 24681 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 24682 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 24683 24684 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 24685 static { 24686 schemes.put(StandardScheme.class, new getRowsWithColumns_resultStandardSchemeFactory()); 24687 schemes.put(TupleScheme.class, new getRowsWithColumns_resultTupleSchemeFactory()); 24688 } 24689 24690 public List<TRowResult> success; // required 24691 public IOError io; // required 24692 24693 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 24694 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 24695 SUCCESS((short)0, "success"), 24696 IO((short)1, "io"); 24697 24698 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 24699 24700 static { 24701 for (_Fields field : EnumSet.allOf(_Fields.class)) { 24702 byName.put(field.getFieldName(), field); 24703 } 24704 } 24705 24706 /** 24707 * Find the _Fields constant that matches fieldId, or null if its not found. 24708 */ 24709 public static _Fields findByThriftId(int fieldId) { 24710 switch(fieldId) { 24711 case 0: // SUCCESS 24712 return SUCCESS; 24713 case 1: // IO 24714 return IO; 24715 default: 24716 return null; 24717 } 24718 } 24719 24720 /** 24721 * Find the _Fields constant that matches fieldId, throwing an exception 24722 * if it is not found. 24723 */ 24724 public static _Fields findByThriftIdOrThrow(int fieldId) { 24725 _Fields fields = findByThriftId(fieldId); 24726 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 24727 return fields; 24728 } 24729 24730 /** 24731 * Find the _Fields constant that matches name, or null if its not found. 24732 */ 24733 public static _Fields findByName(String name) { 24734 return byName.get(name); 24735 } 24736 24737 private final short _thriftId; 24738 private final String _fieldName; 24739 24740 _Fields(short thriftId, String fieldName) { 24741 _thriftId = thriftId; 24742 _fieldName = fieldName; 24743 } 24744 24745 public short getThriftFieldId() { 24746 return _thriftId; 24747 } 24748 24749 public String getFieldName() { 24750 return _fieldName; 24751 } 24752 } 24753 24754 // isset id assignments 24755 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 24756 static { 24757 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 24758 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 24759 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 24760 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 24761 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 24762 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 24763 metaDataMap = Collections.unmodifiableMap(tmpMap); 24764 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_result.class, metaDataMap); 24765 } 24766 24767 public getRowsWithColumns_result() { 24768 } 24769 24770 public getRowsWithColumns_result( 24771 List<TRowResult> success, 24772 IOError io) 24773 { 24774 this(); 24775 this.success = success; 24776 this.io = io; 24777 } 24778 24779 /** 24780 * Performs a deep copy on <i>other</i>. 24781 */ 24782 public getRowsWithColumns_result(getRowsWithColumns_result other) { 24783 if (other.isSetSuccess()) { 24784 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 24785 for (TRowResult other_element : other.success) { 24786 __this__success.add(new TRowResult(other_element)); 24787 } 24788 this.success = __this__success; 24789 } 24790 if (other.isSetIo()) { 24791 this.io = new IOError(other.io); 24792 } 24793 } 24794 24795 public getRowsWithColumns_result deepCopy() { 24796 return new getRowsWithColumns_result(this); 24797 } 24798 24799 @Override 24800 public void clear() { 24801 this.success = null; 24802 this.io = null; 24803 } 24804 24805 public int getSuccessSize() { 24806 return (this.success == null) ? 0 : this.success.size(); 24807 } 24808 24809 public java.util.Iterator<TRowResult> getSuccessIterator() { 24810 return (this.success == null) ? null : this.success.iterator(); 24811 } 24812 24813 public void addToSuccess(TRowResult elem) { 24814 if (this.success == null) { 24815 this.success = new ArrayList<TRowResult>(); 24816 } 24817 this.success.add(elem); 24818 } 24819 24820 public List<TRowResult> getSuccess() { 24821 return this.success; 24822 } 24823 24824 public getRowsWithColumns_result setSuccess(List<TRowResult> success) { 24825 this.success = success; 24826 return this; 24827 } 24828 24829 public void unsetSuccess() { 24830 this.success = null; 24831 } 24832 24833 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 24834 public boolean isSetSuccess() { 24835 return this.success != null; 24836 } 24837 24838 public void setSuccessIsSet(boolean value) { 24839 if (!value) { 24840 this.success = null; 24841 } 24842 } 24843 24844 public IOError getIo() { 24845 return this.io; 24846 } 24847 24848 public getRowsWithColumns_result setIo(IOError io) { 24849 this.io = io; 24850 return this; 24851 } 24852 24853 public void unsetIo() { 24854 this.io = null; 24855 } 24856 24857 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 24858 public boolean isSetIo() { 24859 return this.io != null; 24860 } 24861 24862 public void setIoIsSet(boolean value) { 24863 if (!value) { 24864 this.io = null; 24865 } 24866 } 24867 24868 public void setFieldValue(_Fields field, Object value) { 24869 switch (field) { 24870 case SUCCESS: 24871 if (value == null) { 24872 unsetSuccess(); 24873 } else { 24874 setSuccess((List<TRowResult>)value); 24875 } 24876 break; 24877 24878 case IO: 24879 if (value == null) { 24880 unsetIo(); 24881 } else { 24882 setIo((IOError)value); 24883 } 24884 break; 24885 24886 } 24887 } 24888 24889 public Object getFieldValue(_Fields field) { 24890 switch (field) { 24891 case SUCCESS: 24892 return getSuccess(); 24893 24894 case IO: 24895 return getIo(); 24896 24897 } 24898 throw new IllegalStateException(); 24899 } 24900 24901 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 24902 public boolean isSet(_Fields field) { 24903 if (field == null) { 24904 throw new IllegalArgumentException(); 24905 } 24906 24907 switch (field) { 24908 case SUCCESS: 24909 return isSetSuccess(); 24910 case IO: 24911 return isSetIo(); 24912 } 24913 throw new IllegalStateException(); 24914 } 24915 24916 @Override 24917 public boolean equals(Object that) { 24918 if (that == null) 24919 return false; 24920 if (that instanceof getRowsWithColumns_result) 24921 return this.equals((getRowsWithColumns_result)that); 24922 return false; 24923 } 24924 24925 public boolean equals(getRowsWithColumns_result that) { 24926 if (that == null) 24927 return false; 24928 24929 boolean this_present_success = true && this.isSetSuccess(); 24930 boolean that_present_success = true && that.isSetSuccess(); 24931 if (this_present_success || that_present_success) { 24932 if (!(this_present_success && that_present_success)) 24933 return false; 24934 if (!this.success.equals(that.success)) 24935 return false; 24936 } 24937 24938 boolean this_present_io = true && this.isSetIo(); 24939 boolean that_present_io = true && that.isSetIo(); 24940 if (this_present_io || that_present_io) { 24941 if (!(this_present_io && that_present_io)) 24942 return false; 24943 if (!this.io.equals(that.io)) 24944 return false; 24945 } 24946 24947 return true; 24948 } 24949 24950 @Override 24951 public int hashCode() { 24952 HashCodeBuilder builder = new HashCodeBuilder(); 24953 24954 boolean present_success = true && (isSetSuccess()); 24955 builder.append(present_success); 24956 if (present_success) 24957 builder.append(success); 24958 24959 boolean present_io = true && (isSetIo()); 24960 builder.append(present_io); 24961 if (present_io) 24962 builder.append(io); 24963 24964 return builder.toHashCode(); 24965 } 24966 24967 public int compareTo(getRowsWithColumns_result other) { 24968 if (!getClass().equals(other.getClass())) { 24969 return getClass().getName().compareTo(other.getClass().getName()); 24970 } 24971 24972 int lastComparison = 0; 24973 getRowsWithColumns_result typedOther = (getRowsWithColumns_result)other; 24974 24975 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 24976 if (lastComparison != 0) { 24977 return lastComparison; 24978 } 24979 if (isSetSuccess()) { 24980 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 24981 if (lastComparison != 0) { 24982 return lastComparison; 24983 } 24984 } 24985 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 24986 if (lastComparison != 0) { 24987 return lastComparison; 24988 } 24989 if (isSetIo()) { 24990 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 24991 if (lastComparison != 0) { 24992 return lastComparison; 24993 } 24994 } 24995 return 0; 24996 } 24997 24998 public _Fields fieldForId(int fieldId) { 24999 return _Fields.findByThriftId(fieldId); 25000 } 25001 25002 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 25003 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 25004 } 25005 25006 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 25007 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 25008 } 25009 25010 @Override 25011 public String toString() { 25012 StringBuilder sb = new StringBuilder("getRowsWithColumns_result("); 25013 boolean first = true; 25014 25015 sb.append("success:"); 25016 if (this.success == null) { 25017 sb.append("null"); 25018 } else { 25019 sb.append(this.success); 25020 } 25021 first = false; 25022 if (!first) sb.append(", "); 25023 sb.append("io:"); 25024 if (this.io == null) { 25025 sb.append("null"); 25026 } else { 25027 sb.append(this.io); 25028 } 25029 first = false; 25030 sb.append(")"); 25031 return sb.toString(); 25032 } 25033 25034 public void validate() throws org.apache.thrift.TException { 25035 // check for required fields 25036 } 25037 25038 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 25039 try { 25040 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 25041 } catch (org.apache.thrift.TException te) { 25042 throw new java.io.IOException(te); 25043 } 25044 } 25045 25046 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 25047 try { 25048 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 25049 } catch (org.apache.thrift.TException te) { 25050 throw new java.io.IOException(te); 25051 } 25052 } 25053 25054 private static class getRowsWithColumns_resultStandardSchemeFactory implements SchemeFactory { 25055 public getRowsWithColumns_resultStandardScheme getScheme() { 25056 return new getRowsWithColumns_resultStandardScheme(); 25057 } 25058 } 25059 25060 private static class getRowsWithColumns_resultStandardScheme extends StandardScheme<getRowsWithColumns_result> { 25061 25062 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { 25063 org.apache.thrift.protocol.TField schemeField; 25064 iprot.readStructBegin(); 25065 while (true) 25066 { 25067 schemeField = iprot.readFieldBegin(); 25068 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 25069 break; 25070 } 25071 switch (schemeField.id) { 25072 case 0: // SUCCESS 25073 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 25074 { 25075 org.apache.thrift.protocol.TList _list262 = iprot.readListBegin(); 25076 struct.success = new ArrayList<TRowResult>(_list262.size); 25077 for (int _i263 = 0; _i263 < _list262.size; ++_i263) 25078 { 25079 TRowResult _elem264; // required 25080 _elem264 = new TRowResult(); 25081 _elem264.read(iprot); 25082 struct.success.add(_elem264); 25083 } 25084 iprot.readListEnd(); 25085 } 25086 struct.setSuccessIsSet(true); 25087 } else { 25088 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25089 } 25090 break; 25091 case 1: // IO 25092 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 25093 struct.io = new IOError(); 25094 struct.io.read(iprot); 25095 struct.setIoIsSet(true); 25096 } else { 25097 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25098 } 25099 break; 25100 default: 25101 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25102 } 25103 iprot.readFieldEnd(); 25104 } 25105 iprot.readStructEnd(); 25106 25107 // check for required fields of primitive type, which can't be checked in the validate method 25108 struct.validate(); 25109 } 25110 25111 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { 25112 struct.validate(); 25113 25114 oprot.writeStructBegin(STRUCT_DESC); 25115 if (struct.success != null) { 25116 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 25117 { 25118 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 25119 for (TRowResult _iter265 : struct.success) 25120 { 25121 _iter265.write(oprot); 25122 } 25123 oprot.writeListEnd(); 25124 } 25125 oprot.writeFieldEnd(); 25126 } 25127 if (struct.io != null) { 25128 oprot.writeFieldBegin(IO_FIELD_DESC); 25129 struct.io.write(oprot); 25130 oprot.writeFieldEnd(); 25131 } 25132 oprot.writeFieldStop(); 25133 oprot.writeStructEnd(); 25134 } 25135 25136 } 25137 25138 private static class getRowsWithColumns_resultTupleSchemeFactory implements SchemeFactory { 25139 public getRowsWithColumns_resultTupleScheme getScheme() { 25140 return new getRowsWithColumns_resultTupleScheme(); 25141 } 25142 } 25143 25144 private static class getRowsWithColumns_resultTupleScheme extends TupleScheme<getRowsWithColumns_result> { 25145 25146 @Override 25147 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { 25148 TTupleProtocol oprot = (TTupleProtocol) prot; 25149 BitSet optionals = new BitSet(); 25150 if (struct.isSetSuccess()) { 25151 optionals.set(0); 25152 } 25153 if (struct.isSetIo()) { 25154 optionals.set(1); 25155 } 25156 oprot.writeBitSet(optionals, 2); 25157 if (struct.isSetSuccess()) { 25158 { 25159 oprot.writeI32(struct.success.size()); 25160 for (TRowResult _iter266 : struct.success) 25161 { 25162 _iter266.write(oprot); 25163 } 25164 } 25165 } 25166 if (struct.isSetIo()) { 25167 struct.io.write(oprot); 25168 } 25169 } 25170 25171 @Override 25172 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException { 25173 TTupleProtocol iprot = (TTupleProtocol) prot; 25174 BitSet incoming = iprot.readBitSet(2); 25175 if (incoming.get(0)) { 25176 { 25177 org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 25178 struct.success = new ArrayList<TRowResult>(_list267.size); 25179 for (int _i268 = 0; _i268 < _list267.size; ++_i268) 25180 { 25181 TRowResult _elem269; // required 25182 _elem269 = new TRowResult(); 25183 _elem269.read(iprot); 25184 struct.success.add(_elem269); 25185 } 25186 } 25187 struct.setSuccessIsSet(true); 25188 } 25189 if (incoming.get(1)) { 25190 struct.io = new IOError(); 25191 struct.io.read(iprot); 25192 struct.setIoIsSet(true); 25193 } 25194 } 25195 } 25196 25197 } 25198 25199 public static class getRowsTs_args implements org.apache.thrift.TBase<getRowsTs_args, getRowsTs_args._Fields>, java.io.Serializable, Cloneable { 25200 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_args"); 25201 25202 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 25203 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2); 25204 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); 25205 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 25206 25207 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 25208 static { 25209 schemes.put(StandardScheme.class, new getRowsTs_argsStandardSchemeFactory()); 25210 schemes.put(TupleScheme.class, new getRowsTs_argsTupleSchemeFactory()); 25211 } 25212 25213 /** 25214 * name of the table 25215 */ 25216 public ByteBuffer tableName; // required 25217 /** 25218 * row keys 25219 */ 25220 public List<ByteBuffer> rows; // required 25221 /** 25222 * timestamp 25223 */ 25224 public long timestamp; // required 25225 /** 25226 * Get attributes 25227 */ 25228 public Map<ByteBuffer,ByteBuffer> attributes; // required 25229 25230 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 25231 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 25232 /** 25233 * name of the table 25234 */ 25235 TABLE_NAME((short)1, "tableName"), 25236 /** 25237 * row keys 25238 */ 25239 ROWS((short)2, "rows"), 25240 /** 25241 * timestamp 25242 */ 25243 TIMESTAMP((short)3, "timestamp"), 25244 /** 25245 * Get attributes 25246 */ 25247 ATTRIBUTES((short)4, "attributes"); 25248 25249 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 25250 25251 static { 25252 for (_Fields field : EnumSet.allOf(_Fields.class)) { 25253 byName.put(field.getFieldName(), field); 25254 } 25255 } 25256 25257 /** 25258 * Find the _Fields constant that matches fieldId, or null if its not found. 25259 */ 25260 public static _Fields findByThriftId(int fieldId) { 25261 switch(fieldId) { 25262 case 1: // TABLE_NAME 25263 return TABLE_NAME; 25264 case 2: // ROWS 25265 return ROWS; 25266 case 3: // TIMESTAMP 25267 return TIMESTAMP; 25268 case 4: // ATTRIBUTES 25269 return ATTRIBUTES; 25270 default: 25271 return null; 25272 } 25273 } 25274 25275 /** 25276 * Find the _Fields constant that matches fieldId, throwing an exception 25277 * if it is not found. 25278 */ 25279 public static _Fields findByThriftIdOrThrow(int fieldId) { 25280 _Fields fields = findByThriftId(fieldId); 25281 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 25282 return fields; 25283 } 25284 25285 /** 25286 * Find the _Fields constant that matches name, or null if its not found. 25287 */ 25288 public static _Fields findByName(String name) { 25289 return byName.get(name); 25290 } 25291 25292 private final short _thriftId; 25293 private final String _fieldName; 25294 25295 _Fields(short thriftId, String fieldName) { 25296 _thriftId = thriftId; 25297 _fieldName = fieldName; 25298 } 25299 25300 public short getThriftFieldId() { 25301 return _thriftId; 25302 } 25303 25304 public String getFieldName() { 25305 return _fieldName; 25306 } 25307 } 25308 25309 // isset id assignments 25310 private static final int __TIMESTAMP_ISSET_ID = 0; 25311 private BitSet __isset_bit_vector = new BitSet(1); 25312 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 25313 static { 25314 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 25315 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 25316 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 25317 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 25318 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 25319 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 25320 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 25321 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 25322 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 25323 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 25324 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 25325 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 25326 metaDataMap = Collections.unmodifiableMap(tmpMap); 25327 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_args.class, metaDataMap); 25328 } 25329 25330 public getRowsTs_args() { 25331 } 25332 25333 public getRowsTs_args( 25334 ByteBuffer tableName, 25335 List<ByteBuffer> rows, 25336 long timestamp, 25337 Map<ByteBuffer,ByteBuffer> attributes) 25338 { 25339 this(); 25340 this.tableName = tableName; 25341 this.rows = rows; 25342 this.timestamp = timestamp; 25343 setTimestampIsSet(true); 25344 this.attributes = attributes; 25345 } 25346 25347 /** 25348 * Performs a deep copy on <i>other</i>. 25349 */ 25350 public getRowsTs_args(getRowsTs_args other) { 25351 __isset_bit_vector.clear(); 25352 __isset_bit_vector.or(other.__isset_bit_vector); 25353 if (other.isSetTableName()) { 25354 this.tableName = other.tableName; 25355 } 25356 if (other.isSetRows()) { 25357 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>(); 25358 for (ByteBuffer other_element : other.rows) { 25359 __this__rows.add(other_element); 25360 } 25361 this.rows = __this__rows; 25362 } 25363 this.timestamp = other.timestamp; 25364 if (other.isSetAttributes()) { 25365 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 25366 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 25367 25368 ByteBuffer other_element_key = other_element.getKey(); 25369 ByteBuffer other_element_value = other_element.getValue(); 25370 25371 ByteBuffer __this__attributes_copy_key = other_element_key; 25372 25373 ByteBuffer __this__attributes_copy_value = other_element_value; 25374 25375 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 25376 } 25377 this.attributes = __this__attributes; 25378 } 25379 } 25380 25381 public getRowsTs_args deepCopy() { 25382 return new getRowsTs_args(this); 25383 } 25384 25385 @Override 25386 public void clear() { 25387 this.tableName = null; 25388 this.rows = null; 25389 setTimestampIsSet(false); 25390 this.timestamp = 0; 25391 this.attributes = null; 25392 } 25393 25394 /** 25395 * name of the table 25396 */ 25397 public byte[] getTableName() { 25398 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 25399 return tableName == null ? null : tableName.array(); 25400 } 25401 25402 public ByteBuffer bufferForTableName() { 25403 return tableName; 25404 } 25405 25406 /** 25407 * name of the table 25408 */ 25409 public getRowsTs_args setTableName(byte[] tableName) { 25410 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 25411 return this; 25412 } 25413 25414 public getRowsTs_args setTableName(ByteBuffer tableName) { 25415 this.tableName = tableName; 25416 return this; 25417 } 25418 25419 public void unsetTableName() { 25420 this.tableName = null; 25421 } 25422 25423 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 25424 public boolean isSetTableName() { 25425 return this.tableName != null; 25426 } 25427 25428 public void setTableNameIsSet(boolean value) { 25429 if (!value) { 25430 this.tableName = null; 25431 } 25432 } 25433 25434 public int getRowsSize() { 25435 return (this.rows == null) ? 0 : this.rows.size(); 25436 } 25437 25438 public java.util.Iterator<ByteBuffer> getRowsIterator() { 25439 return (this.rows == null) ? null : this.rows.iterator(); 25440 } 25441 25442 public void addToRows(ByteBuffer elem) { 25443 if (this.rows == null) { 25444 this.rows = new ArrayList<ByteBuffer>(); 25445 } 25446 this.rows.add(elem); 25447 } 25448 25449 /** 25450 * row keys 25451 */ 25452 public List<ByteBuffer> getRows() { 25453 return this.rows; 25454 } 25455 25456 /** 25457 * row keys 25458 */ 25459 public getRowsTs_args setRows(List<ByteBuffer> rows) { 25460 this.rows = rows; 25461 return this; 25462 } 25463 25464 public void unsetRows() { 25465 this.rows = null; 25466 } 25467 25468 /** Returns true if field rows is set (has been assigned a value) and false otherwise */ 25469 public boolean isSetRows() { 25470 return this.rows != null; 25471 } 25472 25473 public void setRowsIsSet(boolean value) { 25474 if (!value) { 25475 this.rows = null; 25476 } 25477 } 25478 25479 /** 25480 * timestamp 25481 */ 25482 public long getTimestamp() { 25483 return this.timestamp; 25484 } 25485 25486 /** 25487 * timestamp 25488 */ 25489 public getRowsTs_args setTimestamp(long timestamp) { 25490 this.timestamp = timestamp; 25491 setTimestampIsSet(true); 25492 return this; 25493 } 25494 25495 public void unsetTimestamp() { 25496 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 25497 } 25498 25499 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 25500 public boolean isSetTimestamp() { 25501 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 25502 } 25503 25504 public void setTimestampIsSet(boolean value) { 25505 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 25506 } 25507 25508 public int getAttributesSize() { 25509 return (this.attributes == null) ? 0 : this.attributes.size(); 25510 } 25511 25512 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 25513 if (this.attributes == null) { 25514 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 25515 } 25516 this.attributes.put(key, val); 25517 } 25518 25519 /** 25520 * Get attributes 25521 */ 25522 public Map<ByteBuffer,ByteBuffer> getAttributes() { 25523 return this.attributes; 25524 } 25525 25526 /** 25527 * Get attributes 25528 */ 25529 public getRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 25530 this.attributes = attributes; 25531 return this; 25532 } 25533 25534 public void unsetAttributes() { 25535 this.attributes = null; 25536 } 25537 25538 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 25539 public boolean isSetAttributes() { 25540 return this.attributes != null; 25541 } 25542 25543 public void setAttributesIsSet(boolean value) { 25544 if (!value) { 25545 this.attributes = null; 25546 } 25547 } 25548 25549 public void setFieldValue(_Fields field, Object value) { 25550 switch (field) { 25551 case TABLE_NAME: 25552 if (value == null) { 25553 unsetTableName(); 25554 } else { 25555 setTableName((ByteBuffer)value); 25556 } 25557 break; 25558 25559 case ROWS: 25560 if (value == null) { 25561 unsetRows(); 25562 } else { 25563 setRows((List<ByteBuffer>)value); 25564 } 25565 break; 25566 25567 case TIMESTAMP: 25568 if (value == null) { 25569 unsetTimestamp(); 25570 } else { 25571 setTimestamp((Long)value); 25572 } 25573 break; 25574 25575 case ATTRIBUTES: 25576 if (value == null) { 25577 unsetAttributes(); 25578 } else { 25579 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 25580 } 25581 break; 25582 25583 } 25584 } 25585 25586 public Object getFieldValue(_Fields field) { 25587 switch (field) { 25588 case TABLE_NAME: 25589 return getTableName(); 25590 25591 case ROWS: 25592 return getRows(); 25593 25594 case TIMESTAMP: 25595 return Long.valueOf(getTimestamp()); 25596 25597 case ATTRIBUTES: 25598 return getAttributes(); 25599 25600 } 25601 throw new IllegalStateException(); 25602 } 25603 25604 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 25605 public boolean isSet(_Fields field) { 25606 if (field == null) { 25607 throw new IllegalArgumentException(); 25608 } 25609 25610 switch (field) { 25611 case TABLE_NAME: 25612 return isSetTableName(); 25613 case ROWS: 25614 return isSetRows(); 25615 case TIMESTAMP: 25616 return isSetTimestamp(); 25617 case ATTRIBUTES: 25618 return isSetAttributes(); 25619 } 25620 throw new IllegalStateException(); 25621 } 25622 25623 @Override 25624 public boolean equals(Object that) { 25625 if (that == null) 25626 return false; 25627 if (that instanceof getRowsTs_args) 25628 return this.equals((getRowsTs_args)that); 25629 return false; 25630 } 25631 25632 public boolean equals(getRowsTs_args that) { 25633 if (that == null) 25634 return false; 25635 25636 boolean this_present_tableName = true && this.isSetTableName(); 25637 boolean that_present_tableName = true && that.isSetTableName(); 25638 if (this_present_tableName || that_present_tableName) { 25639 if (!(this_present_tableName && that_present_tableName)) 25640 return false; 25641 if (!this.tableName.equals(that.tableName)) 25642 return false; 25643 } 25644 25645 boolean this_present_rows = true && this.isSetRows(); 25646 boolean that_present_rows = true && that.isSetRows(); 25647 if (this_present_rows || that_present_rows) { 25648 if (!(this_present_rows && that_present_rows)) 25649 return false; 25650 if (!this.rows.equals(that.rows)) 25651 return false; 25652 } 25653 25654 boolean this_present_timestamp = true; 25655 boolean that_present_timestamp = true; 25656 if (this_present_timestamp || that_present_timestamp) { 25657 if (!(this_present_timestamp && that_present_timestamp)) 25658 return false; 25659 if (this.timestamp != that.timestamp) 25660 return false; 25661 } 25662 25663 boolean this_present_attributes = true && this.isSetAttributes(); 25664 boolean that_present_attributes = true && that.isSetAttributes(); 25665 if (this_present_attributes || that_present_attributes) { 25666 if (!(this_present_attributes && that_present_attributes)) 25667 return false; 25668 if (!this.attributes.equals(that.attributes)) 25669 return false; 25670 } 25671 25672 return true; 25673 } 25674 25675 @Override 25676 public int hashCode() { 25677 HashCodeBuilder builder = new HashCodeBuilder(); 25678 25679 boolean present_tableName = true && (isSetTableName()); 25680 builder.append(present_tableName); 25681 if (present_tableName) 25682 builder.append(tableName); 25683 25684 boolean present_rows = true && (isSetRows()); 25685 builder.append(present_rows); 25686 if (present_rows) 25687 builder.append(rows); 25688 25689 boolean present_timestamp = true; 25690 builder.append(present_timestamp); 25691 if (present_timestamp) 25692 builder.append(timestamp); 25693 25694 boolean present_attributes = true && (isSetAttributes()); 25695 builder.append(present_attributes); 25696 if (present_attributes) 25697 builder.append(attributes); 25698 25699 return builder.toHashCode(); 25700 } 25701 25702 public int compareTo(getRowsTs_args other) { 25703 if (!getClass().equals(other.getClass())) { 25704 return getClass().getName().compareTo(other.getClass().getName()); 25705 } 25706 25707 int lastComparison = 0; 25708 getRowsTs_args typedOther = (getRowsTs_args)other; 25709 25710 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 25711 if (lastComparison != 0) { 25712 return lastComparison; 25713 } 25714 if (isSetTableName()) { 25715 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 25716 if (lastComparison != 0) { 25717 return lastComparison; 25718 } 25719 } 25720 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); 25721 if (lastComparison != 0) { 25722 return lastComparison; 25723 } 25724 if (isSetRows()) { 25725 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); 25726 if (lastComparison != 0) { 25727 return lastComparison; 25728 } 25729 } 25730 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 25731 if (lastComparison != 0) { 25732 return lastComparison; 25733 } 25734 if (isSetTimestamp()) { 25735 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 25736 if (lastComparison != 0) { 25737 return lastComparison; 25738 } 25739 } 25740 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 25741 if (lastComparison != 0) { 25742 return lastComparison; 25743 } 25744 if (isSetAttributes()) { 25745 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 25746 if (lastComparison != 0) { 25747 return lastComparison; 25748 } 25749 } 25750 return 0; 25751 } 25752 25753 public _Fields fieldForId(int fieldId) { 25754 return _Fields.findByThriftId(fieldId); 25755 } 25756 25757 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 25758 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 25759 } 25760 25761 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 25762 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 25763 } 25764 25765 @Override 25766 public String toString() { 25767 StringBuilder sb = new StringBuilder("getRowsTs_args("); 25768 boolean first = true; 25769 25770 sb.append("tableName:"); 25771 if (this.tableName == null) { 25772 sb.append("null"); 25773 } else { 25774 sb.append(this.tableName); 25775 } 25776 first = false; 25777 if (!first) sb.append(", "); 25778 sb.append("rows:"); 25779 if (this.rows == null) { 25780 sb.append("null"); 25781 } else { 25782 sb.append(this.rows); 25783 } 25784 first = false; 25785 if (!first) sb.append(", "); 25786 sb.append("timestamp:"); 25787 sb.append(this.timestamp); 25788 first = false; 25789 if (!first) sb.append(", "); 25790 sb.append("attributes:"); 25791 if (this.attributes == null) { 25792 sb.append("null"); 25793 } else { 25794 sb.append(this.attributes); 25795 } 25796 first = false; 25797 sb.append(")"); 25798 return sb.toString(); 25799 } 25800 25801 public void validate() throws org.apache.thrift.TException { 25802 // check for required fields 25803 } 25804 25805 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 25806 try { 25807 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 25808 } catch (org.apache.thrift.TException te) { 25809 throw new java.io.IOException(te); 25810 } 25811 } 25812 25813 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 25814 try { 25815 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 25816 __isset_bit_vector = new BitSet(1); 25817 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 25818 } catch (org.apache.thrift.TException te) { 25819 throw new java.io.IOException(te); 25820 } 25821 } 25822 25823 private static class getRowsTs_argsStandardSchemeFactory implements SchemeFactory { 25824 public getRowsTs_argsStandardScheme getScheme() { 25825 return new getRowsTs_argsStandardScheme(); 25826 } 25827 } 25828 25829 private static class getRowsTs_argsStandardScheme extends StandardScheme<getRowsTs_args> { 25830 25831 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_args struct) throws org.apache.thrift.TException { 25832 org.apache.thrift.protocol.TField schemeField; 25833 iprot.readStructBegin(); 25834 while (true) 25835 { 25836 schemeField = iprot.readFieldBegin(); 25837 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 25838 break; 25839 } 25840 switch (schemeField.id) { 25841 case 1: // TABLE_NAME 25842 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 25843 struct.tableName = iprot.readBinary(); 25844 struct.setTableNameIsSet(true); 25845 } else { 25846 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25847 } 25848 break; 25849 case 2: // ROWS 25850 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 25851 { 25852 org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); 25853 struct.rows = new ArrayList<ByteBuffer>(_list270.size); 25854 for (int _i271 = 0; _i271 < _list270.size; ++_i271) 25855 { 25856 ByteBuffer _elem272; // required 25857 _elem272 = iprot.readBinary(); 25858 struct.rows.add(_elem272); 25859 } 25860 iprot.readListEnd(); 25861 } 25862 struct.setRowsIsSet(true); 25863 } else { 25864 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25865 } 25866 break; 25867 case 3: // TIMESTAMP 25868 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 25869 struct.timestamp = iprot.readI64(); 25870 struct.setTimestampIsSet(true); 25871 } else { 25872 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25873 } 25874 break; 25875 case 4: // ATTRIBUTES 25876 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 25877 { 25878 org.apache.thrift.protocol.TMap _map273 = iprot.readMapBegin(); 25879 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map273.size); 25880 for (int _i274 = 0; _i274 < _map273.size; ++_i274) 25881 { 25882 ByteBuffer _key275; // required 25883 ByteBuffer _val276; // required 25884 _key275 = iprot.readBinary(); 25885 _val276 = iprot.readBinary(); 25886 struct.attributes.put(_key275, _val276); 25887 } 25888 iprot.readMapEnd(); 25889 } 25890 struct.setAttributesIsSet(true); 25891 } else { 25892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25893 } 25894 break; 25895 default: 25896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 25897 } 25898 iprot.readFieldEnd(); 25899 } 25900 iprot.readStructEnd(); 25901 25902 // check for required fields of primitive type, which can't be checked in the validate method 25903 struct.validate(); 25904 } 25905 25906 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_args struct) throws org.apache.thrift.TException { 25907 struct.validate(); 25908 25909 oprot.writeStructBegin(STRUCT_DESC); 25910 if (struct.tableName != null) { 25911 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 25912 oprot.writeBinary(struct.tableName); 25913 oprot.writeFieldEnd(); 25914 } 25915 if (struct.rows != null) { 25916 oprot.writeFieldBegin(ROWS_FIELD_DESC); 25917 { 25918 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); 25919 for (ByteBuffer _iter277 : struct.rows) 25920 { 25921 oprot.writeBinary(_iter277); 25922 } 25923 oprot.writeListEnd(); 25924 } 25925 oprot.writeFieldEnd(); 25926 } 25927 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 25928 oprot.writeI64(struct.timestamp); 25929 oprot.writeFieldEnd(); 25930 if (struct.attributes != null) { 25931 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 25932 { 25933 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 25934 for (Map.Entry<ByteBuffer, ByteBuffer> _iter278 : struct.attributes.entrySet()) 25935 { 25936 oprot.writeBinary(_iter278.getKey()); 25937 oprot.writeBinary(_iter278.getValue()); 25938 } 25939 oprot.writeMapEnd(); 25940 } 25941 oprot.writeFieldEnd(); 25942 } 25943 oprot.writeFieldStop(); 25944 oprot.writeStructEnd(); 25945 } 25946 25947 } 25948 25949 private static class getRowsTs_argsTupleSchemeFactory implements SchemeFactory { 25950 public getRowsTs_argsTupleScheme getScheme() { 25951 return new getRowsTs_argsTupleScheme(); 25952 } 25953 } 25954 25955 private static class getRowsTs_argsTupleScheme extends TupleScheme<getRowsTs_args> { 25956 25957 @Override 25958 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException { 25959 TTupleProtocol oprot = (TTupleProtocol) prot; 25960 BitSet optionals = new BitSet(); 25961 if (struct.isSetTableName()) { 25962 optionals.set(0); 25963 } 25964 if (struct.isSetRows()) { 25965 optionals.set(1); 25966 } 25967 if (struct.isSetTimestamp()) { 25968 optionals.set(2); 25969 } 25970 if (struct.isSetAttributes()) { 25971 optionals.set(3); 25972 } 25973 oprot.writeBitSet(optionals, 4); 25974 if (struct.isSetTableName()) { 25975 oprot.writeBinary(struct.tableName); 25976 } 25977 if (struct.isSetRows()) { 25978 { 25979 oprot.writeI32(struct.rows.size()); 25980 for (ByteBuffer _iter279 : struct.rows) 25981 { 25982 oprot.writeBinary(_iter279); 25983 } 25984 } 25985 } 25986 if (struct.isSetTimestamp()) { 25987 oprot.writeI64(struct.timestamp); 25988 } 25989 if (struct.isSetAttributes()) { 25990 { 25991 oprot.writeI32(struct.attributes.size()); 25992 for (Map.Entry<ByteBuffer, ByteBuffer> _iter280 : struct.attributes.entrySet()) 25993 { 25994 oprot.writeBinary(_iter280.getKey()); 25995 oprot.writeBinary(_iter280.getValue()); 25996 } 25997 } 25998 } 25999 } 26000 26001 @Override 26002 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException { 26003 TTupleProtocol iprot = (TTupleProtocol) prot; 26004 BitSet incoming = iprot.readBitSet(4); 26005 if (incoming.get(0)) { 26006 struct.tableName = iprot.readBinary(); 26007 struct.setTableNameIsSet(true); 26008 } 26009 if (incoming.get(1)) { 26010 { 26011 org.apache.thrift.protocol.TList _list281 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 26012 struct.rows = new ArrayList<ByteBuffer>(_list281.size); 26013 for (int _i282 = 0; _i282 < _list281.size; ++_i282) 26014 { 26015 ByteBuffer _elem283; // required 26016 _elem283 = iprot.readBinary(); 26017 struct.rows.add(_elem283); 26018 } 26019 } 26020 struct.setRowsIsSet(true); 26021 } 26022 if (incoming.get(2)) { 26023 struct.timestamp = iprot.readI64(); 26024 struct.setTimestampIsSet(true); 26025 } 26026 if (incoming.get(3)) { 26027 { 26028 org.apache.thrift.protocol.TMap _map284 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 26029 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map284.size); 26030 for (int _i285 = 0; _i285 < _map284.size; ++_i285) 26031 { 26032 ByteBuffer _key286; // required 26033 ByteBuffer _val287; // required 26034 _key286 = iprot.readBinary(); 26035 _val287 = iprot.readBinary(); 26036 struct.attributes.put(_key286, _val287); 26037 } 26038 } 26039 struct.setAttributesIsSet(true); 26040 } 26041 } 26042 } 26043 26044 } 26045 26046 public static class getRowsTs_result implements org.apache.thrift.TBase<getRowsTs_result, getRowsTs_result._Fields>, java.io.Serializable, Cloneable { 26047 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_result"); 26048 26049 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 26050 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 26051 26052 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 26053 static { 26054 schemes.put(StandardScheme.class, new getRowsTs_resultStandardSchemeFactory()); 26055 schemes.put(TupleScheme.class, new getRowsTs_resultTupleSchemeFactory()); 26056 } 26057 26058 public List<TRowResult> success; // required 26059 public IOError io; // required 26060 26061 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 26062 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 26063 SUCCESS((short)0, "success"), 26064 IO((short)1, "io"); 26065 26066 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 26067 26068 static { 26069 for (_Fields field : EnumSet.allOf(_Fields.class)) { 26070 byName.put(field.getFieldName(), field); 26071 } 26072 } 26073 26074 /** 26075 * Find the _Fields constant that matches fieldId, or null if its not found. 26076 */ 26077 public static _Fields findByThriftId(int fieldId) { 26078 switch(fieldId) { 26079 case 0: // SUCCESS 26080 return SUCCESS; 26081 case 1: // IO 26082 return IO; 26083 default: 26084 return null; 26085 } 26086 } 26087 26088 /** 26089 * Find the _Fields constant that matches fieldId, throwing an exception 26090 * if it is not found. 26091 */ 26092 public static _Fields findByThriftIdOrThrow(int fieldId) { 26093 _Fields fields = findByThriftId(fieldId); 26094 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 26095 return fields; 26096 } 26097 26098 /** 26099 * Find the _Fields constant that matches name, or null if its not found. 26100 */ 26101 public static _Fields findByName(String name) { 26102 return byName.get(name); 26103 } 26104 26105 private final short _thriftId; 26106 private final String _fieldName; 26107 26108 _Fields(short thriftId, String fieldName) { 26109 _thriftId = thriftId; 26110 _fieldName = fieldName; 26111 } 26112 26113 public short getThriftFieldId() { 26114 return _thriftId; 26115 } 26116 26117 public String getFieldName() { 26118 return _fieldName; 26119 } 26120 } 26121 26122 // isset id assignments 26123 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 26124 static { 26125 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 26126 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 26127 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 26128 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 26129 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 26130 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 26131 metaDataMap = Collections.unmodifiableMap(tmpMap); 26132 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_result.class, metaDataMap); 26133 } 26134 26135 public getRowsTs_result() { 26136 } 26137 26138 public getRowsTs_result( 26139 List<TRowResult> success, 26140 IOError io) 26141 { 26142 this(); 26143 this.success = success; 26144 this.io = io; 26145 } 26146 26147 /** 26148 * Performs a deep copy on <i>other</i>. 26149 */ 26150 public getRowsTs_result(getRowsTs_result other) { 26151 if (other.isSetSuccess()) { 26152 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 26153 for (TRowResult other_element : other.success) { 26154 __this__success.add(new TRowResult(other_element)); 26155 } 26156 this.success = __this__success; 26157 } 26158 if (other.isSetIo()) { 26159 this.io = new IOError(other.io); 26160 } 26161 } 26162 26163 public getRowsTs_result deepCopy() { 26164 return new getRowsTs_result(this); 26165 } 26166 26167 @Override 26168 public void clear() { 26169 this.success = null; 26170 this.io = null; 26171 } 26172 26173 public int getSuccessSize() { 26174 return (this.success == null) ? 0 : this.success.size(); 26175 } 26176 26177 public java.util.Iterator<TRowResult> getSuccessIterator() { 26178 return (this.success == null) ? null : this.success.iterator(); 26179 } 26180 26181 public void addToSuccess(TRowResult elem) { 26182 if (this.success == null) { 26183 this.success = new ArrayList<TRowResult>(); 26184 } 26185 this.success.add(elem); 26186 } 26187 26188 public List<TRowResult> getSuccess() { 26189 return this.success; 26190 } 26191 26192 public getRowsTs_result setSuccess(List<TRowResult> success) { 26193 this.success = success; 26194 return this; 26195 } 26196 26197 public void unsetSuccess() { 26198 this.success = null; 26199 } 26200 26201 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 26202 public boolean isSetSuccess() { 26203 return this.success != null; 26204 } 26205 26206 public void setSuccessIsSet(boolean value) { 26207 if (!value) { 26208 this.success = null; 26209 } 26210 } 26211 26212 public IOError getIo() { 26213 return this.io; 26214 } 26215 26216 public getRowsTs_result setIo(IOError io) { 26217 this.io = io; 26218 return this; 26219 } 26220 26221 public void unsetIo() { 26222 this.io = null; 26223 } 26224 26225 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 26226 public boolean isSetIo() { 26227 return this.io != null; 26228 } 26229 26230 public void setIoIsSet(boolean value) { 26231 if (!value) { 26232 this.io = null; 26233 } 26234 } 26235 26236 public void setFieldValue(_Fields field, Object value) { 26237 switch (field) { 26238 case SUCCESS: 26239 if (value == null) { 26240 unsetSuccess(); 26241 } else { 26242 setSuccess((List<TRowResult>)value); 26243 } 26244 break; 26245 26246 case IO: 26247 if (value == null) { 26248 unsetIo(); 26249 } else { 26250 setIo((IOError)value); 26251 } 26252 break; 26253 26254 } 26255 } 26256 26257 public Object getFieldValue(_Fields field) { 26258 switch (field) { 26259 case SUCCESS: 26260 return getSuccess(); 26261 26262 case IO: 26263 return getIo(); 26264 26265 } 26266 throw new IllegalStateException(); 26267 } 26268 26269 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 26270 public boolean isSet(_Fields field) { 26271 if (field == null) { 26272 throw new IllegalArgumentException(); 26273 } 26274 26275 switch (field) { 26276 case SUCCESS: 26277 return isSetSuccess(); 26278 case IO: 26279 return isSetIo(); 26280 } 26281 throw new IllegalStateException(); 26282 } 26283 26284 @Override 26285 public boolean equals(Object that) { 26286 if (that == null) 26287 return false; 26288 if (that instanceof getRowsTs_result) 26289 return this.equals((getRowsTs_result)that); 26290 return false; 26291 } 26292 26293 public boolean equals(getRowsTs_result that) { 26294 if (that == null) 26295 return false; 26296 26297 boolean this_present_success = true && this.isSetSuccess(); 26298 boolean that_present_success = true && that.isSetSuccess(); 26299 if (this_present_success || that_present_success) { 26300 if (!(this_present_success && that_present_success)) 26301 return false; 26302 if (!this.success.equals(that.success)) 26303 return false; 26304 } 26305 26306 boolean this_present_io = true && this.isSetIo(); 26307 boolean that_present_io = true && that.isSetIo(); 26308 if (this_present_io || that_present_io) { 26309 if (!(this_present_io && that_present_io)) 26310 return false; 26311 if (!this.io.equals(that.io)) 26312 return false; 26313 } 26314 26315 return true; 26316 } 26317 26318 @Override 26319 public int hashCode() { 26320 HashCodeBuilder builder = new HashCodeBuilder(); 26321 26322 boolean present_success = true && (isSetSuccess()); 26323 builder.append(present_success); 26324 if (present_success) 26325 builder.append(success); 26326 26327 boolean present_io = true && (isSetIo()); 26328 builder.append(present_io); 26329 if (present_io) 26330 builder.append(io); 26331 26332 return builder.toHashCode(); 26333 } 26334 26335 public int compareTo(getRowsTs_result other) { 26336 if (!getClass().equals(other.getClass())) { 26337 return getClass().getName().compareTo(other.getClass().getName()); 26338 } 26339 26340 int lastComparison = 0; 26341 getRowsTs_result typedOther = (getRowsTs_result)other; 26342 26343 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 26344 if (lastComparison != 0) { 26345 return lastComparison; 26346 } 26347 if (isSetSuccess()) { 26348 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 26349 if (lastComparison != 0) { 26350 return lastComparison; 26351 } 26352 } 26353 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 26354 if (lastComparison != 0) { 26355 return lastComparison; 26356 } 26357 if (isSetIo()) { 26358 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 26359 if (lastComparison != 0) { 26360 return lastComparison; 26361 } 26362 } 26363 return 0; 26364 } 26365 26366 public _Fields fieldForId(int fieldId) { 26367 return _Fields.findByThriftId(fieldId); 26368 } 26369 26370 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 26371 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 26372 } 26373 26374 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 26375 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 26376 } 26377 26378 @Override 26379 public String toString() { 26380 StringBuilder sb = new StringBuilder("getRowsTs_result("); 26381 boolean first = true; 26382 26383 sb.append("success:"); 26384 if (this.success == null) { 26385 sb.append("null"); 26386 } else { 26387 sb.append(this.success); 26388 } 26389 first = false; 26390 if (!first) sb.append(", "); 26391 sb.append("io:"); 26392 if (this.io == null) { 26393 sb.append("null"); 26394 } else { 26395 sb.append(this.io); 26396 } 26397 first = false; 26398 sb.append(")"); 26399 return sb.toString(); 26400 } 26401 26402 public void validate() throws org.apache.thrift.TException { 26403 // check for required fields 26404 } 26405 26406 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 26407 try { 26408 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 26409 } catch (org.apache.thrift.TException te) { 26410 throw new java.io.IOException(te); 26411 } 26412 } 26413 26414 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 26415 try { 26416 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 26417 } catch (org.apache.thrift.TException te) { 26418 throw new java.io.IOException(te); 26419 } 26420 } 26421 26422 private static class getRowsTs_resultStandardSchemeFactory implements SchemeFactory { 26423 public getRowsTs_resultStandardScheme getScheme() { 26424 return new getRowsTs_resultStandardScheme(); 26425 } 26426 } 26427 26428 private static class getRowsTs_resultStandardScheme extends StandardScheme<getRowsTs_result> { 26429 26430 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_result struct) throws org.apache.thrift.TException { 26431 org.apache.thrift.protocol.TField schemeField; 26432 iprot.readStructBegin(); 26433 while (true) 26434 { 26435 schemeField = iprot.readFieldBegin(); 26436 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 26437 break; 26438 } 26439 switch (schemeField.id) { 26440 case 0: // SUCCESS 26441 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 26442 { 26443 org.apache.thrift.protocol.TList _list288 = iprot.readListBegin(); 26444 struct.success = new ArrayList<TRowResult>(_list288.size); 26445 for (int _i289 = 0; _i289 < _list288.size; ++_i289) 26446 { 26447 TRowResult _elem290; // required 26448 _elem290 = new TRowResult(); 26449 _elem290.read(iprot); 26450 struct.success.add(_elem290); 26451 } 26452 iprot.readListEnd(); 26453 } 26454 struct.setSuccessIsSet(true); 26455 } else { 26456 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 26457 } 26458 break; 26459 case 1: // IO 26460 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 26461 struct.io = new IOError(); 26462 struct.io.read(iprot); 26463 struct.setIoIsSet(true); 26464 } else { 26465 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 26466 } 26467 break; 26468 default: 26469 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 26470 } 26471 iprot.readFieldEnd(); 26472 } 26473 iprot.readStructEnd(); 26474 26475 // check for required fields of primitive type, which can't be checked in the validate method 26476 struct.validate(); 26477 } 26478 26479 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_result struct) throws org.apache.thrift.TException { 26480 struct.validate(); 26481 26482 oprot.writeStructBegin(STRUCT_DESC); 26483 if (struct.success != null) { 26484 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 26485 { 26486 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 26487 for (TRowResult _iter291 : struct.success) 26488 { 26489 _iter291.write(oprot); 26490 } 26491 oprot.writeListEnd(); 26492 } 26493 oprot.writeFieldEnd(); 26494 } 26495 if (struct.io != null) { 26496 oprot.writeFieldBegin(IO_FIELD_DESC); 26497 struct.io.write(oprot); 26498 oprot.writeFieldEnd(); 26499 } 26500 oprot.writeFieldStop(); 26501 oprot.writeStructEnd(); 26502 } 26503 26504 } 26505 26506 private static class getRowsTs_resultTupleSchemeFactory implements SchemeFactory { 26507 public getRowsTs_resultTupleScheme getScheme() { 26508 return new getRowsTs_resultTupleScheme(); 26509 } 26510 } 26511 26512 private static class getRowsTs_resultTupleScheme extends TupleScheme<getRowsTs_result> { 26513 26514 @Override 26515 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException { 26516 TTupleProtocol oprot = (TTupleProtocol) prot; 26517 BitSet optionals = new BitSet(); 26518 if (struct.isSetSuccess()) { 26519 optionals.set(0); 26520 } 26521 if (struct.isSetIo()) { 26522 optionals.set(1); 26523 } 26524 oprot.writeBitSet(optionals, 2); 26525 if (struct.isSetSuccess()) { 26526 { 26527 oprot.writeI32(struct.success.size()); 26528 for (TRowResult _iter292 : struct.success) 26529 { 26530 _iter292.write(oprot); 26531 } 26532 } 26533 } 26534 if (struct.isSetIo()) { 26535 struct.io.write(oprot); 26536 } 26537 } 26538 26539 @Override 26540 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException { 26541 TTupleProtocol iprot = (TTupleProtocol) prot; 26542 BitSet incoming = iprot.readBitSet(2); 26543 if (incoming.get(0)) { 26544 { 26545 org.apache.thrift.protocol.TList _list293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 26546 struct.success = new ArrayList<TRowResult>(_list293.size); 26547 for (int _i294 = 0; _i294 < _list293.size; ++_i294) 26548 { 26549 TRowResult _elem295; // required 26550 _elem295 = new TRowResult(); 26551 _elem295.read(iprot); 26552 struct.success.add(_elem295); 26553 } 26554 } 26555 struct.setSuccessIsSet(true); 26556 } 26557 if (incoming.get(1)) { 26558 struct.io = new IOError(); 26559 struct.io.read(iprot); 26560 struct.setIoIsSet(true); 26561 } 26562 } 26563 } 26564 26565 } 26566 26567 public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase<getRowsWithColumnsTs_args, getRowsWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable { 26568 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_args"); 26569 26570 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 26571 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2); 26572 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 26573 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 26574 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 26575 26576 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 26577 static { 26578 schemes.put(StandardScheme.class, new getRowsWithColumnsTs_argsStandardSchemeFactory()); 26579 schemes.put(TupleScheme.class, new getRowsWithColumnsTs_argsTupleSchemeFactory()); 26580 } 26581 26582 /** 26583 * name of table 26584 */ 26585 public ByteBuffer tableName; // required 26586 /** 26587 * row keys 26588 */ 26589 public List<ByteBuffer> rows; // required 26590 /** 26591 * List of columns to return, null for all columns 26592 */ 26593 public List<ByteBuffer> columns; // required 26594 public long timestamp; // required 26595 /** 26596 * Get attributes 26597 */ 26598 public Map<ByteBuffer,ByteBuffer> attributes; // required 26599 26600 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 26601 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 26602 /** 26603 * name of table 26604 */ 26605 TABLE_NAME((short)1, "tableName"), 26606 /** 26607 * row keys 26608 */ 26609 ROWS((short)2, "rows"), 26610 /** 26611 * List of columns to return, null for all columns 26612 */ 26613 COLUMNS((short)3, "columns"), 26614 TIMESTAMP((short)4, "timestamp"), 26615 /** 26616 * Get attributes 26617 */ 26618 ATTRIBUTES((short)5, "attributes"); 26619 26620 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 26621 26622 static { 26623 for (_Fields field : EnumSet.allOf(_Fields.class)) { 26624 byName.put(field.getFieldName(), field); 26625 } 26626 } 26627 26628 /** 26629 * Find the _Fields constant that matches fieldId, or null if its not found. 26630 */ 26631 public static _Fields findByThriftId(int fieldId) { 26632 switch(fieldId) { 26633 case 1: // TABLE_NAME 26634 return TABLE_NAME; 26635 case 2: // ROWS 26636 return ROWS; 26637 case 3: // COLUMNS 26638 return COLUMNS; 26639 case 4: // TIMESTAMP 26640 return TIMESTAMP; 26641 case 5: // ATTRIBUTES 26642 return ATTRIBUTES; 26643 default: 26644 return null; 26645 } 26646 } 26647 26648 /** 26649 * Find the _Fields constant that matches fieldId, throwing an exception 26650 * if it is not found. 26651 */ 26652 public static _Fields findByThriftIdOrThrow(int fieldId) { 26653 _Fields fields = findByThriftId(fieldId); 26654 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 26655 return fields; 26656 } 26657 26658 /** 26659 * Find the _Fields constant that matches name, or null if its not found. 26660 */ 26661 public static _Fields findByName(String name) { 26662 return byName.get(name); 26663 } 26664 26665 private final short _thriftId; 26666 private final String _fieldName; 26667 26668 _Fields(short thriftId, String fieldName) { 26669 _thriftId = thriftId; 26670 _fieldName = fieldName; 26671 } 26672 26673 public short getThriftFieldId() { 26674 return _thriftId; 26675 } 26676 26677 public String getFieldName() { 26678 return _fieldName; 26679 } 26680 } 26681 26682 // isset id assignments 26683 private static final int __TIMESTAMP_ISSET_ID = 0; 26684 private BitSet __isset_bit_vector = new BitSet(1); 26685 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 26686 static { 26687 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 26688 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 26689 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 26690 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT, 26691 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 26692 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 26693 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 26694 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 26695 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 26696 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 26697 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 26698 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 26699 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 26700 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 26701 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 26702 metaDataMap = Collections.unmodifiableMap(tmpMap); 26703 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_args.class, metaDataMap); 26704 } 26705 26706 public getRowsWithColumnsTs_args() { 26707 } 26708 26709 public getRowsWithColumnsTs_args( 26710 ByteBuffer tableName, 26711 List<ByteBuffer> rows, 26712 List<ByteBuffer> columns, 26713 long timestamp, 26714 Map<ByteBuffer,ByteBuffer> attributes) 26715 { 26716 this(); 26717 this.tableName = tableName; 26718 this.rows = rows; 26719 this.columns = columns; 26720 this.timestamp = timestamp; 26721 setTimestampIsSet(true); 26722 this.attributes = attributes; 26723 } 26724 26725 /** 26726 * Performs a deep copy on <i>other</i>. 26727 */ 26728 public getRowsWithColumnsTs_args(getRowsWithColumnsTs_args other) { 26729 __isset_bit_vector.clear(); 26730 __isset_bit_vector.or(other.__isset_bit_vector); 26731 if (other.isSetTableName()) { 26732 this.tableName = other.tableName; 26733 } 26734 if (other.isSetRows()) { 26735 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>(); 26736 for (ByteBuffer other_element : other.rows) { 26737 __this__rows.add(other_element); 26738 } 26739 this.rows = __this__rows; 26740 } 26741 if (other.isSetColumns()) { 26742 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 26743 for (ByteBuffer other_element : other.columns) { 26744 __this__columns.add(other_element); 26745 } 26746 this.columns = __this__columns; 26747 } 26748 this.timestamp = other.timestamp; 26749 if (other.isSetAttributes()) { 26750 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 26751 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 26752 26753 ByteBuffer other_element_key = other_element.getKey(); 26754 ByteBuffer other_element_value = other_element.getValue(); 26755 26756 ByteBuffer __this__attributes_copy_key = other_element_key; 26757 26758 ByteBuffer __this__attributes_copy_value = other_element_value; 26759 26760 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 26761 } 26762 this.attributes = __this__attributes; 26763 } 26764 } 26765 26766 public getRowsWithColumnsTs_args deepCopy() { 26767 return new getRowsWithColumnsTs_args(this); 26768 } 26769 26770 @Override 26771 public void clear() { 26772 this.tableName = null; 26773 this.rows = null; 26774 this.columns = null; 26775 setTimestampIsSet(false); 26776 this.timestamp = 0; 26777 this.attributes = null; 26778 } 26779 26780 /** 26781 * name of table 26782 */ 26783 public byte[] getTableName() { 26784 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 26785 return tableName == null ? null : tableName.array(); 26786 } 26787 26788 public ByteBuffer bufferForTableName() { 26789 return tableName; 26790 } 26791 26792 /** 26793 * name of table 26794 */ 26795 public getRowsWithColumnsTs_args setTableName(byte[] tableName) { 26796 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 26797 return this; 26798 } 26799 26800 public getRowsWithColumnsTs_args setTableName(ByteBuffer tableName) { 26801 this.tableName = tableName; 26802 return this; 26803 } 26804 26805 public void unsetTableName() { 26806 this.tableName = null; 26807 } 26808 26809 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 26810 public boolean isSetTableName() { 26811 return this.tableName != null; 26812 } 26813 26814 public void setTableNameIsSet(boolean value) { 26815 if (!value) { 26816 this.tableName = null; 26817 } 26818 } 26819 26820 public int getRowsSize() { 26821 return (this.rows == null) ? 0 : this.rows.size(); 26822 } 26823 26824 public java.util.Iterator<ByteBuffer> getRowsIterator() { 26825 return (this.rows == null) ? null : this.rows.iterator(); 26826 } 26827 26828 public void addToRows(ByteBuffer elem) { 26829 if (this.rows == null) { 26830 this.rows = new ArrayList<ByteBuffer>(); 26831 } 26832 this.rows.add(elem); 26833 } 26834 26835 /** 26836 * row keys 26837 */ 26838 public List<ByteBuffer> getRows() { 26839 return this.rows; 26840 } 26841 26842 /** 26843 * row keys 26844 */ 26845 public getRowsWithColumnsTs_args setRows(List<ByteBuffer> rows) { 26846 this.rows = rows; 26847 return this; 26848 } 26849 26850 public void unsetRows() { 26851 this.rows = null; 26852 } 26853 26854 /** Returns true if field rows is set (has been assigned a value) and false otherwise */ 26855 public boolean isSetRows() { 26856 return this.rows != null; 26857 } 26858 26859 public void setRowsIsSet(boolean value) { 26860 if (!value) { 26861 this.rows = null; 26862 } 26863 } 26864 26865 public int getColumnsSize() { 26866 return (this.columns == null) ? 0 : this.columns.size(); 26867 } 26868 26869 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 26870 return (this.columns == null) ? null : this.columns.iterator(); 26871 } 26872 26873 public void addToColumns(ByteBuffer elem) { 26874 if (this.columns == null) { 26875 this.columns = new ArrayList<ByteBuffer>(); 26876 } 26877 this.columns.add(elem); 26878 } 26879 26880 /** 26881 * List of columns to return, null for all columns 26882 */ 26883 public List<ByteBuffer> getColumns() { 26884 return this.columns; 26885 } 26886 26887 /** 26888 * List of columns to return, null for all columns 26889 */ 26890 public getRowsWithColumnsTs_args setColumns(List<ByteBuffer> columns) { 26891 this.columns = columns; 26892 return this; 26893 } 26894 26895 public void unsetColumns() { 26896 this.columns = null; 26897 } 26898 26899 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 26900 public boolean isSetColumns() { 26901 return this.columns != null; 26902 } 26903 26904 public void setColumnsIsSet(boolean value) { 26905 if (!value) { 26906 this.columns = null; 26907 } 26908 } 26909 26910 public long getTimestamp() { 26911 return this.timestamp; 26912 } 26913 26914 public getRowsWithColumnsTs_args setTimestamp(long timestamp) { 26915 this.timestamp = timestamp; 26916 setTimestampIsSet(true); 26917 return this; 26918 } 26919 26920 public void unsetTimestamp() { 26921 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 26922 } 26923 26924 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 26925 public boolean isSetTimestamp() { 26926 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 26927 } 26928 26929 public void setTimestampIsSet(boolean value) { 26930 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 26931 } 26932 26933 public int getAttributesSize() { 26934 return (this.attributes == null) ? 0 : this.attributes.size(); 26935 } 26936 26937 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 26938 if (this.attributes == null) { 26939 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 26940 } 26941 this.attributes.put(key, val); 26942 } 26943 26944 /** 26945 * Get attributes 26946 */ 26947 public Map<ByteBuffer,ByteBuffer> getAttributes() { 26948 return this.attributes; 26949 } 26950 26951 /** 26952 * Get attributes 26953 */ 26954 public getRowsWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 26955 this.attributes = attributes; 26956 return this; 26957 } 26958 26959 public void unsetAttributes() { 26960 this.attributes = null; 26961 } 26962 26963 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 26964 public boolean isSetAttributes() { 26965 return this.attributes != null; 26966 } 26967 26968 public void setAttributesIsSet(boolean value) { 26969 if (!value) { 26970 this.attributes = null; 26971 } 26972 } 26973 26974 public void setFieldValue(_Fields field, Object value) { 26975 switch (field) { 26976 case TABLE_NAME: 26977 if (value == null) { 26978 unsetTableName(); 26979 } else { 26980 setTableName((ByteBuffer)value); 26981 } 26982 break; 26983 26984 case ROWS: 26985 if (value == null) { 26986 unsetRows(); 26987 } else { 26988 setRows((List<ByteBuffer>)value); 26989 } 26990 break; 26991 26992 case COLUMNS: 26993 if (value == null) { 26994 unsetColumns(); 26995 } else { 26996 setColumns((List<ByteBuffer>)value); 26997 } 26998 break; 26999 27000 case TIMESTAMP: 27001 if (value == null) { 27002 unsetTimestamp(); 27003 } else { 27004 setTimestamp((Long)value); 27005 } 27006 break; 27007 27008 case ATTRIBUTES: 27009 if (value == null) { 27010 unsetAttributes(); 27011 } else { 27012 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 27013 } 27014 break; 27015 27016 } 27017 } 27018 27019 public Object getFieldValue(_Fields field) { 27020 switch (field) { 27021 case TABLE_NAME: 27022 return getTableName(); 27023 27024 case ROWS: 27025 return getRows(); 27026 27027 case COLUMNS: 27028 return getColumns(); 27029 27030 case TIMESTAMP: 27031 return Long.valueOf(getTimestamp()); 27032 27033 case ATTRIBUTES: 27034 return getAttributes(); 27035 27036 } 27037 throw new IllegalStateException(); 27038 } 27039 27040 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 27041 public boolean isSet(_Fields field) { 27042 if (field == null) { 27043 throw new IllegalArgumentException(); 27044 } 27045 27046 switch (field) { 27047 case TABLE_NAME: 27048 return isSetTableName(); 27049 case ROWS: 27050 return isSetRows(); 27051 case COLUMNS: 27052 return isSetColumns(); 27053 case TIMESTAMP: 27054 return isSetTimestamp(); 27055 case ATTRIBUTES: 27056 return isSetAttributes(); 27057 } 27058 throw new IllegalStateException(); 27059 } 27060 27061 @Override 27062 public boolean equals(Object that) { 27063 if (that == null) 27064 return false; 27065 if (that instanceof getRowsWithColumnsTs_args) 27066 return this.equals((getRowsWithColumnsTs_args)that); 27067 return false; 27068 } 27069 27070 public boolean equals(getRowsWithColumnsTs_args that) { 27071 if (that == null) 27072 return false; 27073 27074 boolean this_present_tableName = true && this.isSetTableName(); 27075 boolean that_present_tableName = true && that.isSetTableName(); 27076 if (this_present_tableName || that_present_tableName) { 27077 if (!(this_present_tableName && that_present_tableName)) 27078 return false; 27079 if (!this.tableName.equals(that.tableName)) 27080 return false; 27081 } 27082 27083 boolean this_present_rows = true && this.isSetRows(); 27084 boolean that_present_rows = true && that.isSetRows(); 27085 if (this_present_rows || that_present_rows) { 27086 if (!(this_present_rows && that_present_rows)) 27087 return false; 27088 if (!this.rows.equals(that.rows)) 27089 return false; 27090 } 27091 27092 boolean this_present_columns = true && this.isSetColumns(); 27093 boolean that_present_columns = true && that.isSetColumns(); 27094 if (this_present_columns || that_present_columns) { 27095 if (!(this_present_columns && that_present_columns)) 27096 return false; 27097 if (!this.columns.equals(that.columns)) 27098 return false; 27099 } 27100 27101 boolean this_present_timestamp = true; 27102 boolean that_present_timestamp = true; 27103 if (this_present_timestamp || that_present_timestamp) { 27104 if (!(this_present_timestamp && that_present_timestamp)) 27105 return false; 27106 if (this.timestamp != that.timestamp) 27107 return false; 27108 } 27109 27110 boolean this_present_attributes = true && this.isSetAttributes(); 27111 boolean that_present_attributes = true && that.isSetAttributes(); 27112 if (this_present_attributes || that_present_attributes) { 27113 if (!(this_present_attributes && that_present_attributes)) 27114 return false; 27115 if (!this.attributes.equals(that.attributes)) 27116 return false; 27117 } 27118 27119 return true; 27120 } 27121 27122 @Override 27123 public int hashCode() { 27124 HashCodeBuilder builder = new HashCodeBuilder(); 27125 27126 boolean present_tableName = true && (isSetTableName()); 27127 builder.append(present_tableName); 27128 if (present_tableName) 27129 builder.append(tableName); 27130 27131 boolean present_rows = true && (isSetRows()); 27132 builder.append(present_rows); 27133 if (present_rows) 27134 builder.append(rows); 27135 27136 boolean present_columns = true && (isSetColumns()); 27137 builder.append(present_columns); 27138 if (present_columns) 27139 builder.append(columns); 27140 27141 boolean present_timestamp = true; 27142 builder.append(present_timestamp); 27143 if (present_timestamp) 27144 builder.append(timestamp); 27145 27146 boolean present_attributes = true && (isSetAttributes()); 27147 builder.append(present_attributes); 27148 if (present_attributes) 27149 builder.append(attributes); 27150 27151 return builder.toHashCode(); 27152 } 27153 27154 public int compareTo(getRowsWithColumnsTs_args other) { 27155 if (!getClass().equals(other.getClass())) { 27156 return getClass().getName().compareTo(other.getClass().getName()); 27157 } 27158 27159 int lastComparison = 0; 27160 getRowsWithColumnsTs_args typedOther = (getRowsWithColumnsTs_args)other; 27161 27162 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 27163 if (lastComparison != 0) { 27164 return lastComparison; 27165 } 27166 if (isSetTableName()) { 27167 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 27168 if (lastComparison != 0) { 27169 return lastComparison; 27170 } 27171 } 27172 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); 27173 if (lastComparison != 0) { 27174 return lastComparison; 27175 } 27176 if (isSetRows()) { 27177 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); 27178 if (lastComparison != 0) { 27179 return lastComparison; 27180 } 27181 } 27182 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 27183 if (lastComparison != 0) { 27184 return lastComparison; 27185 } 27186 if (isSetColumns()) { 27187 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 27188 if (lastComparison != 0) { 27189 return lastComparison; 27190 } 27191 } 27192 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 27193 if (lastComparison != 0) { 27194 return lastComparison; 27195 } 27196 if (isSetTimestamp()) { 27197 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 27198 if (lastComparison != 0) { 27199 return lastComparison; 27200 } 27201 } 27202 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 27203 if (lastComparison != 0) { 27204 return lastComparison; 27205 } 27206 if (isSetAttributes()) { 27207 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 27208 if (lastComparison != 0) { 27209 return lastComparison; 27210 } 27211 } 27212 return 0; 27213 } 27214 27215 public _Fields fieldForId(int fieldId) { 27216 return _Fields.findByThriftId(fieldId); 27217 } 27218 27219 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 27220 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 27221 } 27222 27223 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 27224 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 27225 } 27226 27227 @Override 27228 public String toString() { 27229 StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_args("); 27230 boolean first = true; 27231 27232 sb.append("tableName:"); 27233 if (this.tableName == null) { 27234 sb.append("null"); 27235 } else { 27236 sb.append(this.tableName); 27237 } 27238 first = false; 27239 if (!first) sb.append(", "); 27240 sb.append("rows:"); 27241 if (this.rows == null) { 27242 sb.append("null"); 27243 } else { 27244 sb.append(this.rows); 27245 } 27246 first = false; 27247 if (!first) sb.append(", "); 27248 sb.append("columns:"); 27249 if (this.columns == null) { 27250 sb.append("null"); 27251 } else { 27252 sb.append(this.columns); 27253 } 27254 first = false; 27255 if (!first) sb.append(", "); 27256 sb.append("timestamp:"); 27257 sb.append(this.timestamp); 27258 first = false; 27259 if (!first) sb.append(", "); 27260 sb.append("attributes:"); 27261 if (this.attributes == null) { 27262 sb.append("null"); 27263 } else { 27264 sb.append(this.attributes); 27265 } 27266 first = false; 27267 sb.append(")"); 27268 return sb.toString(); 27269 } 27270 27271 public void validate() throws org.apache.thrift.TException { 27272 // check for required fields 27273 } 27274 27275 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 27276 try { 27277 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 27278 } catch (org.apache.thrift.TException te) { 27279 throw new java.io.IOException(te); 27280 } 27281 } 27282 27283 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 27284 try { 27285 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 27286 __isset_bit_vector = new BitSet(1); 27287 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 27288 } catch (org.apache.thrift.TException te) { 27289 throw new java.io.IOException(te); 27290 } 27291 } 27292 27293 private static class getRowsWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory { 27294 public getRowsWithColumnsTs_argsStandardScheme getScheme() { 27295 return new getRowsWithColumnsTs_argsStandardScheme(); 27296 } 27297 } 27298 27299 private static class getRowsWithColumnsTs_argsStandardScheme extends StandardScheme<getRowsWithColumnsTs_args> { 27300 27301 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { 27302 org.apache.thrift.protocol.TField schemeField; 27303 iprot.readStructBegin(); 27304 while (true) 27305 { 27306 schemeField = iprot.readFieldBegin(); 27307 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 27308 break; 27309 } 27310 switch (schemeField.id) { 27311 case 1: // TABLE_NAME 27312 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 27313 struct.tableName = iprot.readBinary(); 27314 struct.setTableNameIsSet(true); 27315 } else { 27316 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27317 } 27318 break; 27319 case 2: // ROWS 27320 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 27321 { 27322 org.apache.thrift.protocol.TList _list296 = iprot.readListBegin(); 27323 struct.rows = new ArrayList<ByteBuffer>(_list296.size); 27324 for (int _i297 = 0; _i297 < _list296.size; ++_i297) 27325 { 27326 ByteBuffer _elem298; // required 27327 _elem298 = iprot.readBinary(); 27328 struct.rows.add(_elem298); 27329 } 27330 iprot.readListEnd(); 27331 } 27332 struct.setRowsIsSet(true); 27333 } else { 27334 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27335 } 27336 break; 27337 case 3: // COLUMNS 27338 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 27339 { 27340 org.apache.thrift.protocol.TList _list299 = iprot.readListBegin(); 27341 struct.columns = new ArrayList<ByteBuffer>(_list299.size); 27342 for (int _i300 = 0; _i300 < _list299.size; ++_i300) 27343 { 27344 ByteBuffer _elem301; // required 27345 _elem301 = iprot.readBinary(); 27346 struct.columns.add(_elem301); 27347 } 27348 iprot.readListEnd(); 27349 } 27350 struct.setColumnsIsSet(true); 27351 } else { 27352 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27353 } 27354 break; 27355 case 4: // TIMESTAMP 27356 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 27357 struct.timestamp = iprot.readI64(); 27358 struct.setTimestampIsSet(true); 27359 } else { 27360 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27361 } 27362 break; 27363 case 5: // ATTRIBUTES 27364 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 27365 { 27366 org.apache.thrift.protocol.TMap _map302 = iprot.readMapBegin(); 27367 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map302.size); 27368 for (int _i303 = 0; _i303 < _map302.size; ++_i303) 27369 { 27370 ByteBuffer _key304; // required 27371 ByteBuffer _val305; // required 27372 _key304 = iprot.readBinary(); 27373 _val305 = iprot.readBinary(); 27374 struct.attributes.put(_key304, _val305); 27375 } 27376 iprot.readMapEnd(); 27377 } 27378 struct.setAttributesIsSet(true); 27379 } else { 27380 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27381 } 27382 break; 27383 default: 27384 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27385 } 27386 iprot.readFieldEnd(); 27387 } 27388 iprot.readStructEnd(); 27389 27390 // check for required fields of primitive type, which can't be checked in the validate method 27391 struct.validate(); 27392 } 27393 27394 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { 27395 struct.validate(); 27396 27397 oprot.writeStructBegin(STRUCT_DESC); 27398 if (struct.tableName != null) { 27399 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 27400 oprot.writeBinary(struct.tableName); 27401 oprot.writeFieldEnd(); 27402 } 27403 if (struct.rows != null) { 27404 oprot.writeFieldBegin(ROWS_FIELD_DESC); 27405 { 27406 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size())); 27407 for (ByteBuffer _iter306 : struct.rows) 27408 { 27409 oprot.writeBinary(_iter306); 27410 } 27411 oprot.writeListEnd(); 27412 } 27413 oprot.writeFieldEnd(); 27414 } 27415 if (struct.columns != null) { 27416 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 27417 { 27418 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 27419 for (ByteBuffer _iter307 : struct.columns) 27420 { 27421 oprot.writeBinary(_iter307); 27422 } 27423 oprot.writeListEnd(); 27424 } 27425 oprot.writeFieldEnd(); 27426 } 27427 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 27428 oprot.writeI64(struct.timestamp); 27429 oprot.writeFieldEnd(); 27430 if (struct.attributes != null) { 27431 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 27432 { 27433 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 27434 for (Map.Entry<ByteBuffer, ByteBuffer> _iter308 : struct.attributes.entrySet()) 27435 { 27436 oprot.writeBinary(_iter308.getKey()); 27437 oprot.writeBinary(_iter308.getValue()); 27438 } 27439 oprot.writeMapEnd(); 27440 } 27441 oprot.writeFieldEnd(); 27442 } 27443 oprot.writeFieldStop(); 27444 oprot.writeStructEnd(); 27445 } 27446 27447 } 27448 27449 private static class getRowsWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory { 27450 public getRowsWithColumnsTs_argsTupleScheme getScheme() { 27451 return new getRowsWithColumnsTs_argsTupleScheme(); 27452 } 27453 } 27454 27455 private static class getRowsWithColumnsTs_argsTupleScheme extends TupleScheme<getRowsWithColumnsTs_args> { 27456 27457 @Override 27458 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { 27459 TTupleProtocol oprot = (TTupleProtocol) prot; 27460 BitSet optionals = new BitSet(); 27461 if (struct.isSetTableName()) { 27462 optionals.set(0); 27463 } 27464 if (struct.isSetRows()) { 27465 optionals.set(1); 27466 } 27467 if (struct.isSetColumns()) { 27468 optionals.set(2); 27469 } 27470 if (struct.isSetTimestamp()) { 27471 optionals.set(3); 27472 } 27473 if (struct.isSetAttributes()) { 27474 optionals.set(4); 27475 } 27476 oprot.writeBitSet(optionals, 5); 27477 if (struct.isSetTableName()) { 27478 oprot.writeBinary(struct.tableName); 27479 } 27480 if (struct.isSetRows()) { 27481 { 27482 oprot.writeI32(struct.rows.size()); 27483 for (ByteBuffer _iter309 : struct.rows) 27484 { 27485 oprot.writeBinary(_iter309); 27486 } 27487 } 27488 } 27489 if (struct.isSetColumns()) { 27490 { 27491 oprot.writeI32(struct.columns.size()); 27492 for (ByteBuffer _iter310 : struct.columns) 27493 { 27494 oprot.writeBinary(_iter310); 27495 } 27496 } 27497 } 27498 if (struct.isSetTimestamp()) { 27499 oprot.writeI64(struct.timestamp); 27500 } 27501 if (struct.isSetAttributes()) { 27502 { 27503 oprot.writeI32(struct.attributes.size()); 27504 for (Map.Entry<ByteBuffer, ByteBuffer> _iter311 : struct.attributes.entrySet()) 27505 { 27506 oprot.writeBinary(_iter311.getKey()); 27507 oprot.writeBinary(_iter311.getValue()); 27508 } 27509 } 27510 } 27511 } 27512 27513 @Override 27514 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException { 27515 TTupleProtocol iprot = (TTupleProtocol) prot; 27516 BitSet incoming = iprot.readBitSet(5); 27517 if (incoming.get(0)) { 27518 struct.tableName = iprot.readBinary(); 27519 struct.setTableNameIsSet(true); 27520 } 27521 if (incoming.get(1)) { 27522 { 27523 org.apache.thrift.protocol.TList _list312 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 27524 struct.rows = new ArrayList<ByteBuffer>(_list312.size); 27525 for (int _i313 = 0; _i313 < _list312.size; ++_i313) 27526 { 27527 ByteBuffer _elem314; // required 27528 _elem314 = iprot.readBinary(); 27529 struct.rows.add(_elem314); 27530 } 27531 } 27532 struct.setRowsIsSet(true); 27533 } 27534 if (incoming.get(2)) { 27535 { 27536 org.apache.thrift.protocol.TList _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 27537 struct.columns = new ArrayList<ByteBuffer>(_list315.size); 27538 for (int _i316 = 0; _i316 < _list315.size; ++_i316) 27539 { 27540 ByteBuffer _elem317; // required 27541 _elem317 = iprot.readBinary(); 27542 struct.columns.add(_elem317); 27543 } 27544 } 27545 struct.setColumnsIsSet(true); 27546 } 27547 if (incoming.get(3)) { 27548 struct.timestamp = iprot.readI64(); 27549 struct.setTimestampIsSet(true); 27550 } 27551 if (incoming.get(4)) { 27552 { 27553 org.apache.thrift.protocol.TMap _map318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 27554 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map318.size); 27555 for (int _i319 = 0; _i319 < _map318.size; ++_i319) 27556 { 27557 ByteBuffer _key320; // required 27558 ByteBuffer _val321; // required 27559 _key320 = iprot.readBinary(); 27560 _val321 = iprot.readBinary(); 27561 struct.attributes.put(_key320, _val321); 27562 } 27563 } 27564 struct.setAttributesIsSet(true); 27565 } 27566 } 27567 } 27568 27569 } 27570 27571 public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase<getRowsWithColumnsTs_result, getRowsWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable { 27572 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_result"); 27573 27574 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 27575 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 27576 27577 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 27578 static { 27579 schemes.put(StandardScheme.class, new getRowsWithColumnsTs_resultStandardSchemeFactory()); 27580 schemes.put(TupleScheme.class, new getRowsWithColumnsTs_resultTupleSchemeFactory()); 27581 } 27582 27583 public List<TRowResult> success; // required 27584 public IOError io; // required 27585 27586 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 27587 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 27588 SUCCESS((short)0, "success"), 27589 IO((short)1, "io"); 27590 27591 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 27592 27593 static { 27594 for (_Fields field : EnumSet.allOf(_Fields.class)) { 27595 byName.put(field.getFieldName(), field); 27596 } 27597 } 27598 27599 /** 27600 * Find the _Fields constant that matches fieldId, or null if its not found. 27601 */ 27602 public static _Fields findByThriftId(int fieldId) { 27603 switch(fieldId) { 27604 case 0: // SUCCESS 27605 return SUCCESS; 27606 case 1: // IO 27607 return IO; 27608 default: 27609 return null; 27610 } 27611 } 27612 27613 /** 27614 * Find the _Fields constant that matches fieldId, throwing an exception 27615 * if it is not found. 27616 */ 27617 public static _Fields findByThriftIdOrThrow(int fieldId) { 27618 _Fields fields = findByThriftId(fieldId); 27619 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 27620 return fields; 27621 } 27622 27623 /** 27624 * Find the _Fields constant that matches name, or null if its not found. 27625 */ 27626 public static _Fields findByName(String name) { 27627 return byName.get(name); 27628 } 27629 27630 private final short _thriftId; 27631 private final String _fieldName; 27632 27633 _Fields(short thriftId, String fieldName) { 27634 _thriftId = thriftId; 27635 _fieldName = fieldName; 27636 } 27637 27638 public short getThriftFieldId() { 27639 return _thriftId; 27640 } 27641 27642 public String getFieldName() { 27643 return _fieldName; 27644 } 27645 } 27646 27647 // isset id assignments 27648 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 27649 static { 27650 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 27651 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 27652 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 27653 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 27654 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 27655 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 27656 metaDataMap = Collections.unmodifiableMap(tmpMap); 27657 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_result.class, metaDataMap); 27658 } 27659 27660 public getRowsWithColumnsTs_result() { 27661 } 27662 27663 public getRowsWithColumnsTs_result( 27664 List<TRowResult> success, 27665 IOError io) 27666 { 27667 this(); 27668 this.success = success; 27669 this.io = io; 27670 } 27671 27672 /** 27673 * Performs a deep copy on <i>other</i>. 27674 */ 27675 public getRowsWithColumnsTs_result(getRowsWithColumnsTs_result other) { 27676 if (other.isSetSuccess()) { 27677 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 27678 for (TRowResult other_element : other.success) { 27679 __this__success.add(new TRowResult(other_element)); 27680 } 27681 this.success = __this__success; 27682 } 27683 if (other.isSetIo()) { 27684 this.io = new IOError(other.io); 27685 } 27686 } 27687 27688 public getRowsWithColumnsTs_result deepCopy() { 27689 return new getRowsWithColumnsTs_result(this); 27690 } 27691 27692 @Override 27693 public void clear() { 27694 this.success = null; 27695 this.io = null; 27696 } 27697 27698 public int getSuccessSize() { 27699 return (this.success == null) ? 0 : this.success.size(); 27700 } 27701 27702 public java.util.Iterator<TRowResult> getSuccessIterator() { 27703 return (this.success == null) ? null : this.success.iterator(); 27704 } 27705 27706 public void addToSuccess(TRowResult elem) { 27707 if (this.success == null) { 27708 this.success = new ArrayList<TRowResult>(); 27709 } 27710 this.success.add(elem); 27711 } 27712 27713 public List<TRowResult> getSuccess() { 27714 return this.success; 27715 } 27716 27717 public getRowsWithColumnsTs_result setSuccess(List<TRowResult> success) { 27718 this.success = success; 27719 return this; 27720 } 27721 27722 public void unsetSuccess() { 27723 this.success = null; 27724 } 27725 27726 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 27727 public boolean isSetSuccess() { 27728 return this.success != null; 27729 } 27730 27731 public void setSuccessIsSet(boolean value) { 27732 if (!value) { 27733 this.success = null; 27734 } 27735 } 27736 27737 public IOError getIo() { 27738 return this.io; 27739 } 27740 27741 public getRowsWithColumnsTs_result setIo(IOError io) { 27742 this.io = io; 27743 return this; 27744 } 27745 27746 public void unsetIo() { 27747 this.io = null; 27748 } 27749 27750 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 27751 public boolean isSetIo() { 27752 return this.io != null; 27753 } 27754 27755 public void setIoIsSet(boolean value) { 27756 if (!value) { 27757 this.io = null; 27758 } 27759 } 27760 27761 public void setFieldValue(_Fields field, Object value) { 27762 switch (field) { 27763 case SUCCESS: 27764 if (value == null) { 27765 unsetSuccess(); 27766 } else { 27767 setSuccess((List<TRowResult>)value); 27768 } 27769 break; 27770 27771 case IO: 27772 if (value == null) { 27773 unsetIo(); 27774 } else { 27775 setIo((IOError)value); 27776 } 27777 break; 27778 27779 } 27780 } 27781 27782 public Object getFieldValue(_Fields field) { 27783 switch (field) { 27784 case SUCCESS: 27785 return getSuccess(); 27786 27787 case IO: 27788 return getIo(); 27789 27790 } 27791 throw new IllegalStateException(); 27792 } 27793 27794 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 27795 public boolean isSet(_Fields field) { 27796 if (field == null) { 27797 throw new IllegalArgumentException(); 27798 } 27799 27800 switch (field) { 27801 case SUCCESS: 27802 return isSetSuccess(); 27803 case IO: 27804 return isSetIo(); 27805 } 27806 throw new IllegalStateException(); 27807 } 27808 27809 @Override 27810 public boolean equals(Object that) { 27811 if (that == null) 27812 return false; 27813 if (that instanceof getRowsWithColumnsTs_result) 27814 return this.equals((getRowsWithColumnsTs_result)that); 27815 return false; 27816 } 27817 27818 public boolean equals(getRowsWithColumnsTs_result that) { 27819 if (that == null) 27820 return false; 27821 27822 boolean this_present_success = true && this.isSetSuccess(); 27823 boolean that_present_success = true && that.isSetSuccess(); 27824 if (this_present_success || that_present_success) { 27825 if (!(this_present_success && that_present_success)) 27826 return false; 27827 if (!this.success.equals(that.success)) 27828 return false; 27829 } 27830 27831 boolean this_present_io = true && this.isSetIo(); 27832 boolean that_present_io = true && that.isSetIo(); 27833 if (this_present_io || that_present_io) { 27834 if (!(this_present_io && that_present_io)) 27835 return false; 27836 if (!this.io.equals(that.io)) 27837 return false; 27838 } 27839 27840 return true; 27841 } 27842 27843 @Override 27844 public int hashCode() { 27845 HashCodeBuilder builder = new HashCodeBuilder(); 27846 27847 boolean present_success = true && (isSetSuccess()); 27848 builder.append(present_success); 27849 if (present_success) 27850 builder.append(success); 27851 27852 boolean present_io = true && (isSetIo()); 27853 builder.append(present_io); 27854 if (present_io) 27855 builder.append(io); 27856 27857 return builder.toHashCode(); 27858 } 27859 27860 public int compareTo(getRowsWithColumnsTs_result other) { 27861 if (!getClass().equals(other.getClass())) { 27862 return getClass().getName().compareTo(other.getClass().getName()); 27863 } 27864 27865 int lastComparison = 0; 27866 getRowsWithColumnsTs_result typedOther = (getRowsWithColumnsTs_result)other; 27867 27868 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 27869 if (lastComparison != 0) { 27870 return lastComparison; 27871 } 27872 if (isSetSuccess()) { 27873 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 27874 if (lastComparison != 0) { 27875 return lastComparison; 27876 } 27877 } 27878 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 27879 if (lastComparison != 0) { 27880 return lastComparison; 27881 } 27882 if (isSetIo()) { 27883 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 27884 if (lastComparison != 0) { 27885 return lastComparison; 27886 } 27887 } 27888 return 0; 27889 } 27890 27891 public _Fields fieldForId(int fieldId) { 27892 return _Fields.findByThriftId(fieldId); 27893 } 27894 27895 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 27896 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 27897 } 27898 27899 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 27900 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 27901 } 27902 27903 @Override 27904 public String toString() { 27905 StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_result("); 27906 boolean first = true; 27907 27908 sb.append("success:"); 27909 if (this.success == null) { 27910 sb.append("null"); 27911 } else { 27912 sb.append(this.success); 27913 } 27914 first = false; 27915 if (!first) sb.append(", "); 27916 sb.append("io:"); 27917 if (this.io == null) { 27918 sb.append("null"); 27919 } else { 27920 sb.append(this.io); 27921 } 27922 first = false; 27923 sb.append(")"); 27924 return sb.toString(); 27925 } 27926 27927 public void validate() throws org.apache.thrift.TException { 27928 // check for required fields 27929 } 27930 27931 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 27932 try { 27933 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 27934 } catch (org.apache.thrift.TException te) { 27935 throw new java.io.IOException(te); 27936 } 27937 } 27938 27939 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 27940 try { 27941 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 27942 } catch (org.apache.thrift.TException te) { 27943 throw new java.io.IOException(te); 27944 } 27945 } 27946 27947 private static class getRowsWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory { 27948 public getRowsWithColumnsTs_resultStandardScheme getScheme() { 27949 return new getRowsWithColumnsTs_resultStandardScheme(); 27950 } 27951 } 27952 27953 private static class getRowsWithColumnsTs_resultStandardScheme extends StandardScheme<getRowsWithColumnsTs_result> { 27954 27955 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { 27956 org.apache.thrift.protocol.TField schemeField; 27957 iprot.readStructBegin(); 27958 while (true) 27959 { 27960 schemeField = iprot.readFieldBegin(); 27961 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 27962 break; 27963 } 27964 switch (schemeField.id) { 27965 case 0: // SUCCESS 27966 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 27967 { 27968 org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); 27969 struct.success = new ArrayList<TRowResult>(_list322.size); 27970 for (int _i323 = 0; _i323 < _list322.size; ++_i323) 27971 { 27972 TRowResult _elem324; // required 27973 _elem324 = new TRowResult(); 27974 _elem324.read(iprot); 27975 struct.success.add(_elem324); 27976 } 27977 iprot.readListEnd(); 27978 } 27979 struct.setSuccessIsSet(true); 27980 } else { 27981 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27982 } 27983 break; 27984 case 1: // IO 27985 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 27986 struct.io = new IOError(); 27987 struct.io.read(iprot); 27988 struct.setIoIsSet(true); 27989 } else { 27990 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27991 } 27992 break; 27993 default: 27994 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 27995 } 27996 iprot.readFieldEnd(); 27997 } 27998 iprot.readStructEnd(); 27999 28000 // check for required fields of primitive type, which can't be checked in the validate method 28001 struct.validate(); 28002 } 28003 28004 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { 28005 struct.validate(); 28006 28007 oprot.writeStructBegin(STRUCT_DESC); 28008 if (struct.success != null) { 28009 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 28010 { 28011 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 28012 for (TRowResult _iter325 : struct.success) 28013 { 28014 _iter325.write(oprot); 28015 } 28016 oprot.writeListEnd(); 28017 } 28018 oprot.writeFieldEnd(); 28019 } 28020 if (struct.io != null) { 28021 oprot.writeFieldBegin(IO_FIELD_DESC); 28022 struct.io.write(oprot); 28023 oprot.writeFieldEnd(); 28024 } 28025 oprot.writeFieldStop(); 28026 oprot.writeStructEnd(); 28027 } 28028 28029 } 28030 28031 private static class getRowsWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory { 28032 public getRowsWithColumnsTs_resultTupleScheme getScheme() { 28033 return new getRowsWithColumnsTs_resultTupleScheme(); 28034 } 28035 } 28036 28037 private static class getRowsWithColumnsTs_resultTupleScheme extends TupleScheme<getRowsWithColumnsTs_result> { 28038 28039 @Override 28040 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { 28041 TTupleProtocol oprot = (TTupleProtocol) prot; 28042 BitSet optionals = new BitSet(); 28043 if (struct.isSetSuccess()) { 28044 optionals.set(0); 28045 } 28046 if (struct.isSetIo()) { 28047 optionals.set(1); 28048 } 28049 oprot.writeBitSet(optionals, 2); 28050 if (struct.isSetSuccess()) { 28051 { 28052 oprot.writeI32(struct.success.size()); 28053 for (TRowResult _iter326 : struct.success) 28054 { 28055 _iter326.write(oprot); 28056 } 28057 } 28058 } 28059 if (struct.isSetIo()) { 28060 struct.io.write(oprot); 28061 } 28062 } 28063 28064 @Override 28065 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException { 28066 TTupleProtocol iprot = (TTupleProtocol) prot; 28067 BitSet incoming = iprot.readBitSet(2); 28068 if (incoming.get(0)) { 28069 { 28070 org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 28071 struct.success = new ArrayList<TRowResult>(_list327.size); 28072 for (int _i328 = 0; _i328 < _list327.size; ++_i328) 28073 { 28074 TRowResult _elem329; // required 28075 _elem329 = new TRowResult(); 28076 _elem329.read(iprot); 28077 struct.success.add(_elem329); 28078 } 28079 } 28080 struct.setSuccessIsSet(true); 28081 } 28082 if (incoming.get(1)) { 28083 struct.io = new IOError(); 28084 struct.io.read(iprot); 28085 struct.setIoIsSet(true); 28086 } 28087 } 28088 } 28089 28090 } 28091 28092 public static class mutateRow_args implements org.apache.thrift.TBase<mutateRow_args, mutateRow_args._Fields>, java.io.Serializable, Cloneable { 28093 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args"); 28094 28095 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 28096 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 28097 private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3); 28098 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 28099 28100 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 28101 static { 28102 schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory()); 28103 schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory()); 28104 } 28105 28106 /** 28107 * name of table 28108 */ 28109 public ByteBuffer tableName; // required 28110 /** 28111 * row key 28112 */ 28113 public ByteBuffer row; // required 28114 /** 28115 * list of mutation commands 28116 */ 28117 public List<Mutation> mutations; // required 28118 /** 28119 * Mutation attributes 28120 */ 28121 public Map<ByteBuffer,ByteBuffer> attributes; // required 28122 28123 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 28124 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 28125 /** 28126 * name of table 28127 */ 28128 TABLE_NAME((short)1, "tableName"), 28129 /** 28130 * row key 28131 */ 28132 ROW((short)2, "row"), 28133 /** 28134 * list of mutation commands 28135 */ 28136 MUTATIONS((short)3, "mutations"), 28137 /** 28138 * Mutation attributes 28139 */ 28140 ATTRIBUTES((short)4, "attributes"); 28141 28142 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 28143 28144 static { 28145 for (_Fields field : EnumSet.allOf(_Fields.class)) { 28146 byName.put(field.getFieldName(), field); 28147 } 28148 } 28149 28150 /** 28151 * Find the _Fields constant that matches fieldId, or null if its not found. 28152 */ 28153 public static _Fields findByThriftId(int fieldId) { 28154 switch(fieldId) { 28155 case 1: // TABLE_NAME 28156 return TABLE_NAME; 28157 case 2: // ROW 28158 return ROW; 28159 case 3: // MUTATIONS 28160 return MUTATIONS; 28161 case 4: // ATTRIBUTES 28162 return ATTRIBUTES; 28163 default: 28164 return null; 28165 } 28166 } 28167 28168 /** 28169 * Find the _Fields constant that matches fieldId, throwing an exception 28170 * if it is not found. 28171 */ 28172 public static _Fields findByThriftIdOrThrow(int fieldId) { 28173 _Fields fields = findByThriftId(fieldId); 28174 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 28175 return fields; 28176 } 28177 28178 /** 28179 * Find the _Fields constant that matches name, or null if its not found. 28180 */ 28181 public static _Fields findByName(String name) { 28182 return byName.get(name); 28183 } 28184 28185 private final short _thriftId; 28186 private final String _fieldName; 28187 28188 _Fields(short thriftId, String fieldName) { 28189 _thriftId = thriftId; 28190 _fieldName = fieldName; 28191 } 28192 28193 public short getThriftFieldId() { 28194 return _thriftId; 28195 } 28196 28197 public String getFieldName() { 28198 return _fieldName; 28199 } 28200 } 28201 28202 // isset id assignments 28203 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 28204 static { 28205 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 28206 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 28207 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 28208 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 28209 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 28210 tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT, 28211 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 28212 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class)))); 28213 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 28214 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 28215 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 28216 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 28217 metaDataMap = Collections.unmodifiableMap(tmpMap); 28218 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap); 28219 } 28220 28221 public mutateRow_args() { 28222 } 28223 28224 public mutateRow_args( 28225 ByteBuffer tableName, 28226 ByteBuffer row, 28227 List<Mutation> mutations, 28228 Map<ByteBuffer,ByteBuffer> attributes) 28229 { 28230 this(); 28231 this.tableName = tableName; 28232 this.row = row; 28233 this.mutations = mutations; 28234 this.attributes = attributes; 28235 } 28236 28237 /** 28238 * Performs a deep copy on <i>other</i>. 28239 */ 28240 public mutateRow_args(mutateRow_args other) { 28241 if (other.isSetTableName()) { 28242 this.tableName = other.tableName; 28243 } 28244 if (other.isSetRow()) { 28245 this.row = other.row; 28246 } 28247 if (other.isSetMutations()) { 28248 List<Mutation> __this__mutations = new ArrayList<Mutation>(); 28249 for (Mutation other_element : other.mutations) { 28250 __this__mutations.add(new Mutation(other_element)); 28251 } 28252 this.mutations = __this__mutations; 28253 } 28254 if (other.isSetAttributes()) { 28255 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 28256 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 28257 28258 ByteBuffer other_element_key = other_element.getKey(); 28259 ByteBuffer other_element_value = other_element.getValue(); 28260 28261 ByteBuffer __this__attributes_copy_key = other_element_key; 28262 28263 ByteBuffer __this__attributes_copy_value = other_element_value; 28264 28265 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 28266 } 28267 this.attributes = __this__attributes; 28268 } 28269 } 28270 28271 public mutateRow_args deepCopy() { 28272 return new mutateRow_args(this); 28273 } 28274 28275 @Override 28276 public void clear() { 28277 this.tableName = null; 28278 this.row = null; 28279 this.mutations = null; 28280 this.attributes = null; 28281 } 28282 28283 /** 28284 * name of table 28285 */ 28286 public byte[] getTableName() { 28287 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 28288 return tableName == null ? null : tableName.array(); 28289 } 28290 28291 public ByteBuffer bufferForTableName() { 28292 return tableName; 28293 } 28294 28295 /** 28296 * name of table 28297 */ 28298 public mutateRow_args setTableName(byte[] tableName) { 28299 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 28300 return this; 28301 } 28302 28303 public mutateRow_args setTableName(ByteBuffer tableName) { 28304 this.tableName = tableName; 28305 return this; 28306 } 28307 28308 public void unsetTableName() { 28309 this.tableName = null; 28310 } 28311 28312 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 28313 public boolean isSetTableName() { 28314 return this.tableName != null; 28315 } 28316 28317 public void setTableNameIsSet(boolean value) { 28318 if (!value) { 28319 this.tableName = null; 28320 } 28321 } 28322 28323 /** 28324 * row key 28325 */ 28326 public byte[] getRow() { 28327 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 28328 return row == null ? null : row.array(); 28329 } 28330 28331 public ByteBuffer bufferForRow() { 28332 return row; 28333 } 28334 28335 /** 28336 * row key 28337 */ 28338 public mutateRow_args setRow(byte[] row) { 28339 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 28340 return this; 28341 } 28342 28343 public mutateRow_args setRow(ByteBuffer row) { 28344 this.row = row; 28345 return this; 28346 } 28347 28348 public void unsetRow() { 28349 this.row = null; 28350 } 28351 28352 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 28353 public boolean isSetRow() { 28354 return this.row != null; 28355 } 28356 28357 public void setRowIsSet(boolean value) { 28358 if (!value) { 28359 this.row = null; 28360 } 28361 } 28362 28363 public int getMutationsSize() { 28364 return (this.mutations == null) ? 0 : this.mutations.size(); 28365 } 28366 28367 public java.util.Iterator<Mutation> getMutationsIterator() { 28368 return (this.mutations == null) ? null : this.mutations.iterator(); 28369 } 28370 28371 public void addToMutations(Mutation elem) { 28372 if (this.mutations == null) { 28373 this.mutations = new ArrayList<Mutation>(); 28374 } 28375 this.mutations.add(elem); 28376 } 28377 28378 /** 28379 * list of mutation commands 28380 */ 28381 public List<Mutation> getMutations() { 28382 return this.mutations; 28383 } 28384 28385 /** 28386 * list of mutation commands 28387 */ 28388 public mutateRow_args setMutations(List<Mutation> mutations) { 28389 this.mutations = mutations; 28390 return this; 28391 } 28392 28393 public void unsetMutations() { 28394 this.mutations = null; 28395 } 28396 28397 /** Returns true if field mutations is set (has been assigned a value) and false otherwise */ 28398 public boolean isSetMutations() { 28399 return this.mutations != null; 28400 } 28401 28402 public void setMutationsIsSet(boolean value) { 28403 if (!value) { 28404 this.mutations = null; 28405 } 28406 } 28407 28408 public int getAttributesSize() { 28409 return (this.attributes == null) ? 0 : this.attributes.size(); 28410 } 28411 28412 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 28413 if (this.attributes == null) { 28414 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 28415 } 28416 this.attributes.put(key, val); 28417 } 28418 28419 /** 28420 * Mutation attributes 28421 */ 28422 public Map<ByteBuffer,ByteBuffer> getAttributes() { 28423 return this.attributes; 28424 } 28425 28426 /** 28427 * Mutation attributes 28428 */ 28429 public mutateRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 28430 this.attributes = attributes; 28431 return this; 28432 } 28433 28434 public void unsetAttributes() { 28435 this.attributes = null; 28436 } 28437 28438 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 28439 public boolean isSetAttributes() { 28440 return this.attributes != null; 28441 } 28442 28443 public void setAttributesIsSet(boolean value) { 28444 if (!value) { 28445 this.attributes = null; 28446 } 28447 } 28448 28449 public void setFieldValue(_Fields field, Object value) { 28450 switch (field) { 28451 case TABLE_NAME: 28452 if (value == null) { 28453 unsetTableName(); 28454 } else { 28455 setTableName((ByteBuffer)value); 28456 } 28457 break; 28458 28459 case ROW: 28460 if (value == null) { 28461 unsetRow(); 28462 } else { 28463 setRow((ByteBuffer)value); 28464 } 28465 break; 28466 28467 case MUTATIONS: 28468 if (value == null) { 28469 unsetMutations(); 28470 } else { 28471 setMutations((List<Mutation>)value); 28472 } 28473 break; 28474 28475 case ATTRIBUTES: 28476 if (value == null) { 28477 unsetAttributes(); 28478 } else { 28479 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 28480 } 28481 break; 28482 28483 } 28484 } 28485 28486 public Object getFieldValue(_Fields field) { 28487 switch (field) { 28488 case TABLE_NAME: 28489 return getTableName(); 28490 28491 case ROW: 28492 return getRow(); 28493 28494 case MUTATIONS: 28495 return getMutations(); 28496 28497 case ATTRIBUTES: 28498 return getAttributes(); 28499 28500 } 28501 throw new IllegalStateException(); 28502 } 28503 28504 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 28505 public boolean isSet(_Fields field) { 28506 if (field == null) { 28507 throw new IllegalArgumentException(); 28508 } 28509 28510 switch (field) { 28511 case TABLE_NAME: 28512 return isSetTableName(); 28513 case ROW: 28514 return isSetRow(); 28515 case MUTATIONS: 28516 return isSetMutations(); 28517 case ATTRIBUTES: 28518 return isSetAttributes(); 28519 } 28520 throw new IllegalStateException(); 28521 } 28522 28523 @Override 28524 public boolean equals(Object that) { 28525 if (that == null) 28526 return false; 28527 if (that instanceof mutateRow_args) 28528 return this.equals((mutateRow_args)that); 28529 return false; 28530 } 28531 28532 public boolean equals(mutateRow_args that) { 28533 if (that == null) 28534 return false; 28535 28536 boolean this_present_tableName = true && this.isSetTableName(); 28537 boolean that_present_tableName = true && that.isSetTableName(); 28538 if (this_present_tableName || that_present_tableName) { 28539 if (!(this_present_tableName && that_present_tableName)) 28540 return false; 28541 if (!this.tableName.equals(that.tableName)) 28542 return false; 28543 } 28544 28545 boolean this_present_row = true && this.isSetRow(); 28546 boolean that_present_row = true && that.isSetRow(); 28547 if (this_present_row || that_present_row) { 28548 if (!(this_present_row && that_present_row)) 28549 return false; 28550 if (!this.row.equals(that.row)) 28551 return false; 28552 } 28553 28554 boolean this_present_mutations = true && this.isSetMutations(); 28555 boolean that_present_mutations = true && that.isSetMutations(); 28556 if (this_present_mutations || that_present_mutations) { 28557 if (!(this_present_mutations && that_present_mutations)) 28558 return false; 28559 if (!this.mutations.equals(that.mutations)) 28560 return false; 28561 } 28562 28563 boolean this_present_attributes = true && this.isSetAttributes(); 28564 boolean that_present_attributes = true && that.isSetAttributes(); 28565 if (this_present_attributes || that_present_attributes) { 28566 if (!(this_present_attributes && that_present_attributes)) 28567 return false; 28568 if (!this.attributes.equals(that.attributes)) 28569 return false; 28570 } 28571 28572 return true; 28573 } 28574 28575 @Override 28576 public int hashCode() { 28577 HashCodeBuilder builder = new HashCodeBuilder(); 28578 28579 boolean present_tableName = true && (isSetTableName()); 28580 builder.append(present_tableName); 28581 if (present_tableName) 28582 builder.append(tableName); 28583 28584 boolean present_row = true && (isSetRow()); 28585 builder.append(present_row); 28586 if (present_row) 28587 builder.append(row); 28588 28589 boolean present_mutations = true && (isSetMutations()); 28590 builder.append(present_mutations); 28591 if (present_mutations) 28592 builder.append(mutations); 28593 28594 boolean present_attributes = true && (isSetAttributes()); 28595 builder.append(present_attributes); 28596 if (present_attributes) 28597 builder.append(attributes); 28598 28599 return builder.toHashCode(); 28600 } 28601 28602 public int compareTo(mutateRow_args other) { 28603 if (!getClass().equals(other.getClass())) { 28604 return getClass().getName().compareTo(other.getClass().getName()); 28605 } 28606 28607 int lastComparison = 0; 28608 mutateRow_args typedOther = (mutateRow_args)other; 28609 28610 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 28611 if (lastComparison != 0) { 28612 return lastComparison; 28613 } 28614 if (isSetTableName()) { 28615 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 28616 if (lastComparison != 0) { 28617 return lastComparison; 28618 } 28619 } 28620 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 28621 if (lastComparison != 0) { 28622 return lastComparison; 28623 } 28624 if (isSetRow()) { 28625 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 28626 if (lastComparison != 0) { 28627 return lastComparison; 28628 } 28629 } 28630 lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); 28631 if (lastComparison != 0) { 28632 return lastComparison; 28633 } 28634 if (isSetMutations()) { 28635 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); 28636 if (lastComparison != 0) { 28637 return lastComparison; 28638 } 28639 } 28640 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 28641 if (lastComparison != 0) { 28642 return lastComparison; 28643 } 28644 if (isSetAttributes()) { 28645 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 28646 if (lastComparison != 0) { 28647 return lastComparison; 28648 } 28649 } 28650 return 0; 28651 } 28652 28653 public _Fields fieldForId(int fieldId) { 28654 return _Fields.findByThriftId(fieldId); 28655 } 28656 28657 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 28658 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 28659 } 28660 28661 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 28662 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 28663 } 28664 28665 @Override 28666 public String toString() { 28667 StringBuilder sb = new StringBuilder("mutateRow_args("); 28668 boolean first = true; 28669 28670 sb.append("tableName:"); 28671 if (this.tableName == null) { 28672 sb.append("null"); 28673 } else { 28674 sb.append(this.tableName); 28675 } 28676 first = false; 28677 if (!first) sb.append(", "); 28678 sb.append("row:"); 28679 if (this.row == null) { 28680 sb.append("null"); 28681 } else { 28682 sb.append(this.row); 28683 } 28684 first = false; 28685 if (!first) sb.append(", "); 28686 sb.append("mutations:"); 28687 if (this.mutations == null) { 28688 sb.append("null"); 28689 } else { 28690 sb.append(this.mutations); 28691 } 28692 first = false; 28693 if (!first) sb.append(", "); 28694 sb.append("attributes:"); 28695 if (this.attributes == null) { 28696 sb.append("null"); 28697 } else { 28698 sb.append(this.attributes); 28699 } 28700 first = false; 28701 sb.append(")"); 28702 return sb.toString(); 28703 } 28704 28705 public void validate() throws org.apache.thrift.TException { 28706 // check for required fields 28707 } 28708 28709 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 28710 try { 28711 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 28712 } catch (org.apache.thrift.TException te) { 28713 throw new java.io.IOException(te); 28714 } 28715 } 28716 28717 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 28718 try { 28719 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 28720 } catch (org.apache.thrift.TException te) { 28721 throw new java.io.IOException(te); 28722 } 28723 } 28724 28725 private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory { 28726 public mutateRow_argsStandardScheme getScheme() { 28727 return new mutateRow_argsStandardScheme(); 28728 } 28729 } 28730 28731 private static class mutateRow_argsStandardScheme extends StandardScheme<mutateRow_args> { 28732 28733 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException { 28734 org.apache.thrift.protocol.TField schemeField; 28735 iprot.readStructBegin(); 28736 while (true) 28737 { 28738 schemeField = iprot.readFieldBegin(); 28739 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 28740 break; 28741 } 28742 switch (schemeField.id) { 28743 case 1: // TABLE_NAME 28744 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 28745 struct.tableName = iprot.readBinary(); 28746 struct.setTableNameIsSet(true); 28747 } else { 28748 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 28749 } 28750 break; 28751 case 2: // ROW 28752 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 28753 struct.row = iprot.readBinary(); 28754 struct.setRowIsSet(true); 28755 } else { 28756 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 28757 } 28758 break; 28759 case 3: // MUTATIONS 28760 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 28761 { 28762 org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); 28763 struct.mutations = new ArrayList<Mutation>(_list330.size); 28764 for (int _i331 = 0; _i331 < _list330.size; ++_i331) 28765 { 28766 Mutation _elem332; // required 28767 _elem332 = new Mutation(); 28768 _elem332.read(iprot); 28769 struct.mutations.add(_elem332); 28770 } 28771 iprot.readListEnd(); 28772 } 28773 struct.setMutationsIsSet(true); 28774 } else { 28775 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 28776 } 28777 break; 28778 case 4: // ATTRIBUTES 28779 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 28780 { 28781 org.apache.thrift.protocol.TMap _map333 = iprot.readMapBegin(); 28782 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map333.size); 28783 for (int _i334 = 0; _i334 < _map333.size; ++_i334) 28784 { 28785 ByteBuffer _key335; // required 28786 ByteBuffer _val336; // required 28787 _key335 = iprot.readBinary(); 28788 _val336 = iprot.readBinary(); 28789 struct.attributes.put(_key335, _val336); 28790 } 28791 iprot.readMapEnd(); 28792 } 28793 struct.setAttributesIsSet(true); 28794 } else { 28795 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 28796 } 28797 break; 28798 default: 28799 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 28800 } 28801 iprot.readFieldEnd(); 28802 } 28803 iprot.readStructEnd(); 28804 28805 // check for required fields of primitive type, which can't be checked in the validate method 28806 struct.validate(); 28807 } 28808 28809 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException { 28810 struct.validate(); 28811 28812 oprot.writeStructBegin(STRUCT_DESC); 28813 if (struct.tableName != null) { 28814 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 28815 oprot.writeBinary(struct.tableName); 28816 oprot.writeFieldEnd(); 28817 } 28818 if (struct.row != null) { 28819 oprot.writeFieldBegin(ROW_FIELD_DESC); 28820 oprot.writeBinary(struct.row); 28821 oprot.writeFieldEnd(); 28822 } 28823 if (struct.mutations != null) { 28824 oprot.writeFieldBegin(MUTATIONS_FIELD_DESC); 28825 { 28826 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size())); 28827 for (Mutation _iter337 : struct.mutations) 28828 { 28829 _iter337.write(oprot); 28830 } 28831 oprot.writeListEnd(); 28832 } 28833 oprot.writeFieldEnd(); 28834 } 28835 if (struct.attributes != null) { 28836 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 28837 { 28838 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 28839 for (Map.Entry<ByteBuffer, ByteBuffer> _iter338 : struct.attributes.entrySet()) 28840 { 28841 oprot.writeBinary(_iter338.getKey()); 28842 oprot.writeBinary(_iter338.getValue()); 28843 } 28844 oprot.writeMapEnd(); 28845 } 28846 oprot.writeFieldEnd(); 28847 } 28848 oprot.writeFieldStop(); 28849 oprot.writeStructEnd(); 28850 } 28851 28852 } 28853 28854 private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory { 28855 public mutateRow_argsTupleScheme getScheme() { 28856 return new mutateRow_argsTupleScheme(); 28857 } 28858 } 28859 28860 private static class mutateRow_argsTupleScheme extends TupleScheme<mutateRow_args> { 28861 28862 @Override 28863 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { 28864 TTupleProtocol oprot = (TTupleProtocol) prot; 28865 BitSet optionals = new BitSet(); 28866 if (struct.isSetTableName()) { 28867 optionals.set(0); 28868 } 28869 if (struct.isSetRow()) { 28870 optionals.set(1); 28871 } 28872 if (struct.isSetMutations()) { 28873 optionals.set(2); 28874 } 28875 if (struct.isSetAttributes()) { 28876 optionals.set(3); 28877 } 28878 oprot.writeBitSet(optionals, 4); 28879 if (struct.isSetTableName()) { 28880 oprot.writeBinary(struct.tableName); 28881 } 28882 if (struct.isSetRow()) { 28883 oprot.writeBinary(struct.row); 28884 } 28885 if (struct.isSetMutations()) { 28886 { 28887 oprot.writeI32(struct.mutations.size()); 28888 for (Mutation _iter339 : struct.mutations) 28889 { 28890 _iter339.write(oprot); 28891 } 28892 } 28893 } 28894 if (struct.isSetAttributes()) { 28895 { 28896 oprot.writeI32(struct.attributes.size()); 28897 for (Map.Entry<ByteBuffer, ByteBuffer> _iter340 : struct.attributes.entrySet()) 28898 { 28899 oprot.writeBinary(_iter340.getKey()); 28900 oprot.writeBinary(_iter340.getValue()); 28901 } 28902 } 28903 } 28904 } 28905 28906 @Override 28907 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException { 28908 TTupleProtocol iprot = (TTupleProtocol) prot; 28909 BitSet incoming = iprot.readBitSet(4); 28910 if (incoming.get(0)) { 28911 struct.tableName = iprot.readBinary(); 28912 struct.setTableNameIsSet(true); 28913 } 28914 if (incoming.get(1)) { 28915 struct.row = iprot.readBinary(); 28916 struct.setRowIsSet(true); 28917 } 28918 if (incoming.get(2)) { 28919 { 28920 org.apache.thrift.protocol.TList _list341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 28921 struct.mutations = new ArrayList<Mutation>(_list341.size); 28922 for (int _i342 = 0; _i342 < _list341.size; ++_i342) 28923 { 28924 Mutation _elem343; // required 28925 _elem343 = new Mutation(); 28926 _elem343.read(iprot); 28927 struct.mutations.add(_elem343); 28928 } 28929 } 28930 struct.setMutationsIsSet(true); 28931 } 28932 if (incoming.get(3)) { 28933 { 28934 org.apache.thrift.protocol.TMap _map344 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 28935 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map344.size); 28936 for (int _i345 = 0; _i345 < _map344.size; ++_i345) 28937 { 28938 ByteBuffer _key346; // required 28939 ByteBuffer _val347; // required 28940 _key346 = iprot.readBinary(); 28941 _val347 = iprot.readBinary(); 28942 struct.attributes.put(_key346, _val347); 28943 } 28944 } 28945 struct.setAttributesIsSet(true); 28946 } 28947 } 28948 } 28949 28950 } 28951 28952 public static class mutateRow_result implements org.apache.thrift.TBase<mutateRow_result, mutateRow_result._Fields>, java.io.Serializable, Cloneable { 28953 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result"); 28954 28955 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 28956 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 28957 28958 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 28959 static { 28960 schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory()); 28961 schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory()); 28962 } 28963 28964 public IOError io; // required 28965 public IllegalArgument ia; // required 28966 28967 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 28968 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 28969 IO((short)1, "io"), 28970 IA((short)2, "ia"); 28971 28972 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 28973 28974 static { 28975 for (_Fields field : EnumSet.allOf(_Fields.class)) { 28976 byName.put(field.getFieldName(), field); 28977 } 28978 } 28979 28980 /** 28981 * Find the _Fields constant that matches fieldId, or null if its not found. 28982 */ 28983 public static _Fields findByThriftId(int fieldId) { 28984 switch(fieldId) { 28985 case 1: // IO 28986 return IO; 28987 case 2: // IA 28988 return IA; 28989 default: 28990 return null; 28991 } 28992 } 28993 28994 /** 28995 * Find the _Fields constant that matches fieldId, throwing an exception 28996 * if it is not found. 28997 */ 28998 public static _Fields findByThriftIdOrThrow(int fieldId) { 28999 _Fields fields = findByThriftId(fieldId); 29000 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 29001 return fields; 29002 } 29003 29004 /** 29005 * Find the _Fields constant that matches name, or null if its not found. 29006 */ 29007 public static _Fields findByName(String name) { 29008 return byName.get(name); 29009 } 29010 29011 private final short _thriftId; 29012 private final String _fieldName; 29013 29014 _Fields(short thriftId, String fieldName) { 29015 _thriftId = thriftId; 29016 _fieldName = fieldName; 29017 } 29018 29019 public short getThriftFieldId() { 29020 return _thriftId; 29021 } 29022 29023 public String getFieldName() { 29024 return _fieldName; 29025 } 29026 } 29027 29028 // isset id assignments 29029 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 29030 static { 29031 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 29032 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 29033 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 29034 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 29035 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 29036 metaDataMap = Collections.unmodifiableMap(tmpMap); 29037 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap); 29038 } 29039 29040 public mutateRow_result() { 29041 } 29042 29043 public mutateRow_result( 29044 IOError io, 29045 IllegalArgument ia) 29046 { 29047 this(); 29048 this.io = io; 29049 this.ia = ia; 29050 } 29051 29052 /** 29053 * Performs a deep copy on <i>other</i>. 29054 */ 29055 public mutateRow_result(mutateRow_result other) { 29056 if (other.isSetIo()) { 29057 this.io = new IOError(other.io); 29058 } 29059 if (other.isSetIa()) { 29060 this.ia = new IllegalArgument(other.ia); 29061 } 29062 } 29063 29064 public mutateRow_result deepCopy() { 29065 return new mutateRow_result(this); 29066 } 29067 29068 @Override 29069 public void clear() { 29070 this.io = null; 29071 this.ia = null; 29072 } 29073 29074 public IOError getIo() { 29075 return this.io; 29076 } 29077 29078 public mutateRow_result setIo(IOError io) { 29079 this.io = io; 29080 return this; 29081 } 29082 29083 public void unsetIo() { 29084 this.io = null; 29085 } 29086 29087 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 29088 public boolean isSetIo() { 29089 return this.io != null; 29090 } 29091 29092 public void setIoIsSet(boolean value) { 29093 if (!value) { 29094 this.io = null; 29095 } 29096 } 29097 29098 public IllegalArgument getIa() { 29099 return this.ia; 29100 } 29101 29102 public mutateRow_result setIa(IllegalArgument ia) { 29103 this.ia = ia; 29104 return this; 29105 } 29106 29107 public void unsetIa() { 29108 this.ia = null; 29109 } 29110 29111 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 29112 public boolean isSetIa() { 29113 return this.ia != null; 29114 } 29115 29116 public void setIaIsSet(boolean value) { 29117 if (!value) { 29118 this.ia = null; 29119 } 29120 } 29121 29122 public void setFieldValue(_Fields field, Object value) { 29123 switch (field) { 29124 case IO: 29125 if (value == null) { 29126 unsetIo(); 29127 } else { 29128 setIo((IOError)value); 29129 } 29130 break; 29131 29132 case IA: 29133 if (value == null) { 29134 unsetIa(); 29135 } else { 29136 setIa((IllegalArgument)value); 29137 } 29138 break; 29139 29140 } 29141 } 29142 29143 public Object getFieldValue(_Fields field) { 29144 switch (field) { 29145 case IO: 29146 return getIo(); 29147 29148 case IA: 29149 return getIa(); 29150 29151 } 29152 throw new IllegalStateException(); 29153 } 29154 29155 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 29156 public boolean isSet(_Fields field) { 29157 if (field == null) { 29158 throw new IllegalArgumentException(); 29159 } 29160 29161 switch (field) { 29162 case IO: 29163 return isSetIo(); 29164 case IA: 29165 return isSetIa(); 29166 } 29167 throw new IllegalStateException(); 29168 } 29169 29170 @Override 29171 public boolean equals(Object that) { 29172 if (that == null) 29173 return false; 29174 if (that instanceof mutateRow_result) 29175 return this.equals((mutateRow_result)that); 29176 return false; 29177 } 29178 29179 public boolean equals(mutateRow_result that) { 29180 if (that == null) 29181 return false; 29182 29183 boolean this_present_io = true && this.isSetIo(); 29184 boolean that_present_io = true && that.isSetIo(); 29185 if (this_present_io || that_present_io) { 29186 if (!(this_present_io && that_present_io)) 29187 return false; 29188 if (!this.io.equals(that.io)) 29189 return false; 29190 } 29191 29192 boolean this_present_ia = true && this.isSetIa(); 29193 boolean that_present_ia = true && that.isSetIa(); 29194 if (this_present_ia || that_present_ia) { 29195 if (!(this_present_ia && that_present_ia)) 29196 return false; 29197 if (!this.ia.equals(that.ia)) 29198 return false; 29199 } 29200 29201 return true; 29202 } 29203 29204 @Override 29205 public int hashCode() { 29206 HashCodeBuilder builder = new HashCodeBuilder(); 29207 29208 boolean present_io = true && (isSetIo()); 29209 builder.append(present_io); 29210 if (present_io) 29211 builder.append(io); 29212 29213 boolean present_ia = true && (isSetIa()); 29214 builder.append(present_ia); 29215 if (present_ia) 29216 builder.append(ia); 29217 29218 return builder.toHashCode(); 29219 } 29220 29221 public int compareTo(mutateRow_result other) { 29222 if (!getClass().equals(other.getClass())) { 29223 return getClass().getName().compareTo(other.getClass().getName()); 29224 } 29225 29226 int lastComparison = 0; 29227 mutateRow_result typedOther = (mutateRow_result)other; 29228 29229 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 29230 if (lastComparison != 0) { 29231 return lastComparison; 29232 } 29233 if (isSetIo()) { 29234 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 29235 if (lastComparison != 0) { 29236 return lastComparison; 29237 } 29238 } 29239 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 29240 if (lastComparison != 0) { 29241 return lastComparison; 29242 } 29243 if (isSetIa()) { 29244 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 29245 if (lastComparison != 0) { 29246 return lastComparison; 29247 } 29248 } 29249 return 0; 29250 } 29251 29252 public _Fields fieldForId(int fieldId) { 29253 return _Fields.findByThriftId(fieldId); 29254 } 29255 29256 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 29257 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 29258 } 29259 29260 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 29261 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 29262 } 29263 29264 @Override 29265 public String toString() { 29266 StringBuilder sb = new StringBuilder("mutateRow_result("); 29267 boolean first = true; 29268 29269 sb.append("io:"); 29270 if (this.io == null) { 29271 sb.append("null"); 29272 } else { 29273 sb.append(this.io); 29274 } 29275 first = false; 29276 if (!first) sb.append(", "); 29277 sb.append("ia:"); 29278 if (this.ia == null) { 29279 sb.append("null"); 29280 } else { 29281 sb.append(this.ia); 29282 } 29283 first = false; 29284 sb.append(")"); 29285 return sb.toString(); 29286 } 29287 29288 public void validate() throws org.apache.thrift.TException { 29289 // check for required fields 29290 } 29291 29292 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 29293 try { 29294 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 29295 } catch (org.apache.thrift.TException te) { 29296 throw new java.io.IOException(te); 29297 } 29298 } 29299 29300 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 29301 try { 29302 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 29303 } catch (org.apache.thrift.TException te) { 29304 throw new java.io.IOException(te); 29305 } 29306 } 29307 29308 private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory { 29309 public mutateRow_resultStandardScheme getScheme() { 29310 return new mutateRow_resultStandardScheme(); 29311 } 29312 } 29313 29314 private static class mutateRow_resultStandardScheme extends StandardScheme<mutateRow_result> { 29315 29316 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException { 29317 org.apache.thrift.protocol.TField schemeField; 29318 iprot.readStructBegin(); 29319 while (true) 29320 { 29321 schemeField = iprot.readFieldBegin(); 29322 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 29323 break; 29324 } 29325 switch (schemeField.id) { 29326 case 1: // IO 29327 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 29328 struct.io = new IOError(); 29329 struct.io.read(iprot); 29330 struct.setIoIsSet(true); 29331 } else { 29332 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 29333 } 29334 break; 29335 case 2: // IA 29336 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 29337 struct.ia = new IllegalArgument(); 29338 struct.ia.read(iprot); 29339 struct.setIaIsSet(true); 29340 } else { 29341 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 29342 } 29343 break; 29344 default: 29345 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 29346 } 29347 iprot.readFieldEnd(); 29348 } 29349 iprot.readStructEnd(); 29350 29351 // check for required fields of primitive type, which can't be checked in the validate method 29352 struct.validate(); 29353 } 29354 29355 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_result struct) throws org.apache.thrift.TException { 29356 struct.validate(); 29357 29358 oprot.writeStructBegin(STRUCT_DESC); 29359 if (struct.io != null) { 29360 oprot.writeFieldBegin(IO_FIELD_DESC); 29361 struct.io.write(oprot); 29362 oprot.writeFieldEnd(); 29363 } 29364 if (struct.ia != null) { 29365 oprot.writeFieldBegin(IA_FIELD_DESC); 29366 struct.ia.write(oprot); 29367 oprot.writeFieldEnd(); 29368 } 29369 oprot.writeFieldStop(); 29370 oprot.writeStructEnd(); 29371 } 29372 29373 } 29374 29375 private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory { 29376 public mutateRow_resultTupleScheme getScheme() { 29377 return new mutateRow_resultTupleScheme(); 29378 } 29379 } 29380 29381 private static class mutateRow_resultTupleScheme extends TupleScheme<mutateRow_result> { 29382 29383 @Override 29384 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { 29385 TTupleProtocol oprot = (TTupleProtocol) prot; 29386 BitSet optionals = new BitSet(); 29387 if (struct.isSetIo()) { 29388 optionals.set(0); 29389 } 29390 if (struct.isSetIa()) { 29391 optionals.set(1); 29392 } 29393 oprot.writeBitSet(optionals, 2); 29394 if (struct.isSetIo()) { 29395 struct.io.write(oprot); 29396 } 29397 if (struct.isSetIa()) { 29398 struct.ia.write(oprot); 29399 } 29400 } 29401 29402 @Override 29403 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException { 29404 TTupleProtocol iprot = (TTupleProtocol) prot; 29405 BitSet incoming = iprot.readBitSet(2); 29406 if (incoming.get(0)) { 29407 struct.io = new IOError(); 29408 struct.io.read(iprot); 29409 struct.setIoIsSet(true); 29410 } 29411 if (incoming.get(1)) { 29412 struct.ia = new IllegalArgument(); 29413 struct.ia.read(iprot); 29414 struct.setIaIsSet(true); 29415 } 29416 } 29417 } 29418 29419 } 29420 29421 public static class mutateRowTs_args implements org.apache.thrift.TBase<mutateRowTs_args, mutateRowTs_args._Fields>, java.io.Serializable, Cloneable { 29422 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_args"); 29423 29424 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 29425 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 29426 private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3); 29427 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 29428 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 29429 29430 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 29431 static { 29432 schemes.put(StandardScheme.class, new mutateRowTs_argsStandardSchemeFactory()); 29433 schemes.put(TupleScheme.class, new mutateRowTs_argsTupleSchemeFactory()); 29434 } 29435 29436 /** 29437 * name of table 29438 */ 29439 public ByteBuffer tableName; // required 29440 /** 29441 * row key 29442 */ 29443 public ByteBuffer row; // required 29444 /** 29445 * list of mutation commands 29446 */ 29447 public List<Mutation> mutations; // required 29448 /** 29449 * timestamp 29450 */ 29451 public long timestamp; // required 29452 /** 29453 * Mutation attributes 29454 */ 29455 public Map<ByteBuffer,ByteBuffer> attributes; // required 29456 29457 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 29458 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 29459 /** 29460 * name of table 29461 */ 29462 TABLE_NAME((short)1, "tableName"), 29463 /** 29464 * row key 29465 */ 29466 ROW((short)2, "row"), 29467 /** 29468 * list of mutation commands 29469 */ 29470 MUTATIONS((short)3, "mutations"), 29471 /** 29472 * timestamp 29473 */ 29474 TIMESTAMP((short)4, "timestamp"), 29475 /** 29476 * Mutation attributes 29477 */ 29478 ATTRIBUTES((short)5, "attributes"); 29479 29480 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 29481 29482 static { 29483 for (_Fields field : EnumSet.allOf(_Fields.class)) { 29484 byName.put(field.getFieldName(), field); 29485 } 29486 } 29487 29488 /** 29489 * Find the _Fields constant that matches fieldId, or null if its not found. 29490 */ 29491 public static _Fields findByThriftId(int fieldId) { 29492 switch(fieldId) { 29493 case 1: // TABLE_NAME 29494 return TABLE_NAME; 29495 case 2: // ROW 29496 return ROW; 29497 case 3: // MUTATIONS 29498 return MUTATIONS; 29499 case 4: // TIMESTAMP 29500 return TIMESTAMP; 29501 case 5: // ATTRIBUTES 29502 return ATTRIBUTES; 29503 default: 29504 return null; 29505 } 29506 } 29507 29508 /** 29509 * Find the _Fields constant that matches fieldId, throwing an exception 29510 * if it is not found. 29511 */ 29512 public static _Fields findByThriftIdOrThrow(int fieldId) { 29513 _Fields fields = findByThriftId(fieldId); 29514 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 29515 return fields; 29516 } 29517 29518 /** 29519 * Find the _Fields constant that matches name, or null if its not found. 29520 */ 29521 public static _Fields findByName(String name) { 29522 return byName.get(name); 29523 } 29524 29525 private final short _thriftId; 29526 private final String _fieldName; 29527 29528 _Fields(short thriftId, String fieldName) { 29529 _thriftId = thriftId; 29530 _fieldName = fieldName; 29531 } 29532 29533 public short getThriftFieldId() { 29534 return _thriftId; 29535 } 29536 29537 public String getFieldName() { 29538 return _fieldName; 29539 } 29540 } 29541 29542 // isset id assignments 29543 private static final int __TIMESTAMP_ISSET_ID = 0; 29544 private BitSet __isset_bit_vector = new BitSet(1); 29545 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 29546 static { 29547 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 29548 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 29549 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 29550 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 29551 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 29552 tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT, 29553 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 29554 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class)))); 29555 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 29556 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 29557 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 29558 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 29559 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 29560 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 29561 metaDataMap = Collections.unmodifiableMap(tmpMap); 29562 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_args.class, metaDataMap); 29563 } 29564 29565 public mutateRowTs_args() { 29566 } 29567 29568 public mutateRowTs_args( 29569 ByteBuffer tableName, 29570 ByteBuffer row, 29571 List<Mutation> mutations, 29572 long timestamp, 29573 Map<ByteBuffer,ByteBuffer> attributes) 29574 { 29575 this(); 29576 this.tableName = tableName; 29577 this.row = row; 29578 this.mutations = mutations; 29579 this.timestamp = timestamp; 29580 setTimestampIsSet(true); 29581 this.attributes = attributes; 29582 } 29583 29584 /** 29585 * Performs a deep copy on <i>other</i>. 29586 */ 29587 public mutateRowTs_args(mutateRowTs_args other) { 29588 __isset_bit_vector.clear(); 29589 __isset_bit_vector.or(other.__isset_bit_vector); 29590 if (other.isSetTableName()) { 29591 this.tableName = other.tableName; 29592 } 29593 if (other.isSetRow()) { 29594 this.row = other.row; 29595 } 29596 if (other.isSetMutations()) { 29597 List<Mutation> __this__mutations = new ArrayList<Mutation>(); 29598 for (Mutation other_element : other.mutations) { 29599 __this__mutations.add(new Mutation(other_element)); 29600 } 29601 this.mutations = __this__mutations; 29602 } 29603 this.timestamp = other.timestamp; 29604 if (other.isSetAttributes()) { 29605 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 29606 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 29607 29608 ByteBuffer other_element_key = other_element.getKey(); 29609 ByteBuffer other_element_value = other_element.getValue(); 29610 29611 ByteBuffer __this__attributes_copy_key = other_element_key; 29612 29613 ByteBuffer __this__attributes_copy_value = other_element_value; 29614 29615 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 29616 } 29617 this.attributes = __this__attributes; 29618 } 29619 } 29620 29621 public mutateRowTs_args deepCopy() { 29622 return new mutateRowTs_args(this); 29623 } 29624 29625 @Override 29626 public void clear() { 29627 this.tableName = null; 29628 this.row = null; 29629 this.mutations = null; 29630 setTimestampIsSet(false); 29631 this.timestamp = 0; 29632 this.attributes = null; 29633 } 29634 29635 /** 29636 * name of table 29637 */ 29638 public byte[] getTableName() { 29639 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 29640 return tableName == null ? null : tableName.array(); 29641 } 29642 29643 public ByteBuffer bufferForTableName() { 29644 return tableName; 29645 } 29646 29647 /** 29648 * name of table 29649 */ 29650 public mutateRowTs_args setTableName(byte[] tableName) { 29651 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 29652 return this; 29653 } 29654 29655 public mutateRowTs_args setTableName(ByteBuffer tableName) { 29656 this.tableName = tableName; 29657 return this; 29658 } 29659 29660 public void unsetTableName() { 29661 this.tableName = null; 29662 } 29663 29664 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 29665 public boolean isSetTableName() { 29666 return this.tableName != null; 29667 } 29668 29669 public void setTableNameIsSet(boolean value) { 29670 if (!value) { 29671 this.tableName = null; 29672 } 29673 } 29674 29675 /** 29676 * row key 29677 */ 29678 public byte[] getRow() { 29679 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 29680 return row == null ? null : row.array(); 29681 } 29682 29683 public ByteBuffer bufferForRow() { 29684 return row; 29685 } 29686 29687 /** 29688 * row key 29689 */ 29690 public mutateRowTs_args setRow(byte[] row) { 29691 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 29692 return this; 29693 } 29694 29695 public mutateRowTs_args setRow(ByteBuffer row) { 29696 this.row = row; 29697 return this; 29698 } 29699 29700 public void unsetRow() { 29701 this.row = null; 29702 } 29703 29704 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 29705 public boolean isSetRow() { 29706 return this.row != null; 29707 } 29708 29709 public void setRowIsSet(boolean value) { 29710 if (!value) { 29711 this.row = null; 29712 } 29713 } 29714 29715 public int getMutationsSize() { 29716 return (this.mutations == null) ? 0 : this.mutations.size(); 29717 } 29718 29719 public java.util.Iterator<Mutation> getMutationsIterator() { 29720 return (this.mutations == null) ? null : this.mutations.iterator(); 29721 } 29722 29723 public void addToMutations(Mutation elem) { 29724 if (this.mutations == null) { 29725 this.mutations = new ArrayList<Mutation>(); 29726 } 29727 this.mutations.add(elem); 29728 } 29729 29730 /** 29731 * list of mutation commands 29732 */ 29733 public List<Mutation> getMutations() { 29734 return this.mutations; 29735 } 29736 29737 /** 29738 * list of mutation commands 29739 */ 29740 public mutateRowTs_args setMutations(List<Mutation> mutations) { 29741 this.mutations = mutations; 29742 return this; 29743 } 29744 29745 public void unsetMutations() { 29746 this.mutations = null; 29747 } 29748 29749 /** Returns true if field mutations is set (has been assigned a value) and false otherwise */ 29750 public boolean isSetMutations() { 29751 return this.mutations != null; 29752 } 29753 29754 public void setMutationsIsSet(boolean value) { 29755 if (!value) { 29756 this.mutations = null; 29757 } 29758 } 29759 29760 /** 29761 * timestamp 29762 */ 29763 public long getTimestamp() { 29764 return this.timestamp; 29765 } 29766 29767 /** 29768 * timestamp 29769 */ 29770 public mutateRowTs_args setTimestamp(long timestamp) { 29771 this.timestamp = timestamp; 29772 setTimestampIsSet(true); 29773 return this; 29774 } 29775 29776 public void unsetTimestamp() { 29777 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 29778 } 29779 29780 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 29781 public boolean isSetTimestamp() { 29782 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 29783 } 29784 29785 public void setTimestampIsSet(boolean value) { 29786 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 29787 } 29788 29789 public int getAttributesSize() { 29790 return (this.attributes == null) ? 0 : this.attributes.size(); 29791 } 29792 29793 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 29794 if (this.attributes == null) { 29795 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 29796 } 29797 this.attributes.put(key, val); 29798 } 29799 29800 /** 29801 * Mutation attributes 29802 */ 29803 public Map<ByteBuffer,ByteBuffer> getAttributes() { 29804 return this.attributes; 29805 } 29806 29807 /** 29808 * Mutation attributes 29809 */ 29810 public mutateRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 29811 this.attributes = attributes; 29812 return this; 29813 } 29814 29815 public void unsetAttributes() { 29816 this.attributes = null; 29817 } 29818 29819 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 29820 public boolean isSetAttributes() { 29821 return this.attributes != null; 29822 } 29823 29824 public void setAttributesIsSet(boolean value) { 29825 if (!value) { 29826 this.attributes = null; 29827 } 29828 } 29829 29830 public void setFieldValue(_Fields field, Object value) { 29831 switch (field) { 29832 case TABLE_NAME: 29833 if (value == null) { 29834 unsetTableName(); 29835 } else { 29836 setTableName((ByteBuffer)value); 29837 } 29838 break; 29839 29840 case ROW: 29841 if (value == null) { 29842 unsetRow(); 29843 } else { 29844 setRow((ByteBuffer)value); 29845 } 29846 break; 29847 29848 case MUTATIONS: 29849 if (value == null) { 29850 unsetMutations(); 29851 } else { 29852 setMutations((List<Mutation>)value); 29853 } 29854 break; 29855 29856 case TIMESTAMP: 29857 if (value == null) { 29858 unsetTimestamp(); 29859 } else { 29860 setTimestamp((Long)value); 29861 } 29862 break; 29863 29864 case ATTRIBUTES: 29865 if (value == null) { 29866 unsetAttributes(); 29867 } else { 29868 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 29869 } 29870 break; 29871 29872 } 29873 } 29874 29875 public Object getFieldValue(_Fields field) { 29876 switch (field) { 29877 case TABLE_NAME: 29878 return getTableName(); 29879 29880 case ROW: 29881 return getRow(); 29882 29883 case MUTATIONS: 29884 return getMutations(); 29885 29886 case TIMESTAMP: 29887 return Long.valueOf(getTimestamp()); 29888 29889 case ATTRIBUTES: 29890 return getAttributes(); 29891 29892 } 29893 throw new IllegalStateException(); 29894 } 29895 29896 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 29897 public boolean isSet(_Fields field) { 29898 if (field == null) { 29899 throw new IllegalArgumentException(); 29900 } 29901 29902 switch (field) { 29903 case TABLE_NAME: 29904 return isSetTableName(); 29905 case ROW: 29906 return isSetRow(); 29907 case MUTATIONS: 29908 return isSetMutations(); 29909 case TIMESTAMP: 29910 return isSetTimestamp(); 29911 case ATTRIBUTES: 29912 return isSetAttributes(); 29913 } 29914 throw new IllegalStateException(); 29915 } 29916 29917 @Override 29918 public boolean equals(Object that) { 29919 if (that == null) 29920 return false; 29921 if (that instanceof mutateRowTs_args) 29922 return this.equals((mutateRowTs_args)that); 29923 return false; 29924 } 29925 29926 public boolean equals(mutateRowTs_args that) { 29927 if (that == null) 29928 return false; 29929 29930 boolean this_present_tableName = true && this.isSetTableName(); 29931 boolean that_present_tableName = true && that.isSetTableName(); 29932 if (this_present_tableName || that_present_tableName) { 29933 if (!(this_present_tableName && that_present_tableName)) 29934 return false; 29935 if (!this.tableName.equals(that.tableName)) 29936 return false; 29937 } 29938 29939 boolean this_present_row = true && this.isSetRow(); 29940 boolean that_present_row = true && that.isSetRow(); 29941 if (this_present_row || that_present_row) { 29942 if (!(this_present_row && that_present_row)) 29943 return false; 29944 if (!this.row.equals(that.row)) 29945 return false; 29946 } 29947 29948 boolean this_present_mutations = true && this.isSetMutations(); 29949 boolean that_present_mutations = true && that.isSetMutations(); 29950 if (this_present_mutations || that_present_mutations) { 29951 if (!(this_present_mutations && that_present_mutations)) 29952 return false; 29953 if (!this.mutations.equals(that.mutations)) 29954 return false; 29955 } 29956 29957 boolean this_present_timestamp = true; 29958 boolean that_present_timestamp = true; 29959 if (this_present_timestamp || that_present_timestamp) { 29960 if (!(this_present_timestamp && that_present_timestamp)) 29961 return false; 29962 if (this.timestamp != that.timestamp) 29963 return false; 29964 } 29965 29966 boolean this_present_attributes = true && this.isSetAttributes(); 29967 boolean that_present_attributes = true && that.isSetAttributes(); 29968 if (this_present_attributes || that_present_attributes) { 29969 if (!(this_present_attributes && that_present_attributes)) 29970 return false; 29971 if (!this.attributes.equals(that.attributes)) 29972 return false; 29973 } 29974 29975 return true; 29976 } 29977 29978 @Override 29979 public int hashCode() { 29980 HashCodeBuilder builder = new HashCodeBuilder(); 29981 29982 boolean present_tableName = true && (isSetTableName()); 29983 builder.append(present_tableName); 29984 if (present_tableName) 29985 builder.append(tableName); 29986 29987 boolean present_row = true && (isSetRow()); 29988 builder.append(present_row); 29989 if (present_row) 29990 builder.append(row); 29991 29992 boolean present_mutations = true && (isSetMutations()); 29993 builder.append(present_mutations); 29994 if (present_mutations) 29995 builder.append(mutations); 29996 29997 boolean present_timestamp = true; 29998 builder.append(present_timestamp); 29999 if (present_timestamp) 30000 builder.append(timestamp); 30001 30002 boolean present_attributes = true && (isSetAttributes()); 30003 builder.append(present_attributes); 30004 if (present_attributes) 30005 builder.append(attributes); 30006 30007 return builder.toHashCode(); 30008 } 30009 30010 public int compareTo(mutateRowTs_args other) { 30011 if (!getClass().equals(other.getClass())) { 30012 return getClass().getName().compareTo(other.getClass().getName()); 30013 } 30014 30015 int lastComparison = 0; 30016 mutateRowTs_args typedOther = (mutateRowTs_args)other; 30017 30018 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 30019 if (lastComparison != 0) { 30020 return lastComparison; 30021 } 30022 if (isSetTableName()) { 30023 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 30024 if (lastComparison != 0) { 30025 return lastComparison; 30026 } 30027 } 30028 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 30029 if (lastComparison != 0) { 30030 return lastComparison; 30031 } 30032 if (isSetRow()) { 30033 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 30034 if (lastComparison != 0) { 30035 return lastComparison; 30036 } 30037 } 30038 lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations()); 30039 if (lastComparison != 0) { 30040 return lastComparison; 30041 } 30042 if (isSetMutations()) { 30043 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations); 30044 if (lastComparison != 0) { 30045 return lastComparison; 30046 } 30047 } 30048 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 30049 if (lastComparison != 0) { 30050 return lastComparison; 30051 } 30052 if (isSetTimestamp()) { 30053 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 30054 if (lastComparison != 0) { 30055 return lastComparison; 30056 } 30057 } 30058 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 30059 if (lastComparison != 0) { 30060 return lastComparison; 30061 } 30062 if (isSetAttributes()) { 30063 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 30064 if (lastComparison != 0) { 30065 return lastComparison; 30066 } 30067 } 30068 return 0; 30069 } 30070 30071 public _Fields fieldForId(int fieldId) { 30072 return _Fields.findByThriftId(fieldId); 30073 } 30074 30075 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 30076 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 30077 } 30078 30079 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 30080 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 30081 } 30082 30083 @Override 30084 public String toString() { 30085 StringBuilder sb = new StringBuilder("mutateRowTs_args("); 30086 boolean first = true; 30087 30088 sb.append("tableName:"); 30089 if (this.tableName == null) { 30090 sb.append("null"); 30091 } else { 30092 sb.append(this.tableName); 30093 } 30094 first = false; 30095 if (!first) sb.append(", "); 30096 sb.append("row:"); 30097 if (this.row == null) { 30098 sb.append("null"); 30099 } else { 30100 sb.append(this.row); 30101 } 30102 first = false; 30103 if (!first) sb.append(", "); 30104 sb.append("mutations:"); 30105 if (this.mutations == null) { 30106 sb.append("null"); 30107 } else { 30108 sb.append(this.mutations); 30109 } 30110 first = false; 30111 if (!first) sb.append(", "); 30112 sb.append("timestamp:"); 30113 sb.append(this.timestamp); 30114 first = false; 30115 if (!first) sb.append(", "); 30116 sb.append("attributes:"); 30117 if (this.attributes == null) { 30118 sb.append("null"); 30119 } else { 30120 sb.append(this.attributes); 30121 } 30122 first = false; 30123 sb.append(")"); 30124 return sb.toString(); 30125 } 30126 30127 public void validate() throws org.apache.thrift.TException { 30128 // check for required fields 30129 } 30130 30131 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 30132 try { 30133 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 30134 } catch (org.apache.thrift.TException te) { 30135 throw new java.io.IOException(te); 30136 } 30137 } 30138 30139 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 30140 try { 30141 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 30142 } catch (org.apache.thrift.TException te) { 30143 throw new java.io.IOException(te); 30144 } 30145 } 30146 30147 private static class mutateRowTs_argsStandardSchemeFactory implements SchemeFactory { 30148 public mutateRowTs_argsStandardScheme getScheme() { 30149 return new mutateRowTs_argsStandardScheme(); 30150 } 30151 } 30152 30153 private static class mutateRowTs_argsStandardScheme extends StandardScheme<mutateRowTs_args> { 30154 30155 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_args struct) throws org.apache.thrift.TException { 30156 org.apache.thrift.protocol.TField schemeField; 30157 iprot.readStructBegin(); 30158 while (true) 30159 { 30160 schemeField = iprot.readFieldBegin(); 30161 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 30162 break; 30163 } 30164 switch (schemeField.id) { 30165 case 1: // TABLE_NAME 30166 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 30167 struct.tableName = iprot.readBinary(); 30168 struct.setTableNameIsSet(true); 30169 } else { 30170 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30171 } 30172 break; 30173 case 2: // ROW 30174 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 30175 struct.row = iprot.readBinary(); 30176 struct.setRowIsSet(true); 30177 } else { 30178 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30179 } 30180 break; 30181 case 3: // MUTATIONS 30182 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 30183 { 30184 org.apache.thrift.protocol.TList _list348 = iprot.readListBegin(); 30185 struct.mutations = new ArrayList<Mutation>(_list348.size); 30186 for (int _i349 = 0; _i349 < _list348.size; ++_i349) 30187 { 30188 Mutation _elem350; // required 30189 _elem350 = new Mutation(); 30190 _elem350.read(iprot); 30191 struct.mutations.add(_elem350); 30192 } 30193 iprot.readListEnd(); 30194 } 30195 struct.setMutationsIsSet(true); 30196 } else { 30197 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30198 } 30199 break; 30200 case 4: // TIMESTAMP 30201 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 30202 struct.timestamp = iprot.readI64(); 30203 struct.setTimestampIsSet(true); 30204 } else { 30205 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30206 } 30207 break; 30208 case 5: // ATTRIBUTES 30209 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 30210 { 30211 org.apache.thrift.protocol.TMap _map351 = iprot.readMapBegin(); 30212 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map351.size); 30213 for (int _i352 = 0; _i352 < _map351.size; ++_i352) 30214 { 30215 ByteBuffer _key353; // required 30216 ByteBuffer _val354; // required 30217 _key353 = iprot.readBinary(); 30218 _val354 = iprot.readBinary(); 30219 struct.attributes.put(_key353, _val354); 30220 } 30221 iprot.readMapEnd(); 30222 } 30223 struct.setAttributesIsSet(true); 30224 } else { 30225 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30226 } 30227 break; 30228 default: 30229 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30230 } 30231 iprot.readFieldEnd(); 30232 } 30233 iprot.readStructEnd(); 30234 30235 // check for required fields of primitive type, which can't be checked in the validate method 30236 struct.validate(); 30237 } 30238 30239 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_args struct) throws org.apache.thrift.TException { 30240 struct.validate(); 30241 30242 oprot.writeStructBegin(STRUCT_DESC); 30243 if (struct.tableName != null) { 30244 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 30245 oprot.writeBinary(struct.tableName); 30246 oprot.writeFieldEnd(); 30247 } 30248 if (struct.row != null) { 30249 oprot.writeFieldBegin(ROW_FIELD_DESC); 30250 oprot.writeBinary(struct.row); 30251 oprot.writeFieldEnd(); 30252 } 30253 if (struct.mutations != null) { 30254 oprot.writeFieldBegin(MUTATIONS_FIELD_DESC); 30255 { 30256 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size())); 30257 for (Mutation _iter355 : struct.mutations) 30258 { 30259 _iter355.write(oprot); 30260 } 30261 oprot.writeListEnd(); 30262 } 30263 oprot.writeFieldEnd(); 30264 } 30265 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 30266 oprot.writeI64(struct.timestamp); 30267 oprot.writeFieldEnd(); 30268 if (struct.attributes != null) { 30269 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 30270 { 30271 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 30272 for (Map.Entry<ByteBuffer, ByteBuffer> _iter356 : struct.attributes.entrySet()) 30273 { 30274 oprot.writeBinary(_iter356.getKey()); 30275 oprot.writeBinary(_iter356.getValue()); 30276 } 30277 oprot.writeMapEnd(); 30278 } 30279 oprot.writeFieldEnd(); 30280 } 30281 oprot.writeFieldStop(); 30282 oprot.writeStructEnd(); 30283 } 30284 30285 } 30286 30287 private static class mutateRowTs_argsTupleSchemeFactory implements SchemeFactory { 30288 public mutateRowTs_argsTupleScheme getScheme() { 30289 return new mutateRowTs_argsTupleScheme(); 30290 } 30291 } 30292 30293 private static class mutateRowTs_argsTupleScheme extends TupleScheme<mutateRowTs_args> { 30294 30295 @Override 30296 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException { 30297 TTupleProtocol oprot = (TTupleProtocol) prot; 30298 BitSet optionals = new BitSet(); 30299 if (struct.isSetTableName()) { 30300 optionals.set(0); 30301 } 30302 if (struct.isSetRow()) { 30303 optionals.set(1); 30304 } 30305 if (struct.isSetMutations()) { 30306 optionals.set(2); 30307 } 30308 if (struct.isSetTimestamp()) { 30309 optionals.set(3); 30310 } 30311 if (struct.isSetAttributes()) { 30312 optionals.set(4); 30313 } 30314 oprot.writeBitSet(optionals, 5); 30315 if (struct.isSetTableName()) { 30316 oprot.writeBinary(struct.tableName); 30317 } 30318 if (struct.isSetRow()) { 30319 oprot.writeBinary(struct.row); 30320 } 30321 if (struct.isSetMutations()) { 30322 { 30323 oprot.writeI32(struct.mutations.size()); 30324 for (Mutation _iter357 : struct.mutations) 30325 { 30326 _iter357.write(oprot); 30327 } 30328 } 30329 } 30330 if (struct.isSetTimestamp()) { 30331 oprot.writeI64(struct.timestamp); 30332 } 30333 if (struct.isSetAttributes()) { 30334 { 30335 oprot.writeI32(struct.attributes.size()); 30336 for (Map.Entry<ByteBuffer, ByteBuffer> _iter358 : struct.attributes.entrySet()) 30337 { 30338 oprot.writeBinary(_iter358.getKey()); 30339 oprot.writeBinary(_iter358.getValue()); 30340 } 30341 } 30342 } 30343 } 30344 30345 @Override 30346 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException { 30347 TTupleProtocol iprot = (TTupleProtocol) prot; 30348 BitSet incoming = iprot.readBitSet(5); 30349 if (incoming.get(0)) { 30350 struct.tableName = iprot.readBinary(); 30351 struct.setTableNameIsSet(true); 30352 } 30353 if (incoming.get(1)) { 30354 struct.row = iprot.readBinary(); 30355 struct.setRowIsSet(true); 30356 } 30357 if (incoming.get(2)) { 30358 { 30359 org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 30360 struct.mutations = new ArrayList<Mutation>(_list359.size); 30361 for (int _i360 = 0; _i360 < _list359.size; ++_i360) 30362 { 30363 Mutation _elem361; // required 30364 _elem361 = new Mutation(); 30365 _elem361.read(iprot); 30366 struct.mutations.add(_elem361); 30367 } 30368 } 30369 struct.setMutationsIsSet(true); 30370 } 30371 if (incoming.get(3)) { 30372 struct.timestamp = iprot.readI64(); 30373 struct.setTimestampIsSet(true); 30374 } 30375 if (incoming.get(4)) { 30376 { 30377 org.apache.thrift.protocol.TMap _map362 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 30378 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map362.size); 30379 for (int _i363 = 0; _i363 < _map362.size; ++_i363) 30380 { 30381 ByteBuffer _key364; // required 30382 ByteBuffer _val365; // required 30383 _key364 = iprot.readBinary(); 30384 _val365 = iprot.readBinary(); 30385 struct.attributes.put(_key364, _val365); 30386 } 30387 } 30388 struct.setAttributesIsSet(true); 30389 } 30390 } 30391 } 30392 30393 } 30394 30395 public static class mutateRowTs_result implements org.apache.thrift.TBase<mutateRowTs_result, mutateRowTs_result._Fields>, java.io.Serializable, Cloneable { 30396 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_result"); 30397 30398 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 30399 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 30400 30401 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 30402 static { 30403 schemes.put(StandardScheme.class, new mutateRowTs_resultStandardSchemeFactory()); 30404 schemes.put(TupleScheme.class, new mutateRowTs_resultTupleSchemeFactory()); 30405 } 30406 30407 public IOError io; // required 30408 public IllegalArgument ia; // required 30409 30410 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 30411 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 30412 IO((short)1, "io"), 30413 IA((short)2, "ia"); 30414 30415 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 30416 30417 static { 30418 for (_Fields field : EnumSet.allOf(_Fields.class)) { 30419 byName.put(field.getFieldName(), field); 30420 } 30421 } 30422 30423 /** 30424 * Find the _Fields constant that matches fieldId, or null if its not found. 30425 */ 30426 public static _Fields findByThriftId(int fieldId) { 30427 switch(fieldId) { 30428 case 1: // IO 30429 return IO; 30430 case 2: // IA 30431 return IA; 30432 default: 30433 return null; 30434 } 30435 } 30436 30437 /** 30438 * Find the _Fields constant that matches fieldId, throwing an exception 30439 * if it is not found. 30440 */ 30441 public static _Fields findByThriftIdOrThrow(int fieldId) { 30442 _Fields fields = findByThriftId(fieldId); 30443 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 30444 return fields; 30445 } 30446 30447 /** 30448 * Find the _Fields constant that matches name, or null if its not found. 30449 */ 30450 public static _Fields findByName(String name) { 30451 return byName.get(name); 30452 } 30453 30454 private final short _thriftId; 30455 private final String _fieldName; 30456 30457 _Fields(short thriftId, String fieldName) { 30458 _thriftId = thriftId; 30459 _fieldName = fieldName; 30460 } 30461 30462 public short getThriftFieldId() { 30463 return _thriftId; 30464 } 30465 30466 public String getFieldName() { 30467 return _fieldName; 30468 } 30469 } 30470 30471 // isset id assignments 30472 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 30473 static { 30474 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 30475 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 30476 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 30477 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 30478 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 30479 metaDataMap = Collections.unmodifiableMap(tmpMap); 30480 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_result.class, metaDataMap); 30481 } 30482 30483 public mutateRowTs_result() { 30484 } 30485 30486 public mutateRowTs_result( 30487 IOError io, 30488 IllegalArgument ia) 30489 { 30490 this(); 30491 this.io = io; 30492 this.ia = ia; 30493 } 30494 30495 /** 30496 * Performs a deep copy on <i>other</i>. 30497 */ 30498 public mutateRowTs_result(mutateRowTs_result other) { 30499 if (other.isSetIo()) { 30500 this.io = new IOError(other.io); 30501 } 30502 if (other.isSetIa()) { 30503 this.ia = new IllegalArgument(other.ia); 30504 } 30505 } 30506 30507 public mutateRowTs_result deepCopy() { 30508 return new mutateRowTs_result(this); 30509 } 30510 30511 @Override 30512 public void clear() { 30513 this.io = null; 30514 this.ia = null; 30515 } 30516 30517 public IOError getIo() { 30518 return this.io; 30519 } 30520 30521 public mutateRowTs_result setIo(IOError io) { 30522 this.io = io; 30523 return this; 30524 } 30525 30526 public void unsetIo() { 30527 this.io = null; 30528 } 30529 30530 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 30531 public boolean isSetIo() { 30532 return this.io != null; 30533 } 30534 30535 public void setIoIsSet(boolean value) { 30536 if (!value) { 30537 this.io = null; 30538 } 30539 } 30540 30541 public IllegalArgument getIa() { 30542 return this.ia; 30543 } 30544 30545 public mutateRowTs_result setIa(IllegalArgument ia) { 30546 this.ia = ia; 30547 return this; 30548 } 30549 30550 public void unsetIa() { 30551 this.ia = null; 30552 } 30553 30554 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 30555 public boolean isSetIa() { 30556 return this.ia != null; 30557 } 30558 30559 public void setIaIsSet(boolean value) { 30560 if (!value) { 30561 this.ia = null; 30562 } 30563 } 30564 30565 public void setFieldValue(_Fields field, Object value) { 30566 switch (field) { 30567 case IO: 30568 if (value == null) { 30569 unsetIo(); 30570 } else { 30571 setIo((IOError)value); 30572 } 30573 break; 30574 30575 case IA: 30576 if (value == null) { 30577 unsetIa(); 30578 } else { 30579 setIa((IllegalArgument)value); 30580 } 30581 break; 30582 30583 } 30584 } 30585 30586 public Object getFieldValue(_Fields field) { 30587 switch (field) { 30588 case IO: 30589 return getIo(); 30590 30591 case IA: 30592 return getIa(); 30593 30594 } 30595 throw new IllegalStateException(); 30596 } 30597 30598 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 30599 public boolean isSet(_Fields field) { 30600 if (field == null) { 30601 throw new IllegalArgumentException(); 30602 } 30603 30604 switch (field) { 30605 case IO: 30606 return isSetIo(); 30607 case IA: 30608 return isSetIa(); 30609 } 30610 throw new IllegalStateException(); 30611 } 30612 30613 @Override 30614 public boolean equals(Object that) { 30615 if (that == null) 30616 return false; 30617 if (that instanceof mutateRowTs_result) 30618 return this.equals((mutateRowTs_result)that); 30619 return false; 30620 } 30621 30622 public boolean equals(mutateRowTs_result that) { 30623 if (that == null) 30624 return false; 30625 30626 boolean this_present_io = true && this.isSetIo(); 30627 boolean that_present_io = true && that.isSetIo(); 30628 if (this_present_io || that_present_io) { 30629 if (!(this_present_io && that_present_io)) 30630 return false; 30631 if (!this.io.equals(that.io)) 30632 return false; 30633 } 30634 30635 boolean this_present_ia = true && this.isSetIa(); 30636 boolean that_present_ia = true && that.isSetIa(); 30637 if (this_present_ia || that_present_ia) { 30638 if (!(this_present_ia && that_present_ia)) 30639 return false; 30640 if (!this.ia.equals(that.ia)) 30641 return false; 30642 } 30643 30644 return true; 30645 } 30646 30647 @Override 30648 public int hashCode() { 30649 HashCodeBuilder builder = new HashCodeBuilder(); 30650 30651 boolean present_io = true && (isSetIo()); 30652 builder.append(present_io); 30653 if (present_io) 30654 builder.append(io); 30655 30656 boolean present_ia = true && (isSetIa()); 30657 builder.append(present_ia); 30658 if (present_ia) 30659 builder.append(ia); 30660 30661 return builder.toHashCode(); 30662 } 30663 30664 public int compareTo(mutateRowTs_result other) { 30665 if (!getClass().equals(other.getClass())) { 30666 return getClass().getName().compareTo(other.getClass().getName()); 30667 } 30668 30669 int lastComparison = 0; 30670 mutateRowTs_result typedOther = (mutateRowTs_result)other; 30671 30672 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 30673 if (lastComparison != 0) { 30674 return lastComparison; 30675 } 30676 if (isSetIo()) { 30677 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 30678 if (lastComparison != 0) { 30679 return lastComparison; 30680 } 30681 } 30682 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 30683 if (lastComparison != 0) { 30684 return lastComparison; 30685 } 30686 if (isSetIa()) { 30687 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 30688 if (lastComparison != 0) { 30689 return lastComparison; 30690 } 30691 } 30692 return 0; 30693 } 30694 30695 public _Fields fieldForId(int fieldId) { 30696 return _Fields.findByThriftId(fieldId); 30697 } 30698 30699 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 30700 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 30701 } 30702 30703 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 30704 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 30705 } 30706 30707 @Override 30708 public String toString() { 30709 StringBuilder sb = new StringBuilder("mutateRowTs_result("); 30710 boolean first = true; 30711 30712 sb.append("io:"); 30713 if (this.io == null) { 30714 sb.append("null"); 30715 } else { 30716 sb.append(this.io); 30717 } 30718 first = false; 30719 if (!first) sb.append(", "); 30720 sb.append("ia:"); 30721 if (this.ia == null) { 30722 sb.append("null"); 30723 } else { 30724 sb.append(this.ia); 30725 } 30726 first = false; 30727 sb.append(")"); 30728 return sb.toString(); 30729 } 30730 30731 public void validate() throws org.apache.thrift.TException { 30732 // check for required fields 30733 } 30734 30735 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 30736 try { 30737 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 30738 } catch (org.apache.thrift.TException te) { 30739 throw new java.io.IOException(te); 30740 } 30741 } 30742 30743 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 30744 try { 30745 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 30746 } catch (org.apache.thrift.TException te) { 30747 throw new java.io.IOException(te); 30748 } 30749 } 30750 30751 private static class mutateRowTs_resultStandardSchemeFactory implements SchemeFactory { 30752 public mutateRowTs_resultStandardScheme getScheme() { 30753 return new mutateRowTs_resultStandardScheme(); 30754 } 30755 } 30756 30757 private static class mutateRowTs_resultStandardScheme extends StandardScheme<mutateRowTs_result> { 30758 30759 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_result struct) throws org.apache.thrift.TException { 30760 org.apache.thrift.protocol.TField schemeField; 30761 iprot.readStructBegin(); 30762 while (true) 30763 { 30764 schemeField = iprot.readFieldBegin(); 30765 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 30766 break; 30767 } 30768 switch (schemeField.id) { 30769 case 1: // IO 30770 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 30771 struct.io = new IOError(); 30772 struct.io.read(iprot); 30773 struct.setIoIsSet(true); 30774 } else { 30775 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30776 } 30777 break; 30778 case 2: // IA 30779 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 30780 struct.ia = new IllegalArgument(); 30781 struct.ia.read(iprot); 30782 struct.setIaIsSet(true); 30783 } else { 30784 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30785 } 30786 break; 30787 default: 30788 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 30789 } 30790 iprot.readFieldEnd(); 30791 } 30792 iprot.readStructEnd(); 30793 30794 // check for required fields of primitive type, which can't be checked in the validate method 30795 struct.validate(); 30796 } 30797 30798 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_result struct) throws org.apache.thrift.TException { 30799 struct.validate(); 30800 30801 oprot.writeStructBegin(STRUCT_DESC); 30802 if (struct.io != null) { 30803 oprot.writeFieldBegin(IO_FIELD_DESC); 30804 struct.io.write(oprot); 30805 oprot.writeFieldEnd(); 30806 } 30807 if (struct.ia != null) { 30808 oprot.writeFieldBegin(IA_FIELD_DESC); 30809 struct.ia.write(oprot); 30810 oprot.writeFieldEnd(); 30811 } 30812 oprot.writeFieldStop(); 30813 oprot.writeStructEnd(); 30814 } 30815 30816 } 30817 30818 private static class mutateRowTs_resultTupleSchemeFactory implements SchemeFactory { 30819 public mutateRowTs_resultTupleScheme getScheme() { 30820 return new mutateRowTs_resultTupleScheme(); 30821 } 30822 } 30823 30824 private static class mutateRowTs_resultTupleScheme extends TupleScheme<mutateRowTs_result> { 30825 30826 @Override 30827 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException { 30828 TTupleProtocol oprot = (TTupleProtocol) prot; 30829 BitSet optionals = new BitSet(); 30830 if (struct.isSetIo()) { 30831 optionals.set(0); 30832 } 30833 if (struct.isSetIa()) { 30834 optionals.set(1); 30835 } 30836 oprot.writeBitSet(optionals, 2); 30837 if (struct.isSetIo()) { 30838 struct.io.write(oprot); 30839 } 30840 if (struct.isSetIa()) { 30841 struct.ia.write(oprot); 30842 } 30843 } 30844 30845 @Override 30846 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException { 30847 TTupleProtocol iprot = (TTupleProtocol) prot; 30848 BitSet incoming = iprot.readBitSet(2); 30849 if (incoming.get(0)) { 30850 struct.io = new IOError(); 30851 struct.io.read(iprot); 30852 struct.setIoIsSet(true); 30853 } 30854 if (incoming.get(1)) { 30855 struct.ia = new IllegalArgument(); 30856 struct.ia.read(iprot); 30857 struct.setIaIsSet(true); 30858 } 30859 } 30860 } 30861 30862 } 30863 30864 public static class mutateRows_args implements org.apache.thrift.TBase<mutateRows_args, mutateRows_args._Fields>, java.io.Serializable, Cloneable { 30865 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_args"); 30866 30867 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 30868 private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2); 30869 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); 30870 30871 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 30872 static { 30873 schemes.put(StandardScheme.class, new mutateRows_argsStandardSchemeFactory()); 30874 schemes.put(TupleScheme.class, new mutateRows_argsTupleSchemeFactory()); 30875 } 30876 30877 /** 30878 * name of table 30879 */ 30880 public ByteBuffer tableName; // required 30881 /** 30882 * list of row batches 30883 */ 30884 public List<BatchMutation> rowBatches; // required 30885 /** 30886 * Mutation attributes 30887 */ 30888 public Map<ByteBuffer,ByteBuffer> attributes; // required 30889 30890 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 30891 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 30892 /** 30893 * name of table 30894 */ 30895 TABLE_NAME((short)1, "tableName"), 30896 /** 30897 * list of row batches 30898 */ 30899 ROW_BATCHES((short)2, "rowBatches"), 30900 /** 30901 * Mutation attributes 30902 */ 30903 ATTRIBUTES((short)3, "attributes"); 30904 30905 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 30906 30907 static { 30908 for (_Fields field : EnumSet.allOf(_Fields.class)) { 30909 byName.put(field.getFieldName(), field); 30910 } 30911 } 30912 30913 /** 30914 * Find the _Fields constant that matches fieldId, or null if its not found. 30915 */ 30916 public static _Fields findByThriftId(int fieldId) { 30917 switch(fieldId) { 30918 case 1: // TABLE_NAME 30919 return TABLE_NAME; 30920 case 2: // ROW_BATCHES 30921 return ROW_BATCHES; 30922 case 3: // ATTRIBUTES 30923 return ATTRIBUTES; 30924 default: 30925 return null; 30926 } 30927 } 30928 30929 /** 30930 * Find the _Fields constant that matches fieldId, throwing an exception 30931 * if it is not found. 30932 */ 30933 public static _Fields findByThriftIdOrThrow(int fieldId) { 30934 _Fields fields = findByThriftId(fieldId); 30935 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 30936 return fields; 30937 } 30938 30939 /** 30940 * Find the _Fields constant that matches name, or null if its not found. 30941 */ 30942 public static _Fields findByName(String name) { 30943 return byName.get(name); 30944 } 30945 30946 private final short _thriftId; 30947 private final String _fieldName; 30948 30949 _Fields(short thriftId, String fieldName) { 30950 _thriftId = thriftId; 30951 _fieldName = fieldName; 30952 } 30953 30954 public short getThriftFieldId() { 30955 return _thriftId; 30956 } 30957 30958 public String getFieldName() { 30959 return _fieldName; 30960 } 30961 } 30962 30963 // isset id assignments 30964 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 30965 static { 30966 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 30967 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 30968 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 30969 tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, 30970 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 30971 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class)))); 30972 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 30973 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 30974 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 30975 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 30976 metaDataMap = Collections.unmodifiableMap(tmpMap); 30977 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_args.class, metaDataMap); 30978 } 30979 30980 public mutateRows_args() { 30981 } 30982 30983 public mutateRows_args( 30984 ByteBuffer tableName, 30985 List<BatchMutation> rowBatches, 30986 Map<ByteBuffer,ByteBuffer> attributes) 30987 { 30988 this(); 30989 this.tableName = tableName; 30990 this.rowBatches = rowBatches; 30991 this.attributes = attributes; 30992 } 30993 30994 /** 30995 * Performs a deep copy on <i>other</i>. 30996 */ 30997 public mutateRows_args(mutateRows_args other) { 30998 if (other.isSetTableName()) { 30999 this.tableName = other.tableName; 31000 } 31001 if (other.isSetRowBatches()) { 31002 List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>(); 31003 for (BatchMutation other_element : other.rowBatches) { 31004 __this__rowBatches.add(new BatchMutation(other_element)); 31005 } 31006 this.rowBatches = __this__rowBatches; 31007 } 31008 if (other.isSetAttributes()) { 31009 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 31010 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 31011 31012 ByteBuffer other_element_key = other_element.getKey(); 31013 ByteBuffer other_element_value = other_element.getValue(); 31014 31015 ByteBuffer __this__attributes_copy_key = other_element_key; 31016 31017 ByteBuffer __this__attributes_copy_value = other_element_value; 31018 31019 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 31020 } 31021 this.attributes = __this__attributes; 31022 } 31023 } 31024 31025 public mutateRows_args deepCopy() { 31026 return new mutateRows_args(this); 31027 } 31028 31029 @Override 31030 public void clear() { 31031 this.tableName = null; 31032 this.rowBatches = null; 31033 this.attributes = null; 31034 } 31035 31036 /** 31037 * name of table 31038 */ 31039 public byte[] getTableName() { 31040 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 31041 return tableName == null ? null : tableName.array(); 31042 } 31043 31044 public ByteBuffer bufferForTableName() { 31045 return tableName; 31046 } 31047 31048 /** 31049 * name of table 31050 */ 31051 public mutateRows_args setTableName(byte[] tableName) { 31052 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 31053 return this; 31054 } 31055 31056 public mutateRows_args setTableName(ByteBuffer tableName) { 31057 this.tableName = tableName; 31058 return this; 31059 } 31060 31061 public void unsetTableName() { 31062 this.tableName = null; 31063 } 31064 31065 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 31066 public boolean isSetTableName() { 31067 return this.tableName != null; 31068 } 31069 31070 public void setTableNameIsSet(boolean value) { 31071 if (!value) { 31072 this.tableName = null; 31073 } 31074 } 31075 31076 public int getRowBatchesSize() { 31077 return (this.rowBatches == null) ? 0 : this.rowBatches.size(); 31078 } 31079 31080 public java.util.Iterator<BatchMutation> getRowBatchesIterator() { 31081 return (this.rowBatches == null) ? null : this.rowBatches.iterator(); 31082 } 31083 31084 public void addToRowBatches(BatchMutation elem) { 31085 if (this.rowBatches == null) { 31086 this.rowBatches = new ArrayList<BatchMutation>(); 31087 } 31088 this.rowBatches.add(elem); 31089 } 31090 31091 /** 31092 * list of row batches 31093 */ 31094 public List<BatchMutation> getRowBatches() { 31095 return this.rowBatches; 31096 } 31097 31098 /** 31099 * list of row batches 31100 */ 31101 public mutateRows_args setRowBatches(List<BatchMutation> rowBatches) { 31102 this.rowBatches = rowBatches; 31103 return this; 31104 } 31105 31106 public void unsetRowBatches() { 31107 this.rowBatches = null; 31108 } 31109 31110 /** Returns true if field rowBatches is set (has been assigned a value) and false otherwise */ 31111 public boolean isSetRowBatches() { 31112 return this.rowBatches != null; 31113 } 31114 31115 public void setRowBatchesIsSet(boolean value) { 31116 if (!value) { 31117 this.rowBatches = null; 31118 } 31119 } 31120 31121 public int getAttributesSize() { 31122 return (this.attributes == null) ? 0 : this.attributes.size(); 31123 } 31124 31125 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 31126 if (this.attributes == null) { 31127 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 31128 } 31129 this.attributes.put(key, val); 31130 } 31131 31132 /** 31133 * Mutation attributes 31134 */ 31135 public Map<ByteBuffer,ByteBuffer> getAttributes() { 31136 return this.attributes; 31137 } 31138 31139 /** 31140 * Mutation attributes 31141 */ 31142 public mutateRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 31143 this.attributes = attributes; 31144 return this; 31145 } 31146 31147 public void unsetAttributes() { 31148 this.attributes = null; 31149 } 31150 31151 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 31152 public boolean isSetAttributes() { 31153 return this.attributes != null; 31154 } 31155 31156 public void setAttributesIsSet(boolean value) { 31157 if (!value) { 31158 this.attributes = null; 31159 } 31160 } 31161 31162 public void setFieldValue(_Fields field, Object value) { 31163 switch (field) { 31164 case TABLE_NAME: 31165 if (value == null) { 31166 unsetTableName(); 31167 } else { 31168 setTableName((ByteBuffer)value); 31169 } 31170 break; 31171 31172 case ROW_BATCHES: 31173 if (value == null) { 31174 unsetRowBatches(); 31175 } else { 31176 setRowBatches((List<BatchMutation>)value); 31177 } 31178 break; 31179 31180 case ATTRIBUTES: 31181 if (value == null) { 31182 unsetAttributes(); 31183 } else { 31184 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 31185 } 31186 break; 31187 31188 } 31189 } 31190 31191 public Object getFieldValue(_Fields field) { 31192 switch (field) { 31193 case TABLE_NAME: 31194 return getTableName(); 31195 31196 case ROW_BATCHES: 31197 return getRowBatches(); 31198 31199 case ATTRIBUTES: 31200 return getAttributes(); 31201 31202 } 31203 throw new IllegalStateException(); 31204 } 31205 31206 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 31207 public boolean isSet(_Fields field) { 31208 if (field == null) { 31209 throw new IllegalArgumentException(); 31210 } 31211 31212 switch (field) { 31213 case TABLE_NAME: 31214 return isSetTableName(); 31215 case ROW_BATCHES: 31216 return isSetRowBatches(); 31217 case ATTRIBUTES: 31218 return isSetAttributes(); 31219 } 31220 throw new IllegalStateException(); 31221 } 31222 31223 @Override 31224 public boolean equals(Object that) { 31225 if (that == null) 31226 return false; 31227 if (that instanceof mutateRows_args) 31228 return this.equals((mutateRows_args)that); 31229 return false; 31230 } 31231 31232 public boolean equals(mutateRows_args that) { 31233 if (that == null) 31234 return false; 31235 31236 boolean this_present_tableName = true && this.isSetTableName(); 31237 boolean that_present_tableName = true && that.isSetTableName(); 31238 if (this_present_tableName || that_present_tableName) { 31239 if (!(this_present_tableName && that_present_tableName)) 31240 return false; 31241 if (!this.tableName.equals(that.tableName)) 31242 return false; 31243 } 31244 31245 boolean this_present_rowBatches = true && this.isSetRowBatches(); 31246 boolean that_present_rowBatches = true && that.isSetRowBatches(); 31247 if (this_present_rowBatches || that_present_rowBatches) { 31248 if (!(this_present_rowBatches && that_present_rowBatches)) 31249 return false; 31250 if (!this.rowBatches.equals(that.rowBatches)) 31251 return false; 31252 } 31253 31254 boolean this_present_attributes = true && this.isSetAttributes(); 31255 boolean that_present_attributes = true && that.isSetAttributes(); 31256 if (this_present_attributes || that_present_attributes) { 31257 if (!(this_present_attributes && that_present_attributes)) 31258 return false; 31259 if (!this.attributes.equals(that.attributes)) 31260 return false; 31261 } 31262 31263 return true; 31264 } 31265 31266 @Override 31267 public int hashCode() { 31268 HashCodeBuilder builder = new HashCodeBuilder(); 31269 31270 boolean present_tableName = true && (isSetTableName()); 31271 builder.append(present_tableName); 31272 if (present_tableName) 31273 builder.append(tableName); 31274 31275 boolean present_rowBatches = true && (isSetRowBatches()); 31276 builder.append(present_rowBatches); 31277 if (present_rowBatches) 31278 builder.append(rowBatches); 31279 31280 boolean present_attributes = true && (isSetAttributes()); 31281 builder.append(present_attributes); 31282 if (present_attributes) 31283 builder.append(attributes); 31284 31285 return builder.toHashCode(); 31286 } 31287 31288 public int compareTo(mutateRows_args other) { 31289 if (!getClass().equals(other.getClass())) { 31290 return getClass().getName().compareTo(other.getClass().getName()); 31291 } 31292 31293 int lastComparison = 0; 31294 mutateRows_args typedOther = (mutateRows_args)other; 31295 31296 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 31297 if (lastComparison != 0) { 31298 return lastComparison; 31299 } 31300 if (isSetTableName()) { 31301 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 31302 if (lastComparison != 0) { 31303 return lastComparison; 31304 } 31305 } 31306 lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches()); 31307 if (lastComparison != 0) { 31308 return lastComparison; 31309 } 31310 if (isSetRowBatches()) { 31311 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches); 31312 if (lastComparison != 0) { 31313 return lastComparison; 31314 } 31315 } 31316 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 31317 if (lastComparison != 0) { 31318 return lastComparison; 31319 } 31320 if (isSetAttributes()) { 31321 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 31322 if (lastComparison != 0) { 31323 return lastComparison; 31324 } 31325 } 31326 return 0; 31327 } 31328 31329 public _Fields fieldForId(int fieldId) { 31330 return _Fields.findByThriftId(fieldId); 31331 } 31332 31333 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 31334 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 31335 } 31336 31337 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 31338 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 31339 } 31340 31341 @Override 31342 public String toString() { 31343 StringBuilder sb = new StringBuilder("mutateRows_args("); 31344 boolean first = true; 31345 31346 sb.append("tableName:"); 31347 if (this.tableName == null) { 31348 sb.append("null"); 31349 } else { 31350 sb.append(this.tableName); 31351 } 31352 first = false; 31353 if (!first) sb.append(", "); 31354 sb.append("rowBatches:"); 31355 if (this.rowBatches == null) { 31356 sb.append("null"); 31357 } else { 31358 sb.append(this.rowBatches); 31359 } 31360 first = false; 31361 if (!first) sb.append(", "); 31362 sb.append("attributes:"); 31363 if (this.attributes == null) { 31364 sb.append("null"); 31365 } else { 31366 sb.append(this.attributes); 31367 } 31368 first = false; 31369 sb.append(")"); 31370 return sb.toString(); 31371 } 31372 31373 public void validate() throws org.apache.thrift.TException { 31374 // check for required fields 31375 } 31376 31377 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 31378 try { 31379 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 31380 } catch (org.apache.thrift.TException te) { 31381 throw new java.io.IOException(te); 31382 } 31383 } 31384 31385 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 31386 try { 31387 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 31388 } catch (org.apache.thrift.TException te) { 31389 throw new java.io.IOException(te); 31390 } 31391 } 31392 31393 private static class mutateRows_argsStandardSchemeFactory implements SchemeFactory { 31394 public mutateRows_argsStandardScheme getScheme() { 31395 return new mutateRows_argsStandardScheme(); 31396 } 31397 } 31398 31399 private static class mutateRows_argsStandardScheme extends StandardScheme<mutateRows_args> { 31400 31401 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_args struct) throws org.apache.thrift.TException { 31402 org.apache.thrift.protocol.TField schemeField; 31403 iprot.readStructBegin(); 31404 while (true) 31405 { 31406 schemeField = iprot.readFieldBegin(); 31407 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 31408 break; 31409 } 31410 switch (schemeField.id) { 31411 case 1: // TABLE_NAME 31412 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 31413 struct.tableName = iprot.readBinary(); 31414 struct.setTableNameIsSet(true); 31415 } else { 31416 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31417 } 31418 break; 31419 case 2: // ROW_BATCHES 31420 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 31421 { 31422 org.apache.thrift.protocol.TList _list366 = iprot.readListBegin(); 31423 struct.rowBatches = new ArrayList<BatchMutation>(_list366.size); 31424 for (int _i367 = 0; _i367 < _list366.size; ++_i367) 31425 { 31426 BatchMutation _elem368; // required 31427 _elem368 = new BatchMutation(); 31428 _elem368.read(iprot); 31429 struct.rowBatches.add(_elem368); 31430 } 31431 iprot.readListEnd(); 31432 } 31433 struct.setRowBatchesIsSet(true); 31434 } else { 31435 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31436 } 31437 break; 31438 case 3: // ATTRIBUTES 31439 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 31440 { 31441 org.apache.thrift.protocol.TMap _map369 = iprot.readMapBegin(); 31442 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map369.size); 31443 for (int _i370 = 0; _i370 < _map369.size; ++_i370) 31444 { 31445 ByteBuffer _key371; // required 31446 ByteBuffer _val372; // required 31447 _key371 = iprot.readBinary(); 31448 _val372 = iprot.readBinary(); 31449 struct.attributes.put(_key371, _val372); 31450 } 31451 iprot.readMapEnd(); 31452 } 31453 struct.setAttributesIsSet(true); 31454 } else { 31455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31456 } 31457 break; 31458 default: 31459 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31460 } 31461 iprot.readFieldEnd(); 31462 } 31463 iprot.readStructEnd(); 31464 31465 // check for required fields of primitive type, which can't be checked in the validate method 31466 struct.validate(); 31467 } 31468 31469 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_args struct) throws org.apache.thrift.TException { 31470 struct.validate(); 31471 31472 oprot.writeStructBegin(STRUCT_DESC); 31473 if (struct.tableName != null) { 31474 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 31475 oprot.writeBinary(struct.tableName); 31476 oprot.writeFieldEnd(); 31477 } 31478 if (struct.rowBatches != null) { 31479 oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC); 31480 { 31481 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size())); 31482 for (BatchMutation _iter373 : struct.rowBatches) 31483 { 31484 _iter373.write(oprot); 31485 } 31486 oprot.writeListEnd(); 31487 } 31488 oprot.writeFieldEnd(); 31489 } 31490 if (struct.attributes != null) { 31491 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 31492 { 31493 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 31494 for (Map.Entry<ByteBuffer, ByteBuffer> _iter374 : struct.attributes.entrySet()) 31495 { 31496 oprot.writeBinary(_iter374.getKey()); 31497 oprot.writeBinary(_iter374.getValue()); 31498 } 31499 oprot.writeMapEnd(); 31500 } 31501 oprot.writeFieldEnd(); 31502 } 31503 oprot.writeFieldStop(); 31504 oprot.writeStructEnd(); 31505 } 31506 31507 } 31508 31509 private static class mutateRows_argsTupleSchemeFactory implements SchemeFactory { 31510 public mutateRows_argsTupleScheme getScheme() { 31511 return new mutateRows_argsTupleScheme(); 31512 } 31513 } 31514 31515 private static class mutateRows_argsTupleScheme extends TupleScheme<mutateRows_args> { 31516 31517 @Override 31518 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException { 31519 TTupleProtocol oprot = (TTupleProtocol) prot; 31520 BitSet optionals = new BitSet(); 31521 if (struct.isSetTableName()) { 31522 optionals.set(0); 31523 } 31524 if (struct.isSetRowBatches()) { 31525 optionals.set(1); 31526 } 31527 if (struct.isSetAttributes()) { 31528 optionals.set(2); 31529 } 31530 oprot.writeBitSet(optionals, 3); 31531 if (struct.isSetTableName()) { 31532 oprot.writeBinary(struct.tableName); 31533 } 31534 if (struct.isSetRowBatches()) { 31535 { 31536 oprot.writeI32(struct.rowBatches.size()); 31537 for (BatchMutation _iter375 : struct.rowBatches) 31538 { 31539 _iter375.write(oprot); 31540 } 31541 } 31542 } 31543 if (struct.isSetAttributes()) { 31544 { 31545 oprot.writeI32(struct.attributes.size()); 31546 for (Map.Entry<ByteBuffer, ByteBuffer> _iter376 : struct.attributes.entrySet()) 31547 { 31548 oprot.writeBinary(_iter376.getKey()); 31549 oprot.writeBinary(_iter376.getValue()); 31550 } 31551 } 31552 } 31553 } 31554 31555 @Override 31556 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException { 31557 TTupleProtocol iprot = (TTupleProtocol) prot; 31558 BitSet incoming = iprot.readBitSet(3); 31559 if (incoming.get(0)) { 31560 struct.tableName = iprot.readBinary(); 31561 struct.setTableNameIsSet(true); 31562 } 31563 if (incoming.get(1)) { 31564 { 31565 org.apache.thrift.protocol.TList _list377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 31566 struct.rowBatches = new ArrayList<BatchMutation>(_list377.size); 31567 for (int _i378 = 0; _i378 < _list377.size; ++_i378) 31568 { 31569 BatchMutation _elem379; // required 31570 _elem379 = new BatchMutation(); 31571 _elem379.read(iprot); 31572 struct.rowBatches.add(_elem379); 31573 } 31574 } 31575 struct.setRowBatchesIsSet(true); 31576 } 31577 if (incoming.get(2)) { 31578 { 31579 org.apache.thrift.protocol.TMap _map380 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 31580 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map380.size); 31581 for (int _i381 = 0; _i381 < _map380.size; ++_i381) 31582 { 31583 ByteBuffer _key382; // required 31584 ByteBuffer _val383; // required 31585 _key382 = iprot.readBinary(); 31586 _val383 = iprot.readBinary(); 31587 struct.attributes.put(_key382, _val383); 31588 } 31589 } 31590 struct.setAttributesIsSet(true); 31591 } 31592 } 31593 } 31594 31595 } 31596 31597 public static class mutateRows_result implements org.apache.thrift.TBase<mutateRows_result, mutateRows_result._Fields>, java.io.Serializable, Cloneable { 31598 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_result"); 31599 31600 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 31601 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 31602 31603 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 31604 static { 31605 schemes.put(StandardScheme.class, new mutateRows_resultStandardSchemeFactory()); 31606 schemes.put(TupleScheme.class, new mutateRows_resultTupleSchemeFactory()); 31607 } 31608 31609 public IOError io; // required 31610 public IllegalArgument ia; // required 31611 31612 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 31613 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 31614 IO((short)1, "io"), 31615 IA((short)2, "ia"); 31616 31617 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 31618 31619 static { 31620 for (_Fields field : EnumSet.allOf(_Fields.class)) { 31621 byName.put(field.getFieldName(), field); 31622 } 31623 } 31624 31625 /** 31626 * Find the _Fields constant that matches fieldId, or null if its not found. 31627 */ 31628 public static _Fields findByThriftId(int fieldId) { 31629 switch(fieldId) { 31630 case 1: // IO 31631 return IO; 31632 case 2: // IA 31633 return IA; 31634 default: 31635 return null; 31636 } 31637 } 31638 31639 /** 31640 * Find the _Fields constant that matches fieldId, throwing an exception 31641 * if it is not found. 31642 */ 31643 public static _Fields findByThriftIdOrThrow(int fieldId) { 31644 _Fields fields = findByThriftId(fieldId); 31645 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 31646 return fields; 31647 } 31648 31649 /** 31650 * Find the _Fields constant that matches name, or null if its not found. 31651 */ 31652 public static _Fields findByName(String name) { 31653 return byName.get(name); 31654 } 31655 31656 private final short _thriftId; 31657 private final String _fieldName; 31658 31659 _Fields(short thriftId, String fieldName) { 31660 _thriftId = thriftId; 31661 _fieldName = fieldName; 31662 } 31663 31664 public short getThriftFieldId() { 31665 return _thriftId; 31666 } 31667 31668 public String getFieldName() { 31669 return _fieldName; 31670 } 31671 } 31672 31673 // isset id assignments 31674 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 31675 static { 31676 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 31677 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 31678 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 31679 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 31680 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 31681 metaDataMap = Collections.unmodifiableMap(tmpMap); 31682 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_result.class, metaDataMap); 31683 } 31684 31685 public mutateRows_result() { 31686 } 31687 31688 public mutateRows_result( 31689 IOError io, 31690 IllegalArgument ia) 31691 { 31692 this(); 31693 this.io = io; 31694 this.ia = ia; 31695 } 31696 31697 /** 31698 * Performs a deep copy on <i>other</i>. 31699 */ 31700 public mutateRows_result(mutateRows_result other) { 31701 if (other.isSetIo()) { 31702 this.io = new IOError(other.io); 31703 } 31704 if (other.isSetIa()) { 31705 this.ia = new IllegalArgument(other.ia); 31706 } 31707 } 31708 31709 public mutateRows_result deepCopy() { 31710 return new mutateRows_result(this); 31711 } 31712 31713 @Override 31714 public void clear() { 31715 this.io = null; 31716 this.ia = null; 31717 } 31718 31719 public IOError getIo() { 31720 return this.io; 31721 } 31722 31723 public mutateRows_result setIo(IOError io) { 31724 this.io = io; 31725 return this; 31726 } 31727 31728 public void unsetIo() { 31729 this.io = null; 31730 } 31731 31732 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 31733 public boolean isSetIo() { 31734 return this.io != null; 31735 } 31736 31737 public void setIoIsSet(boolean value) { 31738 if (!value) { 31739 this.io = null; 31740 } 31741 } 31742 31743 public IllegalArgument getIa() { 31744 return this.ia; 31745 } 31746 31747 public mutateRows_result setIa(IllegalArgument ia) { 31748 this.ia = ia; 31749 return this; 31750 } 31751 31752 public void unsetIa() { 31753 this.ia = null; 31754 } 31755 31756 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 31757 public boolean isSetIa() { 31758 return this.ia != null; 31759 } 31760 31761 public void setIaIsSet(boolean value) { 31762 if (!value) { 31763 this.ia = null; 31764 } 31765 } 31766 31767 public void setFieldValue(_Fields field, Object value) { 31768 switch (field) { 31769 case IO: 31770 if (value == null) { 31771 unsetIo(); 31772 } else { 31773 setIo((IOError)value); 31774 } 31775 break; 31776 31777 case IA: 31778 if (value == null) { 31779 unsetIa(); 31780 } else { 31781 setIa((IllegalArgument)value); 31782 } 31783 break; 31784 31785 } 31786 } 31787 31788 public Object getFieldValue(_Fields field) { 31789 switch (field) { 31790 case IO: 31791 return getIo(); 31792 31793 case IA: 31794 return getIa(); 31795 31796 } 31797 throw new IllegalStateException(); 31798 } 31799 31800 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 31801 public boolean isSet(_Fields field) { 31802 if (field == null) { 31803 throw new IllegalArgumentException(); 31804 } 31805 31806 switch (field) { 31807 case IO: 31808 return isSetIo(); 31809 case IA: 31810 return isSetIa(); 31811 } 31812 throw new IllegalStateException(); 31813 } 31814 31815 @Override 31816 public boolean equals(Object that) { 31817 if (that == null) 31818 return false; 31819 if (that instanceof mutateRows_result) 31820 return this.equals((mutateRows_result)that); 31821 return false; 31822 } 31823 31824 public boolean equals(mutateRows_result that) { 31825 if (that == null) 31826 return false; 31827 31828 boolean this_present_io = true && this.isSetIo(); 31829 boolean that_present_io = true && that.isSetIo(); 31830 if (this_present_io || that_present_io) { 31831 if (!(this_present_io && that_present_io)) 31832 return false; 31833 if (!this.io.equals(that.io)) 31834 return false; 31835 } 31836 31837 boolean this_present_ia = true && this.isSetIa(); 31838 boolean that_present_ia = true && that.isSetIa(); 31839 if (this_present_ia || that_present_ia) { 31840 if (!(this_present_ia && that_present_ia)) 31841 return false; 31842 if (!this.ia.equals(that.ia)) 31843 return false; 31844 } 31845 31846 return true; 31847 } 31848 31849 @Override 31850 public int hashCode() { 31851 HashCodeBuilder builder = new HashCodeBuilder(); 31852 31853 boolean present_io = true && (isSetIo()); 31854 builder.append(present_io); 31855 if (present_io) 31856 builder.append(io); 31857 31858 boolean present_ia = true && (isSetIa()); 31859 builder.append(present_ia); 31860 if (present_ia) 31861 builder.append(ia); 31862 31863 return builder.toHashCode(); 31864 } 31865 31866 public int compareTo(mutateRows_result other) { 31867 if (!getClass().equals(other.getClass())) { 31868 return getClass().getName().compareTo(other.getClass().getName()); 31869 } 31870 31871 int lastComparison = 0; 31872 mutateRows_result typedOther = (mutateRows_result)other; 31873 31874 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 31875 if (lastComparison != 0) { 31876 return lastComparison; 31877 } 31878 if (isSetIo()) { 31879 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 31880 if (lastComparison != 0) { 31881 return lastComparison; 31882 } 31883 } 31884 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 31885 if (lastComparison != 0) { 31886 return lastComparison; 31887 } 31888 if (isSetIa()) { 31889 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 31890 if (lastComparison != 0) { 31891 return lastComparison; 31892 } 31893 } 31894 return 0; 31895 } 31896 31897 public _Fields fieldForId(int fieldId) { 31898 return _Fields.findByThriftId(fieldId); 31899 } 31900 31901 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 31902 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 31903 } 31904 31905 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 31906 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 31907 } 31908 31909 @Override 31910 public String toString() { 31911 StringBuilder sb = new StringBuilder("mutateRows_result("); 31912 boolean first = true; 31913 31914 sb.append("io:"); 31915 if (this.io == null) { 31916 sb.append("null"); 31917 } else { 31918 sb.append(this.io); 31919 } 31920 first = false; 31921 if (!first) sb.append(", "); 31922 sb.append("ia:"); 31923 if (this.ia == null) { 31924 sb.append("null"); 31925 } else { 31926 sb.append(this.ia); 31927 } 31928 first = false; 31929 sb.append(")"); 31930 return sb.toString(); 31931 } 31932 31933 public void validate() throws org.apache.thrift.TException { 31934 // check for required fields 31935 } 31936 31937 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 31938 try { 31939 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 31940 } catch (org.apache.thrift.TException te) { 31941 throw new java.io.IOException(te); 31942 } 31943 } 31944 31945 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 31946 try { 31947 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 31948 } catch (org.apache.thrift.TException te) { 31949 throw new java.io.IOException(te); 31950 } 31951 } 31952 31953 private static class mutateRows_resultStandardSchemeFactory implements SchemeFactory { 31954 public mutateRows_resultStandardScheme getScheme() { 31955 return new mutateRows_resultStandardScheme(); 31956 } 31957 } 31958 31959 private static class mutateRows_resultStandardScheme extends StandardScheme<mutateRows_result> { 31960 31961 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_result struct) throws org.apache.thrift.TException { 31962 org.apache.thrift.protocol.TField schemeField; 31963 iprot.readStructBegin(); 31964 while (true) 31965 { 31966 schemeField = iprot.readFieldBegin(); 31967 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 31968 break; 31969 } 31970 switch (schemeField.id) { 31971 case 1: // IO 31972 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 31973 struct.io = new IOError(); 31974 struct.io.read(iprot); 31975 struct.setIoIsSet(true); 31976 } else { 31977 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31978 } 31979 break; 31980 case 2: // IA 31981 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 31982 struct.ia = new IllegalArgument(); 31983 struct.ia.read(iprot); 31984 struct.setIaIsSet(true); 31985 } else { 31986 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31987 } 31988 break; 31989 default: 31990 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 31991 } 31992 iprot.readFieldEnd(); 31993 } 31994 iprot.readStructEnd(); 31995 31996 // check for required fields of primitive type, which can't be checked in the validate method 31997 struct.validate(); 31998 } 31999 32000 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_result struct) throws org.apache.thrift.TException { 32001 struct.validate(); 32002 32003 oprot.writeStructBegin(STRUCT_DESC); 32004 if (struct.io != null) { 32005 oprot.writeFieldBegin(IO_FIELD_DESC); 32006 struct.io.write(oprot); 32007 oprot.writeFieldEnd(); 32008 } 32009 if (struct.ia != null) { 32010 oprot.writeFieldBegin(IA_FIELD_DESC); 32011 struct.ia.write(oprot); 32012 oprot.writeFieldEnd(); 32013 } 32014 oprot.writeFieldStop(); 32015 oprot.writeStructEnd(); 32016 } 32017 32018 } 32019 32020 private static class mutateRows_resultTupleSchemeFactory implements SchemeFactory { 32021 public mutateRows_resultTupleScheme getScheme() { 32022 return new mutateRows_resultTupleScheme(); 32023 } 32024 } 32025 32026 private static class mutateRows_resultTupleScheme extends TupleScheme<mutateRows_result> { 32027 32028 @Override 32029 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException { 32030 TTupleProtocol oprot = (TTupleProtocol) prot; 32031 BitSet optionals = new BitSet(); 32032 if (struct.isSetIo()) { 32033 optionals.set(0); 32034 } 32035 if (struct.isSetIa()) { 32036 optionals.set(1); 32037 } 32038 oprot.writeBitSet(optionals, 2); 32039 if (struct.isSetIo()) { 32040 struct.io.write(oprot); 32041 } 32042 if (struct.isSetIa()) { 32043 struct.ia.write(oprot); 32044 } 32045 } 32046 32047 @Override 32048 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException { 32049 TTupleProtocol iprot = (TTupleProtocol) prot; 32050 BitSet incoming = iprot.readBitSet(2); 32051 if (incoming.get(0)) { 32052 struct.io = new IOError(); 32053 struct.io.read(iprot); 32054 struct.setIoIsSet(true); 32055 } 32056 if (incoming.get(1)) { 32057 struct.ia = new IllegalArgument(); 32058 struct.ia.read(iprot); 32059 struct.setIaIsSet(true); 32060 } 32061 } 32062 } 32063 32064 } 32065 32066 public static class mutateRowsTs_args implements org.apache.thrift.TBase<mutateRowsTs_args, mutateRowsTs_args._Fields>, java.io.Serializable, Cloneable { 32067 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_args"); 32068 32069 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 32070 private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2); 32071 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); 32072 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 32073 32074 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 32075 static { 32076 schemes.put(StandardScheme.class, new mutateRowsTs_argsStandardSchemeFactory()); 32077 schemes.put(TupleScheme.class, new mutateRowsTs_argsTupleSchemeFactory()); 32078 } 32079 32080 /** 32081 * name of table 32082 */ 32083 public ByteBuffer tableName; // required 32084 /** 32085 * list of row batches 32086 */ 32087 public List<BatchMutation> rowBatches; // required 32088 /** 32089 * timestamp 32090 */ 32091 public long timestamp; // required 32092 /** 32093 * Mutation attributes 32094 */ 32095 public Map<ByteBuffer,ByteBuffer> attributes; // required 32096 32097 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 32098 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 32099 /** 32100 * name of table 32101 */ 32102 TABLE_NAME((short)1, "tableName"), 32103 /** 32104 * list of row batches 32105 */ 32106 ROW_BATCHES((short)2, "rowBatches"), 32107 /** 32108 * timestamp 32109 */ 32110 TIMESTAMP((short)3, "timestamp"), 32111 /** 32112 * Mutation attributes 32113 */ 32114 ATTRIBUTES((short)4, "attributes"); 32115 32116 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 32117 32118 static { 32119 for (_Fields field : EnumSet.allOf(_Fields.class)) { 32120 byName.put(field.getFieldName(), field); 32121 } 32122 } 32123 32124 /** 32125 * Find the _Fields constant that matches fieldId, or null if its not found. 32126 */ 32127 public static _Fields findByThriftId(int fieldId) { 32128 switch(fieldId) { 32129 case 1: // TABLE_NAME 32130 return TABLE_NAME; 32131 case 2: // ROW_BATCHES 32132 return ROW_BATCHES; 32133 case 3: // TIMESTAMP 32134 return TIMESTAMP; 32135 case 4: // ATTRIBUTES 32136 return ATTRIBUTES; 32137 default: 32138 return null; 32139 } 32140 } 32141 32142 /** 32143 * Find the _Fields constant that matches fieldId, throwing an exception 32144 * if it is not found. 32145 */ 32146 public static _Fields findByThriftIdOrThrow(int fieldId) { 32147 _Fields fields = findByThriftId(fieldId); 32148 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 32149 return fields; 32150 } 32151 32152 /** 32153 * Find the _Fields constant that matches name, or null if its not found. 32154 */ 32155 public static _Fields findByName(String name) { 32156 return byName.get(name); 32157 } 32158 32159 private final short _thriftId; 32160 private final String _fieldName; 32161 32162 _Fields(short thriftId, String fieldName) { 32163 _thriftId = thriftId; 32164 _fieldName = fieldName; 32165 } 32166 32167 public short getThriftFieldId() { 32168 return _thriftId; 32169 } 32170 32171 public String getFieldName() { 32172 return _fieldName; 32173 } 32174 } 32175 32176 // isset id assignments 32177 private static final int __TIMESTAMP_ISSET_ID = 0; 32178 private BitSet __isset_bit_vector = new BitSet(1); 32179 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 32180 static { 32181 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 32182 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 32183 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 32184 tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT, 32185 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 32186 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class)))); 32187 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 32188 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 32189 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 32190 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 32191 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 32192 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 32193 metaDataMap = Collections.unmodifiableMap(tmpMap); 32194 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_args.class, metaDataMap); 32195 } 32196 32197 public mutateRowsTs_args() { 32198 } 32199 32200 public mutateRowsTs_args( 32201 ByteBuffer tableName, 32202 List<BatchMutation> rowBatches, 32203 long timestamp, 32204 Map<ByteBuffer,ByteBuffer> attributes) 32205 { 32206 this(); 32207 this.tableName = tableName; 32208 this.rowBatches = rowBatches; 32209 this.timestamp = timestamp; 32210 setTimestampIsSet(true); 32211 this.attributes = attributes; 32212 } 32213 32214 /** 32215 * Performs a deep copy on <i>other</i>. 32216 */ 32217 public mutateRowsTs_args(mutateRowsTs_args other) { 32218 __isset_bit_vector.clear(); 32219 __isset_bit_vector.or(other.__isset_bit_vector); 32220 if (other.isSetTableName()) { 32221 this.tableName = other.tableName; 32222 } 32223 if (other.isSetRowBatches()) { 32224 List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>(); 32225 for (BatchMutation other_element : other.rowBatches) { 32226 __this__rowBatches.add(new BatchMutation(other_element)); 32227 } 32228 this.rowBatches = __this__rowBatches; 32229 } 32230 this.timestamp = other.timestamp; 32231 if (other.isSetAttributes()) { 32232 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 32233 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 32234 32235 ByteBuffer other_element_key = other_element.getKey(); 32236 ByteBuffer other_element_value = other_element.getValue(); 32237 32238 ByteBuffer __this__attributes_copy_key = other_element_key; 32239 32240 ByteBuffer __this__attributes_copy_value = other_element_value; 32241 32242 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 32243 } 32244 this.attributes = __this__attributes; 32245 } 32246 } 32247 32248 public mutateRowsTs_args deepCopy() { 32249 return new mutateRowsTs_args(this); 32250 } 32251 32252 @Override 32253 public void clear() { 32254 this.tableName = null; 32255 this.rowBatches = null; 32256 setTimestampIsSet(false); 32257 this.timestamp = 0; 32258 this.attributes = null; 32259 } 32260 32261 /** 32262 * name of table 32263 */ 32264 public byte[] getTableName() { 32265 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 32266 return tableName == null ? null : tableName.array(); 32267 } 32268 32269 public ByteBuffer bufferForTableName() { 32270 return tableName; 32271 } 32272 32273 /** 32274 * name of table 32275 */ 32276 public mutateRowsTs_args setTableName(byte[] tableName) { 32277 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 32278 return this; 32279 } 32280 32281 public mutateRowsTs_args setTableName(ByteBuffer tableName) { 32282 this.tableName = tableName; 32283 return this; 32284 } 32285 32286 public void unsetTableName() { 32287 this.tableName = null; 32288 } 32289 32290 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 32291 public boolean isSetTableName() { 32292 return this.tableName != null; 32293 } 32294 32295 public void setTableNameIsSet(boolean value) { 32296 if (!value) { 32297 this.tableName = null; 32298 } 32299 } 32300 32301 public int getRowBatchesSize() { 32302 return (this.rowBatches == null) ? 0 : this.rowBatches.size(); 32303 } 32304 32305 public java.util.Iterator<BatchMutation> getRowBatchesIterator() { 32306 return (this.rowBatches == null) ? null : this.rowBatches.iterator(); 32307 } 32308 32309 public void addToRowBatches(BatchMutation elem) { 32310 if (this.rowBatches == null) { 32311 this.rowBatches = new ArrayList<BatchMutation>(); 32312 } 32313 this.rowBatches.add(elem); 32314 } 32315 32316 /** 32317 * list of row batches 32318 */ 32319 public List<BatchMutation> getRowBatches() { 32320 return this.rowBatches; 32321 } 32322 32323 /** 32324 * list of row batches 32325 */ 32326 public mutateRowsTs_args setRowBatches(List<BatchMutation> rowBatches) { 32327 this.rowBatches = rowBatches; 32328 return this; 32329 } 32330 32331 public void unsetRowBatches() { 32332 this.rowBatches = null; 32333 } 32334 32335 /** Returns true if field rowBatches is set (has been assigned a value) and false otherwise */ 32336 public boolean isSetRowBatches() { 32337 return this.rowBatches != null; 32338 } 32339 32340 public void setRowBatchesIsSet(boolean value) { 32341 if (!value) { 32342 this.rowBatches = null; 32343 } 32344 } 32345 32346 /** 32347 * timestamp 32348 */ 32349 public long getTimestamp() { 32350 return this.timestamp; 32351 } 32352 32353 /** 32354 * timestamp 32355 */ 32356 public mutateRowsTs_args setTimestamp(long timestamp) { 32357 this.timestamp = timestamp; 32358 setTimestampIsSet(true); 32359 return this; 32360 } 32361 32362 public void unsetTimestamp() { 32363 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 32364 } 32365 32366 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 32367 public boolean isSetTimestamp() { 32368 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 32369 } 32370 32371 public void setTimestampIsSet(boolean value) { 32372 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 32373 } 32374 32375 public int getAttributesSize() { 32376 return (this.attributes == null) ? 0 : this.attributes.size(); 32377 } 32378 32379 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 32380 if (this.attributes == null) { 32381 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 32382 } 32383 this.attributes.put(key, val); 32384 } 32385 32386 /** 32387 * Mutation attributes 32388 */ 32389 public Map<ByteBuffer,ByteBuffer> getAttributes() { 32390 return this.attributes; 32391 } 32392 32393 /** 32394 * Mutation attributes 32395 */ 32396 public mutateRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 32397 this.attributes = attributes; 32398 return this; 32399 } 32400 32401 public void unsetAttributes() { 32402 this.attributes = null; 32403 } 32404 32405 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 32406 public boolean isSetAttributes() { 32407 return this.attributes != null; 32408 } 32409 32410 public void setAttributesIsSet(boolean value) { 32411 if (!value) { 32412 this.attributes = null; 32413 } 32414 } 32415 32416 public void setFieldValue(_Fields field, Object value) { 32417 switch (field) { 32418 case TABLE_NAME: 32419 if (value == null) { 32420 unsetTableName(); 32421 } else { 32422 setTableName((ByteBuffer)value); 32423 } 32424 break; 32425 32426 case ROW_BATCHES: 32427 if (value == null) { 32428 unsetRowBatches(); 32429 } else { 32430 setRowBatches((List<BatchMutation>)value); 32431 } 32432 break; 32433 32434 case TIMESTAMP: 32435 if (value == null) { 32436 unsetTimestamp(); 32437 } else { 32438 setTimestamp((Long)value); 32439 } 32440 break; 32441 32442 case ATTRIBUTES: 32443 if (value == null) { 32444 unsetAttributes(); 32445 } else { 32446 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 32447 } 32448 break; 32449 32450 } 32451 } 32452 32453 public Object getFieldValue(_Fields field) { 32454 switch (field) { 32455 case TABLE_NAME: 32456 return getTableName(); 32457 32458 case ROW_BATCHES: 32459 return getRowBatches(); 32460 32461 case TIMESTAMP: 32462 return Long.valueOf(getTimestamp()); 32463 32464 case ATTRIBUTES: 32465 return getAttributes(); 32466 32467 } 32468 throw new IllegalStateException(); 32469 } 32470 32471 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 32472 public boolean isSet(_Fields field) { 32473 if (field == null) { 32474 throw new IllegalArgumentException(); 32475 } 32476 32477 switch (field) { 32478 case TABLE_NAME: 32479 return isSetTableName(); 32480 case ROW_BATCHES: 32481 return isSetRowBatches(); 32482 case TIMESTAMP: 32483 return isSetTimestamp(); 32484 case ATTRIBUTES: 32485 return isSetAttributes(); 32486 } 32487 throw new IllegalStateException(); 32488 } 32489 32490 @Override 32491 public boolean equals(Object that) { 32492 if (that == null) 32493 return false; 32494 if (that instanceof mutateRowsTs_args) 32495 return this.equals((mutateRowsTs_args)that); 32496 return false; 32497 } 32498 32499 public boolean equals(mutateRowsTs_args that) { 32500 if (that == null) 32501 return false; 32502 32503 boolean this_present_tableName = true && this.isSetTableName(); 32504 boolean that_present_tableName = true && that.isSetTableName(); 32505 if (this_present_tableName || that_present_tableName) { 32506 if (!(this_present_tableName && that_present_tableName)) 32507 return false; 32508 if (!this.tableName.equals(that.tableName)) 32509 return false; 32510 } 32511 32512 boolean this_present_rowBatches = true && this.isSetRowBatches(); 32513 boolean that_present_rowBatches = true && that.isSetRowBatches(); 32514 if (this_present_rowBatches || that_present_rowBatches) { 32515 if (!(this_present_rowBatches && that_present_rowBatches)) 32516 return false; 32517 if (!this.rowBatches.equals(that.rowBatches)) 32518 return false; 32519 } 32520 32521 boolean this_present_timestamp = true; 32522 boolean that_present_timestamp = true; 32523 if (this_present_timestamp || that_present_timestamp) { 32524 if (!(this_present_timestamp && that_present_timestamp)) 32525 return false; 32526 if (this.timestamp != that.timestamp) 32527 return false; 32528 } 32529 32530 boolean this_present_attributes = true && this.isSetAttributes(); 32531 boolean that_present_attributes = true && that.isSetAttributes(); 32532 if (this_present_attributes || that_present_attributes) { 32533 if (!(this_present_attributes && that_present_attributes)) 32534 return false; 32535 if (!this.attributes.equals(that.attributes)) 32536 return false; 32537 } 32538 32539 return true; 32540 } 32541 32542 @Override 32543 public int hashCode() { 32544 HashCodeBuilder builder = new HashCodeBuilder(); 32545 32546 boolean present_tableName = true && (isSetTableName()); 32547 builder.append(present_tableName); 32548 if (present_tableName) 32549 builder.append(tableName); 32550 32551 boolean present_rowBatches = true && (isSetRowBatches()); 32552 builder.append(present_rowBatches); 32553 if (present_rowBatches) 32554 builder.append(rowBatches); 32555 32556 boolean present_timestamp = true; 32557 builder.append(present_timestamp); 32558 if (present_timestamp) 32559 builder.append(timestamp); 32560 32561 boolean present_attributes = true && (isSetAttributes()); 32562 builder.append(present_attributes); 32563 if (present_attributes) 32564 builder.append(attributes); 32565 32566 return builder.toHashCode(); 32567 } 32568 32569 public int compareTo(mutateRowsTs_args other) { 32570 if (!getClass().equals(other.getClass())) { 32571 return getClass().getName().compareTo(other.getClass().getName()); 32572 } 32573 32574 int lastComparison = 0; 32575 mutateRowsTs_args typedOther = (mutateRowsTs_args)other; 32576 32577 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 32578 if (lastComparison != 0) { 32579 return lastComparison; 32580 } 32581 if (isSetTableName()) { 32582 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 32583 if (lastComparison != 0) { 32584 return lastComparison; 32585 } 32586 } 32587 lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches()); 32588 if (lastComparison != 0) { 32589 return lastComparison; 32590 } 32591 if (isSetRowBatches()) { 32592 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches); 32593 if (lastComparison != 0) { 32594 return lastComparison; 32595 } 32596 } 32597 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 32598 if (lastComparison != 0) { 32599 return lastComparison; 32600 } 32601 if (isSetTimestamp()) { 32602 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 32603 if (lastComparison != 0) { 32604 return lastComparison; 32605 } 32606 } 32607 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 32608 if (lastComparison != 0) { 32609 return lastComparison; 32610 } 32611 if (isSetAttributes()) { 32612 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 32613 if (lastComparison != 0) { 32614 return lastComparison; 32615 } 32616 } 32617 return 0; 32618 } 32619 32620 public _Fields fieldForId(int fieldId) { 32621 return _Fields.findByThriftId(fieldId); 32622 } 32623 32624 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 32625 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 32626 } 32627 32628 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 32629 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 32630 } 32631 32632 @Override 32633 public String toString() { 32634 StringBuilder sb = new StringBuilder("mutateRowsTs_args("); 32635 boolean first = true; 32636 32637 sb.append("tableName:"); 32638 if (this.tableName == null) { 32639 sb.append("null"); 32640 } else { 32641 sb.append(this.tableName); 32642 } 32643 first = false; 32644 if (!first) sb.append(", "); 32645 sb.append("rowBatches:"); 32646 if (this.rowBatches == null) { 32647 sb.append("null"); 32648 } else { 32649 sb.append(this.rowBatches); 32650 } 32651 first = false; 32652 if (!first) sb.append(", "); 32653 sb.append("timestamp:"); 32654 sb.append(this.timestamp); 32655 first = false; 32656 if (!first) sb.append(", "); 32657 sb.append("attributes:"); 32658 if (this.attributes == null) { 32659 sb.append("null"); 32660 } else { 32661 sb.append(this.attributes); 32662 } 32663 first = false; 32664 sb.append(")"); 32665 return sb.toString(); 32666 } 32667 32668 public void validate() throws org.apache.thrift.TException { 32669 // check for required fields 32670 } 32671 32672 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 32673 try { 32674 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 32675 } catch (org.apache.thrift.TException te) { 32676 throw new java.io.IOException(te); 32677 } 32678 } 32679 32680 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 32681 try { 32682 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 32683 } catch (org.apache.thrift.TException te) { 32684 throw new java.io.IOException(te); 32685 } 32686 } 32687 32688 private static class mutateRowsTs_argsStandardSchemeFactory implements SchemeFactory { 32689 public mutateRowsTs_argsStandardScheme getScheme() { 32690 return new mutateRowsTs_argsStandardScheme(); 32691 } 32692 } 32693 32694 private static class mutateRowsTs_argsStandardScheme extends StandardScheme<mutateRowsTs_args> { 32695 32696 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_args struct) throws org.apache.thrift.TException { 32697 org.apache.thrift.protocol.TField schemeField; 32698 iprot.readStructBegin(); 32699 while (true) 32700 { 32701 schemeField = iprot.readFieldBegin(); 32702 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 32703 break; 32704 } 32705 switch (schemeField.id) { 32706 case 1: // TABLE_NAME 32707 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 32708 struct.tableName = iprot.readBinary(); 32709 struct.setTableNameIsSet(true); 32710 } else { 32711 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 32712 } 32713 break; 32714 case 2: // ROW_BATCHES 32715 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 32716 { 32717 org.apache.thrift.protocol.TList _list384 = iprot.readListBegin(); 32718 struct.rowBatches = new ArrayList<BatchMutation>(_list384.size); 32719 for (int _i385 = 0; _i385 < _list384.size; ++_i385) 32720 { 32721 BatchMutation _elem386; // required 32722 _elem386 = new BatchMutation(); 32723 _elem386.read(iprot); 32724 struct.rowBatches.add(_elem386); 32725 } 32726 iprot.readListEnd(); 32727 } 32728 struct.setRowBatchesIsSet(true); 32729 } else { 32730 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 32731 } 32732 break; 32733 case 3: // TIMESTAMP 32734 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 32735 struct.timestamp = iprot.readI64(); 32736 struct.setTimestampIsSet(true); 32737 } else { 32738 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 32739 } 32740 break; 32741 case 4: // ATTRIBUTES 32742 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 32743 { 32744 org.apache.thrift.protocol.TMap _map387 = iprot.readMapBegin(); 32745 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map387.size); 32746 for (int _i388 = 0; _i388 < _map387.size; ++_i388) 32747 { 32748 ByteBuffer _key389; // required 32749 ByteBuffer _val390; // required 32750 _key389 = iprot.readBinary(); 32751 _val390 = iprot.readBinary(); 32752 struct.attributes.put(_key389, _val390); 32753 } 32754 iprot.readMapEnd(); 32755 } 32756 struct.setAttributesIsSet(true); 32757 } else { 32758 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 32759 } 32760 break; 32761 default: 32762 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 32763 } 32764 iprot.readFieldEnd(); 32765 } 32766 iprot.readStructEnd(); 32767 32768 // check for required fields of primitive type, which can't be checked in the validate method 32769 struct.validate(); 32770 } 32771 32772 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_args struct) throws org.apache.thrift.TException { 32773 struct.validate(); 32774 32775 oprot.writeStructBegin(STRUCT_DESC); 32776 if (struct.tableName != null) { 32777 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 32778 oprot.writeBinary(struct.tableName); 32779 oprot.writeFieldEnd(); 32780 } 32781 if (struct.rowBatches != null) { 32782 oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC); 32783 { 32784 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size())); 32785 for (BatchMutation _iter391 : struct.rowBatches) 32786 { 32787 _iter391.write(oprot); 32788 } 32789 oprot.writeListEnd(); 32790 } 32791 oprot.writeFieldEnd(); 32792 } 32793 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 32794 oprot.writeI64(struct.timestamp); 32795 oprot.writeFieldEnd(); 32796 if (struct.attributes != null) { 32797 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 32798 { 32799 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 32800 for (Map.Entry<ByteBuffer, ByteBuffer> _iter392 : struct.attributes.entrySet()) 32801 { 32802 oprot.writeBinary(_iter392.getKey()); 32803 oprot.writeBinary(_iter392.getValue()); 32804 } 32805 oprot.writeMapEnd(); 32806 } 32807 oprot.writeFieldEnd(); 32808 } 32809 oprot.writeFieldStop(); 32810 oprot.writeStructEnd(); 32811 } 32812 32813 } 32814 32815 private static class mutateRowsTs_argsTupleSchemeFactory implements SchemeFactory { 32816 public mutateRowsTs_argsTupleScheme getScheme() { 32817 return new mutateRowsTs_argsTupleScheme(); 32818 } 32819 } 32820 32821 private static class mutateRowsTs_argsTupleScheme extends TupleScheme<mutateRowsTs_args> { 32822 32823 @Override 32824 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException { 32825 TTupleProtocol oprot = (TTupleProtocol) prot; 32826 BitSet optionals = new BitSet(); 32827 if (struct.isSetTableName()) { 32828 optionals.set(0); 32829 } 32830 if (struct.isSetRowBatches()) { 32831 optionals.set(1); 32832 } 32833 if (struct.isSetTimestamp()) { 32834 optionals.set(2); 32835 } 32836 if (struct.isSetAttributes()) { 32837 optionals.set(3); 32838 } 32839 oprot.writeBitSet(optionals, 4); 32840 if (struct.isSetTableName()) { 32841 oprot.writeBinary(struct.tableName); 32842 } 32843 if (struct.isSetRowBatches()) { 32844 { 32845 oprot.writeI32(struct.rowBatches.size()); 32846 for (BatchMutation _iter393 : struct.rowBatches) 32847 { 32848 _iter393.write(oprot); 32849 } 32850 } 32851 } 32852 if (struct.isSetTimestamp()) { 32853 oprot.writeI64(struct.timestamp); 32854 } 32855 if (struct.isSetAttributes()) { 32856 { 32857 oprot.writeI32(struct.attributes.size()); 32858 for (Map.Entry<ByteBuffer, ByteBuffer> _iter394 : struct.attributes.entrySet()) 32859 { 32860 oprot.writeBinary(_iter394.getKey()); 32861 oprot.writeBinary(_iter394.getValue()); 32862 } 32863 } 32864 } 32865 } 32866 32867 @Override 32868 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException { 32869 TTupleProtocol iprot = (TTupleProtocol) prot; 32870 BitSet incoming = iprot.readBitSet(4); 32871 if (incoming.get(0)) { 32872 struct.tableName = iprot.readBinary(); 32873 struct.setTableNameIsSet(true); 32874 } 32875 if (incoming.get(1)) { 32876 { 32877 org.apache.thrift.protocol.TList _list395 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 32878 struct.rowBatches = new ArrayList<BatchMutation>(_list395.size); 32879 for (int _i396 = 0; _i396 < _list395.size; ++_i396) 32880 { 32881 BatchMutation _elem397; // required 32882 _elem397 = new BatchMutation(); 32883 _elem397.read(iprot); 32884 struct.rowBatches.add(_elem397); 32885 } 32886 } 32887 struct.setRowBatchesIsSet(true); 32888 } 32889 if (incoming.get(2)) { 32890 struct.timestamp = iprot.readI64(); 32891 struct.setTimestampIsSet(true); 32892 } 32893 if (incoming.get(3)) { 32894 { 32895 org.apache.thrift.protocol.TMap _map398 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 32896 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map398.size); 32897 for (int _i399 = 0; _i399 < _map398.size; ++_i399) 32898 { 32899 ByteBuffer _key400; // required 32900 ByteBuffer _val401; // required 32901 _key400 = iprot.readBinary(); 32902 _val401 = iprot.readBinary(); 32903 struct.attributes.put(_key400, _val401); 32904 } 32905 } 32906 struct.setAttributesIsSet(true); 32907 } 32908 } 32909 } 32910 32911 } 32912 32913 public static class mutateRowsTs_result implements org.apache.thrift.TBase<mutateRowsTs_result, mutateRowsTs_result._Fields>, java.io.Serializable, Cloneable { 32914 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_result"); 32915 32916 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 32917 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 32918 32919 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 32920 static { 32921 schemes.put(StandardScheme.class, new mutateRowsTs_resultStandardSchemeFactory()); 32922 schemes.put(TupleScheme.class, new mutateRowsTs_resultTupleSchemeFactory()); 32923 } 32924 32925 public IOError io; // required 32926 public IllegalArgument ia; // required 32927 32928 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 32929 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 32930 IO((short)1, "io"), 32931 IA((short)2, "ia"); 32932 32933 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 32934 32935 static { 32936 for (_Fields field : EnumSet.allOf(_Fields.class)) { 32937 byName.put(field.getFieldName(), field); 32938 } 32939 } 32940 32941 /** 32942 * Find the _Fields constant that matches fieldId, or null if its not found. 32943 */ 32944 public static _Fields findByThriftId(int fieldId) { 32945 switch(fieldId) { 32946 case 1: // IO 32947 return IO; 32948 case 2: // IA 32949 return IA; 32950 default: 32951 return null; 32952 } 32953 } 32954 32955 /** 32956 * Find the _Fields constant that matches fieldId, throwing an exception 32957 * if it is not found. 32958 */ 32959 public static _Fields findByThriftIdOrThrow(int fieldId) { 32960 _Fields fields = findByThriftId(fieldId); 32961 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 32962 return fields; 32963 } 32964 32965 /** 32966 * Find the _Fields constant that matches name, or null if its not found. 32967 */ 32968 public static _Fields findByName(String name) { 32969 return byName.get(name); 32970 } 32971 32972 private final short _thriftId; 32973 private final String _fieldName; 32974 32975 _Fields(short thriftId, String fieldName) { 32976 _thriftId = thriftId; 32977 _fieldName = fieldName; 32978 } 32979 32980 public short getThriftFieldId() { 32981 return _thriftId; 32982 } 32983 32984 public String getFieldName() { 32985 return _fieldName; 32986 } 32987 } 32988 32989 // isset id assignments 32990 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 32991 static { 32992 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 32993 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 32994 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 32995 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 32996 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 32997 metaDataMap = Collections.unmodifiableMap(tmpMap); 32998 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_result.class, metaDataMap); 32999 } 33000 33001 public mutateRowsTs_result() { 33002 } 33003 33004 public mutateRowsTs_result( 33005 IOError io, 33006 IllegalArgument ia) 33007 { 33008 this(); 33009 this.io = io; 33010 this.ia = ia; 33011 } 33012 33013 /** 33014 * Performs a deep copy on <i>other</i>. 33015 */ 33016 public mutateRowsTs_result(mutateRowsTs_result other) { 33017 if (other.isSetIo()) { 33018 this.io = new IOError(other.io); 33019 } 33020 if (other.isSetIa()) { 33021 this.ia = new IllegalArgument(other.ia); 33022 } 33023 } 33024 33025 public mutateRowsTs_result deepCopy() { 33026 return new mutateRowsTs_result(this); 33027 } 33028 33029 @Override 33030 public void clear() { 33031 this.io = null; 33032 this.ia = null; 33033 } 33034 33035 public IOError getIo() { 33036 return this.io; 33037 } 33038 33039 public mutateRowsTs_result setIo(IOError io) { 33040 this.io = io; 33041 return this; 33042 } 33043 33044 public void unsetIo() { 33045 this.io = null; 33046 } 33047 33048 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 33049 public boolean isSetIo() { 33050 return this.io != null; 33051 } 33052 33053 public void setIoIsSet(boolean value) { 33054 if (!value) { 33055 this.io = null; 33056 } 33057 } 33058 33059 public IllegalArgument getIa() { 33060 return this.ia; 33061 } 33062 33063 public mutateRowsTs_result setIa(IllegalArgument ia) { 33064 this.ia = ia; 33065 return this; 33066 } 33067 33068 public void unsetIa() { 33069 this.ia = null; 33070 } 33071 33072 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 33073 public boolean isSetIa() { 33074 return this.ia != null; 33075 } 33076 33077 public void setIaIsSet(boolean value) { 33078 if (!value) { 33079 this.ia = null; 33080 } 33081 } 33082 33083 public void setFieldValue(_Fields field, Object value) { 33084 switch (field) { 33085 case IO: 33086 if (value == null) { 33087 unsetIo(); 33088 } else { 33089 setIo((IOError)value); 33090 } 33091 break; 33092 33093 case IA: 33094 if (value == null) { 33095 unsetIa(); 33096 } else { 33097 setIa((IllegalArgument)value); 33098 } 33099 break; 33100 33101 } 33102 } 33103 33104 public Object getFieldValue(_Fields field) { 33105 switch (field) { 33106 case IO: 33107 return getIo(); 33108 33109 case IA: 33110 return getIa(); 33111 33112 } 33113 throw new IllegalStateException(); 33114 } 33115 33116 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 33117 public boolean isSet(_Fields field) { 33118 if (field == null) { 33119 throw new IllegalArgumentException(); 33120 } 33121 33122 switch (field) { 33123 case IO: 33124 return isSetIo(); 33125 case IA: 33126 return isSetIa(); 33127 } 33128 throw new IllegalStateException(); 33129 } 33130 33131 @Override 33132 public boolean equals(Object that) { 33133 if (that == null) 33134 return false; 33135 if (that instanceof mutateRowsTs_result) 33136 return this.equals((mutateRowsTs_result)that); 33137 return false; 33138 } 33139 33140 public boolean equals(mutateRowsTs_result that) { 33141 if (that == null) 33142 return false; 33143 33144 boolean this_present_io = true && this.isSetIo(); 33145 boolean that_present_io = true && that.isSetIo(); 33146 if (this_present_io || that_present_io) { 33147 if (!(this_present_io && that_present_io)) 33148 return false; 33149 if (!this.io.equals(that.io)) 33150 return false; 33151 } 33152 33153 boolean this_present_ia = true && this.isSetIa(); 33154 boolean that_present_ia = true && that.isSetIa(); 33155 if (this_present_ia || that_present_ia) { 33156 if (!(this_present_ia && that_present_ia)) 33157 return false; 33158 if (!this.ia.equals(that.ia)) 33159 return false; 33160 } 33161 33162 return true; 33163 } 33164 33165 @Override 33166 public int hashCode() { 33167 HashCodeBuilder builder = new HashCodeBuilder(); 33168 33169 boolean present_io = true && (isSetIo()); 33170 builder.append(present_io); 33171 if (present_io) 33172 builder.append(io); 33173 33174 boolean present_ia = true && (isSetIa()); 33175 builder.append(present_ia); 33176 if (present_ia) 33177 builder.append(ia); 33178 33179 return builder.toHashCode(); 33180 } 33181 33182 public int compareTo(mutateRowsTs_result other) { 33183 if (!getClass().equals(other.getClass())) { 33184 return getClass().getName().compareTo(other.getClass().getName()); 33185 } 33186 33187 int lastComparison = 0; 33188 mutateRowsTs_result typedOther = (mutateRowsTs_result)other; 33189 33190 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 33191 if (lastComparison != 0) { 33192 return lastComparison; 33193 } 33194 if (isSetIo()) { 33195 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 33196 if (lastComparison != 0) { 33197 return lastComparison; 33198 } 33199 } 33200 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 33201 if (lastComparison != 0) { 33202 return lastComparison; 33203 } 33204 if (isSetIa()) { 33205 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 33206 if (lastComparison != 0) { 33207 return lastComparison; 33208 } 33209 } 33210 return 0; 33211 } 33212 33213 public _Fields fieldForId(int fieldId) { 33214 return _Fields.findByThriftId(fieldId); 33215 } 33216 33217 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 33218 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 33219 } 33220 33221 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 33222 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 33223 } 33224 33225 @Override 33226 public String toString() { 33227 StringBuilder sb = new StringBuilder("mutateRowsTs_result("); 33228 boolean first = true; 33229 33230 sb.append("io:"); 33231 if (this.io == null) { 33232 sb.append("null"); 33233 } else { 33234 sb.append(this.io); 33235 } 33236 first = false; 33237 if (!first) sb.append(", "); 33238 sb.append("ia:"); 33239 if (this.ia == null) { 33240 sb.append("null"); 33241 } else { 33242 sb.append(this.ia); 33243 } 33244 first = false; 33245 sb.append(")"); 33246 return sb.toString(); 33247 } 33248 33249 public void validate() throws org.apache.thrift.TException { 33250 // check for required fields 33251 } 33252 33253 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 33254 try { 33255 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 33256 } catch (org.apache.thrift.TException te) { 33257 throw new java.io.IOException(te); 33258 } 33259 } 33260 33261 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 33262 try { 33263 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 33264 } catch (org.apache.thrift.TException te) { 33265 throw new java.io.IOException(te); 33266 } 33267 } 33268 33269 private static class mutateRowsTs_resultStandardSchemeFactory implements SchemeFactory { 33270 public mutateRowsTs_resultStandardScheme getScheme() { 33271 return new mutateRowsTs_resultStandardScheme(); 33272 } 33273 } 33274 33275 private static class mutateRowsTs_resultStandardScheme extends StandardScheme<mutateRowsTs_result> { 33276 33277 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_result struct) throws org.apache.thrift.TException { 33278 org.apache.thrift.protocol.TField schemeField; 33279 iprot.readStructBegin(); 33280 while (true) 33281 { 33282 schemeField = iprot.readFieldBegin(); 33283 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 33284 break; 33285 } 33286 switch (schemeField.id) { 33287 case 1: // IO 33288 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 33289 struct.io = new IOError(); 33290 struct.io.read(iprot); 33291 struct.setIoIsSet(true); 33292 } else { 33293 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 33294 } 33295 break; 33296 case 2: // IA 33297 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 33298 struct.ia = new IllegalArgument(); 33299 struct.ia.read(iprot); 33300 struct.setIaIsSet(true); 33301 } else { 33302 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 33303 } 33304 break; 33305 default: 33306 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 33307 } 33308 iprot.readFieldEnd(); 33309 } 33310 iprot.readStructEnd(); 33311 33312 // check for required fields of primitive type, which can't be checked in the validate method 33313 struct.validate(); 33314 } 33315 33316 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_result struct) throws org.apache.thrift.TException { 33317 struct.validate(); 33318 33319 oprot.writeStructBegin(STRUCT_DESC); 33320 if (struct.io != null) { 33321 oprot.writeFieldBegin(IO_FIELD_DESC); 33322 struct.io.write(oprot); 33323 oprot.writeFieldEnd(); 33324 } 33325 if (struct.ia != null) { 33326 oprot.writeFieldBegin(IA_FIELD_DESC); 33327 struct.ia.write(oprot); 33328 oprot.writeFieldEnd(); 33329 } 33330 oprot.writeFieldStop(); 33331 oprot.writeStructEnd(); 33332 } 33333 33334 } 33335 33336 private static class mutateRowsTs_resultTupleSchemeFactory implements SchemeFactory { 33337 public mutateRowsTs_resultTupleScheme getScheme() { 33338 return new mutateRowsTs_resultTupleScheme(); 33339 } 33340 } 33341 33342 private static class mutateRowsTs_resultTupleScheme extends TupleScheme<mutateRowsTs_result> { 33343 33344 @Override 33345 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException { 33346 TTupleProtocol oprot = (TTupleProtocol) prot; 33347 BitSet optionals = new BitSet(); 33348 if (struct.isSetIo()) { 33349 optionals.set(0); 33350 } 33351 if (struct.isSetIa()) { 33352 optionals.set(1); 33353 } 33354 oprot.writeBitSet(optionals, 2); 33355 if (struct.isSetIo()) { 33356 struct.io.write(oprot); 33357 } 33358 if (struct.isSetIa()) { 33359 struct.ia.write(oprot); 33360 } 33361 } 33362 33363 @Override 33364 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException { 33365 TTupleProtocol iprot = (TTupleProtocol) prot; 33366 BitSet incoming = iprot.readBitSet(2); 33367 if (incoming.get(0)) { 33368 struct.io = new IOError(); 33369 struct.io.read(iprot); 33370 struct.setIoIsSet(true); 33371 } 33372 if (incoming.get(1)) { 33373 struct.ia = new IllegalArgument(); 33374 struct.ia.read(iprot); 33375 struct.setIaIsSet(true); 33376 } 33377 } 33378 } 33379 33380 } 33381 33382 public static class atomicIncrement_args implements org.apache.thrift.TBase<atomicIncrement_args, atomicIncrement_args._Fields>, java.io.Serializable, Cloneable { 33383 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_args"); 33384 33385 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 33386 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 33387 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 33388 private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)4); 33389 33390 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 33391 static { 33392 schemes.put(StandardScheme.class, new atomicIncrement_argsStandardSchemeFactory()); 33393 schemes.put(TupleScheme.class, new atomicIncrement_argsTupleSchemeFactory()); 33394 } 33395 33396 /** 33397 * name of table 33398 */ 33399 public ByteBuffer tableName; // required 33400 /** 33401 * row to increment 33402 */ 33403 public ByteBuffer row; // required 33404 /** 33405 * name of column 33406 */ 33407 public ByteBuffer column; // required 33408 /** 33409 * amount to increment by 33410 */ 33411 public long value; // required 33412 33413 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 33414 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 33415 /** 33416 * name of table 33417 */ 33418 TABLE_NAME((short)1, "tableName"), 33419 /** 33420 * row to increment 33421 */ 33422 ROW((short)2, "row"), 33423 /** 33424 * name of column 33425 */ 33426 COLUMN((short)3, "column"), 33427 /** 33428 * amount to increment by 33429 */ 33430 VALUE((short)4, "value"); 33431 33432 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 33433 33434 static { 33435 for (_Fields field : EnumSet.allOf(_Fields.class)) { 33436 byName.put(field.getFieldName(), field); 33437 } 33438 } 33439 33440 /** 33441 * Find the _Fields constant that matches fieldId, or null if its not found. 33442 */ 33443 public static _Fields findByThriftId(int fieldId) { 33444 switch(fieldId) { 33445 case 1: // TABLE_NAME 33446 return TABLE_NAME; 33447 case 2: // ROW 33448 return ROW; 33449 case 3: // COLUMN 33450 return COLUMN; 33451 case 4: // VALUE 33452 return VALUE; 33453 default: 33454 return null; 33455 } 33456 } 33457 33458 /** 33459 * Find the _Fields constant that matches fieldId, throwing an exception 33460 * if it is not found. 33461 */ 33462 public static _Fields findByThriftIdOrThrow(int fieldId) { 33463 _Fields fields = findByThriftId(fieldId); 33464 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 33465 return fields; 33466 } 33467 33468 /** 33469 * Find the _Fields constant that matches name, or null if its not found. 33470 */ 33471 public static _Fields findByName(String name) { 33472 return byName.get(name); 33473 } 33474 33475 private final short _thriftId; 33476 private final String _fieldName; 33477 33478 _Fields(short thriftId, String fieldName) { 33479 _thriftId = thriftId; 33480 _fieldName = fieldName; 33481 } 33482 33483 public short getThriftFieldId() { 33484 return _thriftId; 33485 } 33486 33487 public String getFieldName() { 33488 return _fieldName; 33489 } 33490 } 33491 33492 // isset id assignments 33493 private static final int __VALUE_ISSET_ID = 0; 33494 private BitSet __isset_bit_vector = new BitSet(1); 33495 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 33496 static { 33497 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 33498 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 33499 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 33500 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 33501 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 33502 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 33503 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 33504 tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT, 33505 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 33506 metaDataMap = Collections.unmodifiableMap(tmpMap); 33507 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_args.class, metaDataMap); 33508 } 33509 33510 public atomicIncrement_args() { 33511 } 33512 33513 public atomicIncrement_args( 33514 ByteBuffer tableName, 33515 ByteBuffer row, 33516 ByteBuffer column, 33517 long value) 33518 { 33519 this(); 33520 this.tableName = tableName; 33521 this.row = row; 33522 this.column = column; 33523 this.value = value; 33524 setValueIsSet(true); 33525 } 33526 33527 /** 33528 * Performs a deep copy on <i>other</i>. 33529 */ 33530 public atomicIncrement_args(atomicIncrement_args other) { 33531 __isset_bit_vector.clear(); 33532 __isset_bit_vector.or(other.__isset_bit_vector); 33533 if (other.isSetTableName()) { 33534 this.tableName = other.tableName; 33535 } 33536 if (other.isSetRow()) { 33537 this.row = other.row; 33538 } 33539 if (other.isSetColumn()) { 33540 this.column = other.column; 33541 } 33542 this.value = other.value; 33543 } 33544 33545 public atomicIncrement_args deepCopy() { 33546 return new atomicIncrement_args(this); 33547 } 33548 33549 @Override 33550 public void clear() { 33551 this.tableName = null; 33552 this.row = null; 33553 this.column = null; 33554 setValueIsSet(false); 33555 this.value = 0; 33556 } 33557 33558 /** 33559 * name of table 33560 */ 33561 public byte[] getTableName() { 33562 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 33563 return tableName == null ? null : tableName.array(); 33564 } 33565 33566 public ByteBuffer bufferForTableName() { 33567 return tableName; 33568 } 33569 33570 /** 33571 * name of table 33572 */ 33573 public atomicIncrement_args setTableName(byte[] tableName) { 33574 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 33575 return this; 33576 } 33577 33578 public atomicIncrement_args setTableName(ByteBuffer tableName) { 33579 this.tableName = tableName; 33580 return this; 33581 } 33582 33583 public void unsetTableName() { 33584 this.tableName = null; 33585 } 33586 33587 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 33588 public boolean isSetTableName() { 33589 return this.tableName != null; 33590 } 33591 33592 public void setTableNameIsSet(boolean value) { 33593 if (!value) { 33594 this.tableName = null; 33595 } 33596 } 33597 33598 /** 33599 * row to increment 33600 */ 33601 public byte[] getRow() { 33602 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 33603 return row == null ? null : row.array(); 33604 } 33605 33606 public ByteBuffer bufferForRow() { 33607 return row; 33608 } 33609 33610 /** 33611 * row to increment 33612 */ 33613 public atomicIncrement_args setRow(byte[] row) { 33614 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 33615 return this; 33616 } 33617 33618 public atomicIncrement_args setRow(ByteBuffer row) { 33619 this.row = row; 33620 return this; 33621 } 33622 33623 public void unsetRow() { 33624 this.row = null; 33625 } 33626 33627 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 33628 public boolean isSetRow() { 33629 return this.row != null; 33630 } 33631 33632 public void setRowIsSet(boolean value) { 33633 if (!value) { 33634 this.row = null; 33635 } 33636 } 33637 33638 /** 33639 * name of column 33640 */ 33641 public byte[] getColumn() { 33642 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 33643 return column == null ? null : column.array(); 33644 } 33645 33646 public ByteBuffer bufferForColumn() { 33647 return column; 33648 } 33649 33650 /** 33651 * name of column 33652 */ 33653 public atomicIncrement_args setColumn(byte[] column) { 33654 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 33655 return this; 33656 } 33657 33658 public atomicIncrement_args setColumn(ByteBuffer column) { 33659 this.column = column; 33660 return this; 33661 } 33662 33663 public void unsetColumn() { 33664 this.column = null; 33665 } 33666 33667 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 33668 public boolean isSetColumn() { 33669 return this.column != null; 33670 } 33671 33672 public void setColumnIsSet(boolean value) { 33673 if (!value) { 33674 this.column = null; 33675 } 33676 } 33677 33678 /** 33679 * amount to increment by 33680 */ 33681 public long getValue() { 33682 return this.value; 33683 } 33684 33685 /** 33686 * amount to increment by 33687 */ 33688 public atomicIncrement_args setValue(long value) { 33689 this.value = value; 33690 setValueIsSet(true); 33691 return this; 33692 } 33693 33694 public void unsetValue() { 33695 __isset_bit_vector.clear(__VALUE_ISSET_ID); 33696 } 33697 33698 /** Returns true if field value is set (has been assigned a value) and false otherwise */ 33699 public boolean isSetValue() { 33700 return __isset_bit_vector.get(__VALUE_ISSET_ID); 33701 } 33702 33703 public void setValueIsSet(boolean value) { 33704 __isset_bit_vector.set(__VALUE_ISSET_ID, value); 33705 } 33706 33707 public void setFieldValue(_Fields field, Object value) { 33708 switch (field) { 33709 case TABLE_NAME: 33710 if (value == null) { 33711 unsetTableName(); 33712 } else { 33713 setTableName((ByteBuffer)value); 33714 } 33715 break; 33716 33717 case ROW: 33718 if (value == null) { 33719 unsetRow(); 33720 } else { 33721 setRow((ByteBuffer)value); 33722 } 33723 break; 33724 33725 case COLUMN: 33726 if (value == null) { 33727 unsetColumn(); 33728 } else { 33729 setColumn((ByteBuffer)value); 33730 } 33731 break; 33732 33733 case VALUE: 33734 if (value == null) { 33735 unsetValue(); 33736 } else { 33737 setValue((Long)value); 33738 } 33739 break; 33740 33741 } 33742 } 33743 33744 public Object getFieldValue(_Fields field) { 33745 switch (field) { 33746 case TABLE_NAME: 33747 return getTableName(); 33748 33749 case ROW: 33750 return getRow(); 33751 33752 case COLUMN: 33753 return getColumn(); 33754 33755 case VALUE: 33756 return Long.valueOf(getValue()); 33757 33758 } 33759 throw new IllegalStateException(); 33760 } 33761 33762 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 33763 public boolean isSet(_Fields field) { 33764 if (field == null) { 33765 throw new IllegalArgumentException(); 33766 } 33767 33768 switch (field) { 33769 case TABLE_NAME: 33770 return isSetTableName(); 33771 case ROW: 33772 return isSetRow(); 33773 case COLUMN: 33774 return isSetColumn(); 33775 case VALUE: 33776 return isSetValue(); 33777 } 33778 throw new IllegalStateException(); 33779 } 33780 33781 @Override 33782 public boolean equals(Object that) { 33783 if (that == null) 33784 return false; 33785 if (that instanceof atomicIncrement_args) 33786 return this.equals((atomicIncrement_args)that); 33787 return false; 33788 } 33789 33790 public boolean equals(atomicIncrement_args that) { 33791 if (that == null) 33792 return false; 33793 33794 boolean this_present_tableName = true && this.isSetTableName(); 33795 boolean that_present_tableName = true && that.isSetTableName(); 33796 if (this_present_tableName || that_present_tableName) { 33797 if (!(this_present_tableName && that_present_tableName)) 33798 return false; 33799 if (!this.tableName.equals(that.tableName)) 33800 return false; 33801 } 33802 33803 boolean this_present_row = true && this.isSetRow(); 33804 boolean that_present_row = true && that.isSetRow(); 33805 if (this_present_row || that_present_row) { 33806 if (!(this_present_row && that_present_row)) 33807 return false; 33808 if (!this.row.equals(that.row)) 33809 return false; 33810 } 33811 33812 boolean this_present_column = true && this.isSetColumn(); 33813 boolean that_present_column = true && that.isSetColumn(); 33814 if (this_present_column || that_present_column) { 33815 if (!(this_present_column && that_present_column)) 33816 return false; 33817 if (!this.column.equals(that.column)) 33818 return false; 33819 } 33820 33821 boolean this_present_value = true; 33822 boolean that_present_value = true; 33823 if (this_present_value || that_present_value) { 33824 if (!(this_present_value && that_present_value)) 33825 return false; 33826 if (this.value != that.value) 33827 return false; 33828 } 33829 33830 return true; 33831 } 33832 33833 @Override 33834 public int hashCode() { 33835 HashCodeBuilder builder = new HashCodeBuilder(); 33836 33837 boolean present_tableName = true && (isSetTableName()); 33838 builder.append(present_tableName); 33839 if (present_tableName) 33840 builder.append(tableName); 33841 33842 boolean present_row = true && (isSetRow()); 33843 builder.append(present_row); 33844 if (present_row) 33845 builder.append(row); 33846 33847 boolean present_column = true && (isSetColumn()); 33848 builder.append(present_column); 33849 if (present_column) 33850 builder.append(column); 33851 33852 boolean present_value = true; 33853 builder.append(present_value); 33854 if (present_value) 33855 builder.append(value); 33856 33857 return builder.toHashCode(); 33858 } 33859 33860 public int compareTo(atomicIncrement_args other) { 33861 if (!getClass().equals(other.getClass())) { 33862 return getClass().getName().compareTo(other.getClass().getName()); 33863 } 33864 33865 int lastComparison = 0; 33866 atomicIncrement_args typedOther = (atomicIncrement_args)other; 33867 33868 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 33869 if (lastComparison != 0) { 33870 return lastComparison; 33871 } 33872 if (isSetTableName()) { 33873 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 33874 if (lastComparison != 0) { 33875 return lastComparison; 33876 } 33877 } 33878 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 33879 if (lastComparison != 0) { 33880 return lastComparison; 33881 } 33882 if (isSetRow()) { 33883 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 33884 if (lastComparison != 0) { 33885 return lastComparison; 33886 } 33887 } 33888 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 33889 if (lastComparison != 0) { 33890 return lastComparison; 33891 } 33892 if (isSetColumn()) { 33893 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 33894 if (lastComparison != 0) { 33895 return lastComparison; 33896 } 33897 } 33898 lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); 33899 if (lastComparison != 0) { 33900 return lastComparison; 33901 } 33902 if (isSetValue()) { 33903 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); 33904 if (lastComparison != 0) { 33905 return lastComparison; 33906 } 33907 } 33908 return 0; 33909 } 33910 33911 public _Fields fieldForId(int fieldId) { 33912 return _Fields.findByThriftId(fieldId); 33913 } 33914 33915 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 33916 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 33917 } 33918 33919 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 33920 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 33921 } 33922 33923 @Override 33924 public String toString() { 33925 StringBuilder sb = new StringBuilder("atomicIncrement_args("); 33926 boolean first = true; 33927 33928 sb.append("tableName:"); 33929 if (this.tableName == null) { 33930 sb.append("null"); 33931 } else { 33932 sb.append(this.tableName); 33933 } 33934 first = false; 33935 if (!first) sb.append(", "); 33936 sb.append("row:"); 33937 if (this.row == null) { 33938 sb.append("null"); 33939 } else { 33940 sb.append(this.row); 33941 } 33942 first = false; 33943 if (!first) sb.append(", "); 33944 sb.append("column:"); 33945 if (this.column == null) { 33946 sb.append("null"); 33947 } else { 33948 sb.append(this.column); 33949 } 33950 first = false; 33951 if (!first) sb.append(", "); 33952 sb.append("value:"); 33953 sb.append(this.value); 33954 first = false; 33955 sb.append(")"); 33956 return sb.toString(); 33957 } 33958 33959 public void validate() throws org.apache.thrift.TException { 33960 // check for required fields 33961 } 33962 33963 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 33964 try { 33965 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 33966 } catch (org.apache.thrift.TException te) { 33967 throw new java.io.IOException(te); 33968 } 33969 } 33970 33971 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 33972 try { 33973 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 33974 __isset_bit_vector = new BitSet(1); 33975 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 33976 } catch (org.apache.thrift.TException te) { 33977 throw new java.io.IOException(te); 33978 } 33979 } 33980 33981 private static class atomicIncrement_argsStandardSchemeFactory implements SchemeFactory { 33982 public atomicIncrement_argsStandardScheme getScheme() { 33983 return new atomicIncrement_argsStandardScheme(); 33984 } 33985 } 33986 33987 private static class atomicIncrement_argsStandardScheme extends StandardScheme<atomicIncrement_args> { 33988 33989 public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_args struct) throws org.apache.thrift.TException { 33990 org.apache.thrift.protocol.TField schemeField; 33991 iprot.readStructBegin(); 33992 while (true) 33993 { 33994 schemeField = iprot.readFieldBegin(); 33995 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 33996 break; 33997 } 33998 switch (schemeField.id) { 33999 case 1: // TABLE_NAME 34000 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 34001 struct.tableName = iprot.readBinary(); 34002 struct.setTableNameIsSet(true); 34003 } else { 34004 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34005 } 34006 break; 34007 case 2: // ROW 34008 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 34009 struct.row = iprot.readBinary(); 34010 struct.setRowIsSet(true); 34011 } else { 34012 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34013 } 34014 break; 34015 case 3: // COLUMN 34016 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 34017 struct.column = iprot.readBinary(); 34018 struct.setColumnIsSet(true); 34019 } else { 34020 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34021 } 34022 break; 34023 case 4: // VALUE 34024 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 34025 struct.value = iprot.readI64(); 34026 struct.setValueIsSet(true); 34027 } else { 34028 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34029 } 34030 break; 34031 default: 34032 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34033 } 34034 iprot.readFieldEnd(); 34035 } 34036 iprot.readStructEnd(); 34037 34038 // check for required fields of primitive type, which can't be checked in the validate method 34039 struct.validate(); 34040 } 34041 34042 public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_args struct) throws org.apache.thrift.TException { 34043 struct.validate(); 34044 34045 oprot.writeStructBegin(STRUCT_DESC); 34046 if (struct.tableName != null) { 34047 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 34048 oprot.writeBinary(struct.tableName); 34049 oprot.writeFieldEnd(); 34050 } 34051 if (struct.row != null) { 34052 oprot.writeFieldBegin(ROW_FIELD_DESC); 34053 oprot.writeBinary(struct.row); 34054 oprot.writeFieldEnd(); 34055 } 34056 if (struct.column != null) { 34057 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 34058 oprot.writeBinary(struct.column); 34059 oprot.writeFieldEnd(); 34060 } 34061 oprot.writeFieldBegin(VALUE_FIELD_DESC); 34062 oprot.writeI64(struct.value); 34063 oprot.writeFieldEnd(); 34064 oprot.writeFieldStop(); 34065 oprot.writeStructEnd(); 34066 } 34067 34068 } 34069 34070 private static class atomicIncrement_argsTupleSchemeFactory implements SchemeFactory { 34071 public atomicIncrement_argsTupleScheme getScheme() { 34072 return new atomicIncrement_argsTupleScheme(); 34073 } 34074 } 34075 34076 private static class atomicIncrement_argsTupleScheme extends TupleScheme<atomicIncrement_args> { 34077 34078 @Override 34079 public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException { 34080 TTupleProtocol oprot = (TTupleProtocol) prot; 34081 BitSet optionals = new BitSet(); 34082 if (struct.isSetTableName()) { 34083 optionals.set(0); 34084 } 34085 if (struct.isSetRow()) { 34086 optionals.set(1); 34087 } 34088 if (struct.isSetColumn()) { 34089 optionals.set(2); 34090 } 34091 if (struct.isSetValue()) { 34092 optionals.set(3); 34093 } 34094 oprot.writeBitSet(optionals, 4); 34095 if (struct.isSetTableName()) { 34096 oprot.writeBinary(struct.tableName); 34097 } 34098 if (struct.isSetRow()) { 34099 oprot.writeBinary(struct.row); 34100 } 34101 if (struct.isSetColumn()) { 34102 oprot.writeBinary(struct.column); 34103 } 34104 if (struct.isSetValue()) { 34105 oprot.writeI64(struct.value); 34106 } 34107 } 34108 34109 @Override 34110 public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException { 34111 TTupleProtocol iprot = (TTupleProtocol) prot; 34112 BitSet incoming = iprot.readBitSet(4); 34113 if (incoming.get(0)) { 34114 struct.tableName = iprot.readBinary(); 34115 struct.setTableNameIsSet(true); 34116 } 34117 if (incoming.get(1)) { 34118 struct.row = iprot.readBinary(); 34119 struct.setRowIsSet(true); 34120 } 34121 if (incoming.get(2)) { 34122 struct.column = iprot.readBinary(); 34123 struct.setColumnIsSet(true); 34124 } 34125 if (incoming.get(3)) { 34126 struct.value = iprot.readI64(); 34127 struct.setValueIsSet(true); 34128 } 34129 } 34130 } 34131 34132 } 34133 34134 public static class atomicIncrement_result implements org.apache.thrift.TBase<atomicIncrement_result, atomicIncrement_result._Fields>, java.io.Serializable, Cloneable { 34135 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_result"); 34136 34137 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); 34138 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 34139 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 34140 34141 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 34142 static { 34143 schemes.put(StandardScheme.class, new atomicIncrement_resultStandardSchemeFactory()); 34144 schemes.put(TupleScheme.class, new atomicIncrement_resultTupleSchemeFactory()); 34145 } 34146 34147 public long success; // required 34148 public IOError io; // required 34149 public IllegalArgument ia; // required 34150 34151 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 34152 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 34153 SUCCESS((short)0, "success"), 34154 IO((short)1, "io"), 34155 IA((short)2, "ia"); 34156 34157 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 34158 34159 static { 34160 for (_Fields field : EnumSet.allOf(_Fields.class)) { 34161 byName.put(field.getFieldName(), field); 34162 } 34163 } 34164 34165 /** 34166 * Find the _Fields constant that matches fieldId, or null if its not found. 34167 */ 34168 public static _Fields findByThriftId(int fieldId) { 34169 switch(fieldId) { 34170 case 0: // SUCCESS 34171 return SUCCESS; 34172 case 1: // IO 34173 return IO; 34174 case 2: // IA 34175 return IA; 34176 default: 34177 return null; 34178 } 34179 } 34180 34181 /** 34182 * Find the _Fields constant that matches fieldId, throwing an exception 34183 * if it is not found. 34184 */ 34185 public static _Fields findByThriftIdOrThrow(int fieldId) { 34186 _Fields fields = findByThriftId(fieldId); 34187 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 34188 return fields; 34189 } 34190 34191 /** 34192 * Find the _Fields constant that matches name, or null if its not found. 34193 */ 34194 public static _Fields findByName(String name) { 34195 return byName.get(name); 34196 } 34197 34198 private final short _thriftId; 34199 private final String _fieldName; 34200 34201 _Fields(short thriftId, String fieldName) { 34202 _thriftId = thriftId; 34203 _fieldName = fieldName; 34204 } 34205 34206 public short getThriftFieldId() { 34207 return _thriftId; 34208 } 34209 34210 public String getFieldName() { 34211 return _fieldName; 34212 } 34213 } 34214 34215 // isset id assignments 34216 private static final int __SUCCESS_ISSET_ID = 0; 34217 private BitSet __isset_bit_vector = new BitSet(1); 34218 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 34219 static { 34220 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 34221 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 34222 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 34223 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 34224 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 34225 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 34226 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 34227 metaDataMap = Collections.unmodifiableMap(tmpMap); 34228 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_result.class, metaDataMap); 34229 } 34230 34231 public atomicIncrement_result() { 34232 } 34233 34234 public atomicIncrement_result( 34235 long success, 34236 IOError io, 34237 IllegalArgument ia) 34238 { 34239 this(); 34240 this.success = success; 34241 setSuccessIsSet(true); 34242 this.io = io; 34243 this.ia = ia; 34244 } 34245 34246 /** 34247 * Performs a deep copy on <i>other</i>. 34248 */ 34249 public atomicIncrement_result(atomicIncrement_result other) { 34250 __isset_bit_vector.clear(); 34251 __isset_bit_vector.or(other.__isset_bit_vector); 34252 this.success = other.success; 34253 if (other.isSetIo()) { 34254 this.io = new IOError(other.io); 34255 } 34256 if (other.isSetIa()) { 34257 this.ia = new IllegalArgument(other.ia); 34258 } 34259 } 34260 34261 public atomicIncrement_result deepCopy() { 34262 return new atomicIncrement_result(this); 34263 } 34264 34265 @Override 34266 public void clear() { 34267 setSuccessIsSet(false); 34268 this.success = 0; 34269 this.io = null; 34270 this.ia = null; 34271 } 34272 34273 public long getSuccess() { 34274 return this.success; 34275 } 34276 34277 public atomicIncrement_result setSuccess(long success) { 34278 this.success = success; 34279 setSuccessIsSet(true); 34280 return this; 34281 } 34282 34283 public void unsetSuccess() { 34284 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 34285 } 34286 34287 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 34288 public boolean isSetSuccess() { 34289 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 34290 } 34291 34292 public void setSuccessIsSet(boolean value) { 34293 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 34294 } 34295 34296 public IOError getIo() { 34297 return this.io; 34298 } 34299 34300 public atomicIncrement_result setIo(IOError io) { 34301 this.io = io; 34302 return this; 34303 } 34304 34305 public void unsetIo() { 34306 this.io = null; 34307 } 34308 34309 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 34310 public boolean isSetIo() { 34311 return this.io != null; 34312 } 34313 34314 public void setIoIsSet(boolean value) { 34315 if (!value) { 34316 this.io = null; 34317 } 34318 } 34319 34320 public IllegalArgument getIa() { 34321 return this.ia; 34322 } 34323 34324 public atomicIncrement_result setIa(IllegalArgument ia) { 34325 this.ia = ia; 34326 return this; 34327 } 34328 34329 public void unsetIa() { 34330 this.ia = null; 34331 } 34332 34333 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 34334 public boolean isSetIa() { 34335 return this.ia != null; 34336 } 34337 34338 public void setIaIsSet(boolean value) { 34339 if (!value) { 34340 this.ia = null; 34341 } 34342 } 34343 34344 public void setFieldValue(_Fields field, Object value) { 34345 switch (field) { 34346 case SUCCESS: 34347 if (value == null) { 34348 unsetSuccess(); 34349 } else { 34350 setSuccess((Long)value); 34351 } 34352 break; 34353 34354 case IO: 34355 if (value == null) { 34356 unsetIo(); 34357 } else { 34358 setIo((IOError)value); 34359 } 34360 break; 34361 34362 case IA: 34363 if (value == null) { 34364 unsetIa(); 34365 } else { 34366 setIa((IllegalArgument)value); 34367 } 34368 break; 34369 34370 } 34371 } 34372 34373 public Object getFieldValue(_Fields field) { 34374 switch (field) { 34375 case SUCCESS: 34376 return Long.valueOf(getSuccess()); 34377 34378 case IO: 34379 return getIo(); 34380 34381 case IA: 34382 return getIa(); 34383 34384 } 34385 throw new IllegalStateException(); 34386 } 34387 34388 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 34389 public boolean isSet(_Fields field) { 34390 if (field == null) { 34391 throw new IllegalArgumentException(); 34392 } 34393 34394 switch (field) { 34395 case SUCCESS: 34396 return isSetSuccess(); 34397 case IO: 34398 return isSetIo(); 34399 case IA: 34400 return isSetIa(); 34401 } 34402 throw new IllegalStateException(); 34403 } 34404 34405 @Override 34406 public boolean equals(Object that) { 34407 if (that == null) 34408 return false; 34409 if (that instanceof atomicIncrement_result) 34410 return this.equals((atomicIncrement_result)that); 34411 return false; 34412 } 34413 34414 public boolean equals(atomicIncrement_result that) { 34415 if (that == null) 34416 return false; 34417 34418 boolean this_present_success = true; 34419 boolean that_present_success = true; 34420 if (this_present_success || that_present_success) { 34421 if (!(this_present_success && that_present_success)) 34422 return false; 34423 if (this.success != that.success) 34424 return false; 34425 } 34426 34427 boolean this_present_io = true && this.isSetIo(); 34428 boolean that_present_io = true && that.isSetIo(); 34429 if (this_present_io || that_present_io) { 34430 if (!(this_present_io && that_present_io)) 34431 return false; 34432 if (!this.io.equals(that.io)) 34433 return false; 34434 } 34435 34436 boolean this_present_ia = true && this.isSetIa(); 34437 boolean that_present_ia = true && that.isSetIa(); 34438 if (this_present_ia || that_present_ia) { 34439 if (!(this_present_ia && that_present_ia)) 34440 return false; 34441 if (!this.ia.equals(that.ia)) 34442 return false; 34443 } 34444 34445 return true; 34446 } 34447 34448 @Override 34449 public int hashCode() { 34450 HashCodeBuilder builder = new HashCodeBuilder(); 34451 34452 boolean present_success = true; 34453 builder.append(present_success); 34454 if (present_success) 34455 builder.append(success); 34456 34457 boolean present_io = true && (isSetIo()); 34458 builder.append(present_io); 34459 if (present_io) 34460 builder.append(io); 34461 34462 boolean present_ia = true && (isSetIa()); 34463 builder.append(present_ia); 34464 if (present_ia) 34465 builder.append(ia); 34466 34467 return builder.toHashCode(); 34468 } 34469 34470 public int compareTo(atomicIncrement_result other) { 34471 if (!getClass().equals(other.getClass())) { 34472 return getClass().getName().compareTo(other.getClass().getName()); 34473 } 34474 34475 int lastComparison = 0; 34476 atomicIncrement_result typedOther = (atomicIncrement_result)other; 34477 34478 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 34479 if (lastComparison != 0) { 34480 return lastComparison; 34481 } 34482 if (isSetSuccess()) { 34483 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 34484 if (lastComparison != 0) { 34485 return lastComparison; 34486 } 34487 } 34488 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 34489 if (lastComparison != 0) { 34490 return lastComparison; 34491 } 34492 if (isSetIo()) { 34493 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 34494 if (lastComparison != 0) { 34495 return lastComparison; 34496 } 34497 } 34498 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 34499 if (lastComparison != 0) { 34500 return lastComparison; 34501 } 34502 if (isSetIa()) { 34503 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 34504 if (lastComparison != 0) { 34505 return lastComparison; 34506 } 34507 } 34508 return 0; 34509 } 34510 34511 public _Fields fieldForId(int fieldId) { 34512 return _Fields.findByThriftId(fieldId); 34513 } 34514 34515 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 34516 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 34517 } 34518 34519 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 34520 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 34521 } 34522 34523 @Override 34524 public String toString() { 34525 StringBuilder sb = new StringBuilder("atomicIncrement_result("); 34526 boolean first = true; 34527 34528 sb.append("success:"); 34529 sb.append(this.success); 34530 first = false; 34531 if (!first) sb.append(", "); 34532 sb.append("io:"); 34533 if (this.io == null) { 34534 sb.append("null"); 34535 } else { 34536 sb.append(this.io); 34537 } 34538 first = false; 34539 if (!first) sb.append(", "); 34540 sb.append("ia:"); 34541 if (this.ia == null) { 34542 sb.append("null"); 34543 } else { 34544 sb.append(this.ia); 34545 } 34546 first = false; 34547 sb.append(")"); 34548 return sb.toString(); 34549 } 34550 34551 public void validate() throws org.apache.thrift.TException { 34552 // check for required fields 34553 } 34554 34555 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 34556 try { 34557 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 34558 } catch (org.apache.thrift.TException te) { 34559 throw new java.io.IOException(te); 34560 } 34561 } 34562 34563 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 34564 try { 34565 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 34566 } catch (org.apache.thrift.TException te) { 34567 throw new java.io.IOException(te); 34568 } 34569 } 34570 34571 private static class atomicIncrement_resultStandardSchemeFactory implements SchemeFactory { 34572 public atomicIncrement_resultStandardScheme getScheme() { 34573 return new atomicIncrement_resultStandardScheme(); 34574 } 34575 } 34576 34577 private static class atomicIncrement_resultStandardScheme extends StandardScheme<atomicIncrement_result> { 34578 34579 public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_result struct) throws org.apache.thrift.TException { 34580 org.apache.thrift.protocol.TField schemeField; 34581 iprot.readStructBegin(); 34582 while (true) 34583 { 34584 schemeField = iprot.readFieldBegin(); 34585 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 34586 break; 34587 } 34588 switch (schemeField.id) { 34589 case 0: // SUCCESS 34590 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 34591 struct.success = iprot.readI64(); 34592 struct.setSuccessIsSet(true); 34593 } else { 34594 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34595 } 34596 break; 34597 case 1: // IO 34598 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 34599 struct.io = new IOError(); 34600 struct.io.read(iprot); 34601 struct.setIoIsSet(true); 34602 } else { 34603 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34604 } 34605 break; 34606 case 2: // IA 34607 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 34608 struct.ia = new IllegalArgument(); 34609 struct.ia.read(iprot); 34610 struct.setIaIsSet(true); 34611 } else { 34612 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34613 } 34614 break; 34615 default: 34616 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 34617 } 34618 iprot.readFieldEnd(); 34619 } 34620 iprot.readStructEnd(); 34621 34622 // check for required fields of primitive type, which can't be checked in the validate method 34623 struct.validate(); 34624 } 34625 34626 public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_result struct) throws org.apache.thrift.TException { 34627 struct.validate(); 34628 34629 oprot.writeStructBegin(STRUCT_DESC); 34630 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 34631 oprot.writeI64(struct.success); 34632 oprot.writeFieldEnd(); 34633 if (struct.io != null) { 34634 oprot.writeFieldBegin(IO_FIELD_DESC); 34635 struct.io.write(oprot); 34636 oprot.writeFieldEnd(); 34637 } 34638 if (struct.ia != null) { 34639 oprot.writeFieldBegin(IA_FIELD_DESC); 34640 struct.ia.write(oprot); 34641 oprot.writeFieldEnd(); 34642 } 34643 oprot.writeFieldStop(); 34644 oprot.writeStructEnd(); 34645 } 34646 34647 } 34648 34649 private static class atomicIncrement_resultTupleSchemeFactory implements SchemeFactory { 34650 public atomicIncrement_resultTupleScheme getScheme() { 34651 return new atomicIncrement_resultTupleScheme(); 34652 } 34653 } 34654 34655 private static class atomicIncrement_resultTupleScheme extends TupleScheme<atomicIncrement_result> { 34656 34657 @Override 34658 public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException { 34659 TTupleProtocol oprot = (TTupleProtocol) prot; 34660 BitSet optionals = new BitSet(); 34661 if (struct.isSetSuccess()) { 34662 optionals.set(0); 34663 } 34664 if (struct.isSetIo()) { 34665 optionals.set(1); 34666 } 34667 if (struct.isSetIa()) { 34668 optionals.set(2); 34669 } 34670 oprot.writeBitSet(optionals, 3); 34671 if (struct.isSetSuccess()) { 34672 oprot.writeI64(struct.success); 34673 } 34674 if (struct.isSetIo()) { 34675 struct.io.write(oprot); 34676 } 34677 if (struct.isSetIa()) { 34678 struct.ia.write(oprot); 34679 } 34680 } 34681 34682 @Override 34683 public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException { 34684 TTupleProtocol iprot = (TTupleProtocol) prot; 34685 BitSet incoming = iprot.readBitSet(3); 34686 if (incoming.get(0)) { 34687 struct.success = iprot.readI64(); 34688 struct.setSuccessIsSet(true); 34689 } 34690 if (incoming.get(1)) { 34691 struct.io = new IOError(); 34692 struct.io.read(iprot); 34693 struct.setIoIsSet(true); 34694 } 34695 if (incoming.get(2)) { 34696 struct.ia = new IllegalArgument(); 34697 struct.ia.read(iprot); 34698 struct.setIaIsSet(true); 34699 } 34700 } 34701 } 34702 34703 } 34704 34705 public static class deleteAll_args implements org.apache.thrift.TBase<deleteAll_args, deleteAll_args._Fields>, java.io.Serializable, Cloneable { 34706 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_args"); 34707 34708 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 34709 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 34710 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 34711 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 34712 34713 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 34714 static { 34715 schemes.put(StandardScheme.class, new deleteAll_argsStandardSchemeFactory()); 34716 schemes.put(TupleScheme.class, new deleteAll_argsTupleSchemeFactory()); 34717 } 34718 34719 /** 34720 * name of table 34721 */ 34722 public ByteBuffer tableName; // required 34723 /** 34724 * Row to update 34725 */ 34726 public ByteBuffer row; // required 34727 /** 34728 * name of column whose value is to be deleted 34729 */ 34730 public ByteBuffer column; // required 34731 /** 34732 * Delete attributes 34733 */ 34734 public Map<ByteBuffer,ByteBuffer> attributes; // required 34735 34736 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 34737 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 34738 /** 34739 * name of table 34740 */ 34741 TABLE_NAME((short)1, "tableName"), 34742 /** 34743 * Row to update 34744 */ 34745 ROW((short)2, "row"), 34746 /** 34747 * name of column whose value is to be deleted 34748 */ 34749 COLUMN((short)3, "column"), 34750 /** 34751 * Delete attributes 34752 */ 34753 ATTRIBUTES((short)4, "attributes"); 34754 34755 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 34756 34757 static { 34758 for (_Fields field : EnumSet.allOf(_Fields.class)) { 34759 byName.put(field.getFieldName(), field); 34760 } 34761 } 34762 34763 /** 34764 * Find the _Fields constant that matches fieldId, or null if its not found. 34765 */ 34766 public static _Fields findByThriftId(int fieldId) { 34767 switch(fieldId) { 34768 case 1: // TABLE_NAME 34769 return TABLE_NAME; 34770 case 2: // ROW 34771 return ROW; 34772 case 3: // COLUMN 34773 return COLUMN; 34774 case 4: // ATTRIBUTES 34775 return ATTRIBUTES; 34776 default: 34777 return null; 34778 } 34779 } 34780 34781 /** 34782 * Find the _Fields constant that matches fieldId, throwing an exception 34783 * if it is not found. 34784 */ 34785 public static _Fields findByThriftIdOrThrow(int fieldId) { 34786 _Fields fields = findByThriftId(fieldId); 34787 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 34788 return fields; 34789 } 34790 34791 /** 34792 * Find the _Fields constant that matches name, or null if its not found. 34793 */ 34794 public static _Fields findByName(String name) { 34795 return byName.get(name); 34796 } 34797 34798 private final short _thriftId; 34799 private final String _fieldName; 34800 34801 _Fields(short thriftId, String fieldName) { 34802 _thriftId = thriftId; 34803 _fieldName = fieldName; 34804 } 34805 34806 public short getThriftFieldId() { 34807 return _thriftId; 34808 } 34809 34810 public String getFieldName() { 34811 return _fieldName; 34812 } 34813 } 34814 34815 // isset id assignments 34816 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 34817 static { 34818 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 34819 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 34820 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 34821 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 34822 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 34823 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 34824 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 34825 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 34826 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 34827 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 34828 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 34829 metaDataMap = Collections.unmodifiableMap(tmpMap); 34830 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_args.class, metaDataMap); 34831 } 34832 34833 public deleteAll_args() { 34834 } 34835 34836 public deleteAll_args( 34837 ByteBuffer tableName, 34838 ByteBuffer row, 34839 ByteBuffer column, 34840 Map<ByteBuffer,ByteBuffer> attributes) 34841 { 34842 this(); 34843 this.tableName = tableName; 34844 this.row = row; 34845 this.column = column; 34846 this.attributes = attributes; 34847 } 34848 34849 /** 34850 * Performs a deep copy on <i>other</i>. 34851 */ 34852 public deleteAll_args(deleteAll_args other) { 34853 if (other.isSetTableName()) { 34854 this.tableName = other.tableName; 34855 } 34856 if (other.isSetRow()) { 34857 this.row = other.row; 34858 } 34859 if (other.isSetColumn()) { 34860 this.column = other.column; 34861 } 34862 if (other.isSetAttributes()) { 34863 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 34864 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 34865 34866 ByteBuffer other_element_key = other_element.getKey(); 34867 ByteBuffer other_element_value = other_element.getValue(); 34868 34869 ByteBuffer __this__attributes_copy_key = other_element_key; 34870 34871 ByteBuffer __this__attributes_copy_value = other_element_value; 34872 34873 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 34874 } 34875 this.attributes = __this__attributes; 34876 } 34877 } 34878 34879 public deleteAll_args deepCopy() { 34880 return new deleteAll_args(this); 34881 } 34882 34883 @Override 34884 public void clear() { 34885 this.tableName = null; 34886 this.row = null; 34887 this.column = null; 34888 this.attributes = null; 34889 } 34890 34891 /** 34892 * name of table 34893 */ 34894 public byte[] getTableName() { 34895 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 34896 return tableName == null ? null : tableName.array(); 34897 } 34898 34899 public ByteBuffer bufferForTableName() { 34900 return tableName; 34901 } 34902 34903 /** 34904 * name of table 34905 */ 34906 public deleteAll_args setTableName(byte[] tableName) { 34907 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 34908 return this; 34909 } 34910 34911 public deleteAll_args setTableName(ByteBuffer tableName) { 34912 this.tableName = tableName; 34913 return this; 34914 } 34915 34916 public void unsetTableName() { 34917 this.tableName = null; 34918 } 34919 34920 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 34921 public boolean isSetTableName() { 34922 return this.tableName != null; 34923 } 34924 34925 public void setTableNameIsSet(boolean value) { 34926 if (!value) { 34927 this.tableName = null; 34928 } 34929 } 34930 34931 /** 34932 * Row to update 34933 */ 34934 public byte[] getRow() { 34935 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 34936 return row == null ? null : row.array(); 34937 } 34938 34939 public ByteBuffer bufferForRow() { 34940 return row; 34941 } 34942 34943 /** 34944 * Row to update 34945 */ 34946 public deleteAll_args setRow(byte[] row) { 34947 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 34948 return this; 34949 } 34950 34951 public deleteAll_args setRow(ByteBuffer row) { 34952 this.row = row; 34953 return this; 34954 } 34955 34956 public void unsetRow() { 34957 this.row = null; 34958 } 34959 34960 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 34961 public boolean isSetRow() { 34962 return this.row != null; 34963 } 34964 34965 public void setRowIsSet(boolean value) { 34966 if (!value) { 34967 this.row = null; 34968 } 34969 } 34970 34971 /** 34972 * name of column whose value is to be deleted 34973 */ 34974 public byte[] getColumn() { 34975 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 34976 return column == null ? null : column.array(); 34977 } 34978 34979 public ByteBuffer bufferForColumn() { 34980 return column; 34981 } 34982 34983 /** 34984 * name of column whose value is to be deleted 34985 */ 34986 public deleteAll_args setColumn(byte[] column) { 34987 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 34988 return this; 34989 } 34990 34991 public deleteAll_args setColumn(ByteBuffer column) { 34992 this.column = column; 34993 return this; 34994 } 34995 34996 public void unsetColumn() { 34997 this.column = null; 34998 } 34999 35000 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 35001 public boolean isSetColumn() { 35002 return this.column != null; 35003 } 35004 35005 public void setColumnIsSet(boolean value) { 35006 if (!value) { 35007 this.column = null; 35008 } 35009 } 35010 35011 public int getAttributesSize() { 35012 return (this.attributes == null) ? 0 : this.attributes.size(); 35013 } 35014 35015 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 35016 if (this.attributes == null) { 35017 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 35018 } 35019 this.attributes.put(key, val); 35020 } 35021 35022 /** 35023 * Delete attributes 35024 */ 35025 public Map<ByteBuffer,ByteBuffer> getAttributes() { 35026 return this.attributes; 35027 } 35028 35029 /** 35030 * Delete attributes 35031 */ 35032 public deleteAll_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 35033 this.attributes = attributes; 35034 return this; 35035 } 35036 35037 public void unsetAttributes() { 35038 this.attributes = null; 35039 } 35040 35041 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 35042 public boolean isSetAttributes() { 35043 return this.attributes != null; 35044 } 35045 35046 public void setAttributesIsSet(boolean value) { 35047 if (!value) { 35048 this.attributes = null; 35049 } 35050 } 35051 35052 public void setFieldValue(_Fields field, Object value) { 35053 switch (field) { 35054 case TABLE_NAME: 35055 if (value == null) { 35056 unsetTableName(); 35057 } else { 35058 setTableName((ByteBuffer)value); 35059 } 35060 break; 35061 35062 case ROW: 35063 if (value == null) { 35064 unsetRow(); 35065 } else { 35066 setRow((ByteBuffer)value); 35067 } 35068 break; 35069 35070 case COLUMN: 35071 if (value == null) { 35072 unsetColumn(); 35073 } else { 35074 setColumn((ByteBuffer)value); 35075 } 35076 break; 35077 35078 case ATTRIBUTES: 35079 if (value == null) { 35080 unsetAttributes(); 35081 } else { 35082 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 35083 } 35084 break; 35085 35086 } 35087 } 35088 35089 public Object getFieldValue(_Fields field) { 35090 switch (field) { 35091 case TABLE_NAME: 35092 return getTableName(); 35093 35094 case ROW: 35095 return getRow(); 35096 35097 case COLUMN: 35098 return getColumn(); 35099 35100 case ATTRIBUTES: 35101 return getAttributes(); 35102 35103 } 35104 throw new IllegalStateException(); 35105 } 35106 35107 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 35108 public boolean isSet(_Fields field) { 35109 if (field == null) { 35110 throw new IllegalArgumentException(); 35111 } 35112 35113 switch (field) { 35114 case TABLE_NAME: 35115 return isSetTableName(); 35116 case ROW: 35117 return isSetRow(); 35118 case COLUMN: 35119 return isSetColumn(); 35120 case ATTRIBUTES: 35121 return isSetAttributes(); 35122 } 35123 throw new IllegalStateException(); 35124 } 35125 35126 @Override 35127 public boolean equals(Object that) { 35128 if (that == null) 35129 return false; 35130 if (that instanceof deleteAll_args) 35131 return this.equals((deleteAll_args)that); 35132 return false; 35133 } 35134 35135 public boolean equals(deleteAll_args that) { 35136 if (that == null) 35137 return false; 35138 35139 boolean this_present_tableName = true && this.isSetTableName(); 35140 boolean that_present_tableName = true && that.isSetTableName(); 35141 if (this_present_tableName || that_present_tableName) { 35142 if (!(this_present_tableName && that_present_tableName)) 35143 return false; 35144 if (!this.tableName.equals(that.tableName)) 35145 return false; 35146 } 35147 35148 boolean this_present_row = true && this.isSetRow(); 35149 boolean that_present_row = true && that.isSetRow(); 35150 if (this_present_row || that_present_row) { 35151 if (!(this_present_row && that_present_row)) 35152 return false; 35153 if (!this.row.equals(that.row)) 35154 return false; 35155 } 35156 35157 boolean this_present_column = true && this.isSetColumn(); 35158 boolean that_present_column = true && that.isSetColumn(); 35159 if (this_present_column || that_present_column) { 35160 if (!(this_present_column && that_present_column)) 35161 return false; 35162 if (!this.column.equals(that.column)) 35163 return false; 35164 } 35165 35166 boolean this_present_attributes = true && this.isSetAttributes(); 35167 boolean that_present_attributes = true && that.isSetAttributes(); 35168 if (this_present_attributes || that_present_attributes) { 35169 if (!(this_present_attributes && that_present_attributes)) 35170 return false; 35171 if (!this.attributes.equals(that.attributes)) 35172 return false; 35173 } 35174 35175 return true; 35176 } 35177 35178 @Override 35179 public int hashCode() { 35180 HashCodeBuilder builder = new HashCodeBuilder(); 35181 35182 boolean present_tableName = true && (isSetTableName()); 35183 builder.append(present_tableName); 35184 if (present_tableName) 35185 builder.append(tableName); 35186 35187 boolean present_row = true && (isSetRow()); 35188 builder.append(present_row); 35189 if (present_row) 35190 builder.append(row); 35191 35192 boolean present_column = true && (isSetColumn()); 35193 builder.append(present_column); 35194 if (present_column) 35195 builder.append(column); 35196 35197 boolean present_attributes = true && (isSetAttributes()); 35198 builder.append(present_attributes); 35199 if (present_attributes) 35200 builder.append(attributes); 35201 35202 return builder.toHashCode(); 35203 } 35204 35205 public int compareTo(deleteAll_args other) { 35206 if (!getClass().equals(other.getClass())) { 35207 return getClass().getName().compareTo(other.getClass().getName()); 35208 } 35209 35210 int lastComparison = 0; 35211 deleteAll_args typedOther = (deleteAll_args)other; 35212 35213 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 35214 if (lastComparison != 0) { 35215 return lastComparison; 35216 } 35217 if (isSetTableName()) { 35218 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 35219 if (lastComparison != 0) { 35220 return lastComparison; 35221 } 35222 } 35223 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 35224 if (lastComparison != 0) { 35225 return lastComparison; 35226 } 35227 if (isSetRow()) { 35228 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 35229 if (lastComparison != 0) { 35230 return lastComparison; 35231 } 35232 } 35233 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 35234 if (lastComparison != 0) { 35235 return lastComparison; 35236 } 35237 if (isSetColumn()) { 35238 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 35239 if (lastComparison != 0) { 35240 return lastComparison; 35241 } 35242 } 35243 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 35244 if (lastComparison != 0) { 35245 return lastComparison; 35246 } 35247 if (isSetAttributes()) { 35248 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 35249 if (lastComparison != 0) { 35250 return lastComparison; 35251 } 35252 } 35253 return 0; 35254 } 35255 35256 public _Fields fieldForId(int fieldId) { 35257 return _Fields.findByThriftId(fieldId); 35258 } 35259 35260 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 35261 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 35262 } 35263 35264 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 35265 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 35266 } 35267 35268 @Override 35269 public String toString() { 35270 StringBuilder sb = new StringBuilder("deleteAll_args("); 35271 boolean first = true; 35272 35273 sb.append("tableName:"); 35274 if (this.tableName == null) { 35275 sb.append("null"); 35276 } else { 35277 sb.append(this.tableName); 35278 } 35279 first = false; 35280 if (!first) sb.append(", "); 35281 sb.append("row:"); 35282 if (this.row == null) { 35283 sb.append("null"); 35284 } else { 35285 sb.append(this.row); 35286 } 35287 first = false; 35288 if (!first) sb.append(", "); 35289 sb.append("column:"); 35290 if (this.column == null) { 35291 sb.append("null"); 35292 } else { 35293 sb.append(this.column); 35294 } 35295 first = false; 35296 if (!first) sb.append(", "); 35297 sb.append("attributes:"); 35298 if (this.attributes == null) { 35299 sb.append("null"); 35300 } else { 35301 sb.append(this.attributes); 35302 } 35303 first = false; 35304 sb.append(")"); 35305 return sb.toString(); 35306 } 35307 35308 public void validate() throws org.apache.thrift.TException { 35309 // check for required fields 35310 } 35311 35312 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 35313 try { 35314 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 35315 } catch (org.apache.thrift.TException te) { 35316 throw new java.io.IOException(te); 35317 } 35318 } 35319 35320 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 35321 try { 35322 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 35323 } catch (org.apache.thrift.TException te) { 35324 throw new java.io.IOException(te); 35325 } 35326 } 35327 35328 private static class deleteAll_argsStandardSchemeFactory implements SchemeFactory { 35329 public deleteAll_argsStandardScheme getScheme() { 35330 return new deleteAll_argsStandardScheme(); 35331 } 35332 } 35333 35334 private static class deleteAll_argsStandardScheme extends StandardScheme<deleteAll_args> { 35335 35336 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_args struct) throws org.apache.thrift.TException { 35337 org.apache.thrift.protocol.TField schemeField; 35338 iprot.readStructBegin(); 35339 while (true) 35340 { 35341 schemeField = iprot.readFieldBegin(); 35342 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 35343 break; 35344 } 35345 switch (schemeField.id) { 35346 case 1: // TABLE_NAME 35347 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 35348 struct.tableName = iprot.readBinary(); 35349 struct.setTableNameIsSet(true); 35350 } else { 35351 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35352 } 35353 break; 35354 case 2: // ROW 35355 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 35356 struct.row = iprot.readBinary(); 35357 struct.setRowIsSet(true); 35358 } else { 35359 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35360 } 35361 break; 35362 case 3: // COLUMN 35363 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 35364 struct.column = iprot.readBinary(); 35365 struct.setColumnIsSet(true); 35366 } else { 35367 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35368 } 35369 break; 35370 case 4: // ATTRIBUTES 35371 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 35372 { 35373 org.apache.thrift.protocol.TMap _map402 = iprot.readMapBegin(); 35374 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map402.size); 35375 for (int _i403 = 0; _i403 < _map402.size; ++_i403) 35376 { 35377 ByteBuffer _key404; // required 35378 ByteBuffer _val405; // required 35379 _key404 = iprot.readBinary(); 35380 _val405 = iprot.readBinary(); 35381 struct.attributes.put(_key404, _val405); 35382 } 35383 iprot.readMapEnd(); 35384 } 35385 struct.setAttributesIsSet(true); 35386 } else { 35387 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35388 } 35389 break; 35390 default: 35391 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35392 } 35393 iprot.readFieldEnd(); 35394 } 35395 iprot.readStructEnd(); 35396 35397 // check for required fields of primitive type, which can't be checked in the validate method 35398 struct.validate(); 35399 } 35400 35401 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_args struct) throws org.apache.thrift.TException { 35402 struct.validate(); 35403 35404 oprot.writeStructBegin(STRUCT_DESC); 35405 if (struct.tableName != null) { 35406 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 35407 oprot.writeBinary(struct.tableName); 35408 oprot.writeFieldEnd(); 35409 } 35410 if (struct.row != null) { 35411 oprot.writeFieldBegin(ROW_FIELD_DESC); 35412 oprot.writeBinary(struct.row); 35413 oprot.writeFieldEnd(); 35414 } 35415 if (struct.column != null) { 35416 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 35417 oprot.writeBinary(struct.column); 35418 oprot.writeFieldEnd(); 35419 } 35420 if (struct.attributes != null) { 35421 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 35422 { 35423 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 35424 for (Map.Entry<ByteBuffer, ByteBuffer> _iter406 : struct.attributes.entrySet()) 35425 { 35426 oprot.writeBinary(_iter406.getKey()); 35427 oprot.writeBinary(_iter406.getValue()); 35428 } 35429 oprot.writeMapEnd(); 35430 } 35431 oprot.writeFieldEnd(); 35432 } 35433 oprot.writeFieldStop(); 35434 oprot.writeStructEnd(); 35435 } 35436 35437 } 35438 35439 private static class deleteAll_argsTupleSchemeFactory implements SchemeFactory { 35440 public deleteAll_argsTupleScheme getScheme() { 35441 return new deleteAll_argsTupleScheme(); 35442 } 35443 } 35444 35445 private static class deleteAll_argsTupleScheme extends TupleScheme<deleteAll_args> { 35446 35447 @Override 35448 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException { 35449 TTupleProtocol oprot = (TTupleProtocol) prot; 35450 BitSet optionals = new BitSet(); 35451 if (struct.isSetTableName()) { 35452 optionals.set(0); 35453 } 35454 if (struct.isSetRow()) { 35455 optionals.set(1); 35456 } 35457 if (struct.isSetColumn()) { 35458 optionals.set(2); 35459 } 35460 if (struct.isSetAttributes()) { 35461 optionals.set(3); 35462 } 35463 oprot.writeBitSet(optionals, 4); 35464 if (struct.isSetTableName()) { 35465 oprot.writeBinary(struct.tableName); 35466 } 35467 if (struct.isSetRow()) { 35468 oprot.writeBinary(struct.row); 35469 } 35470 if (struct.isSetColumn()) { 35471 oprot.writeBinary(struct.column); 35472 } 35473 if (struct.isSetAttributes()) { 35474 { 35475 oprot.writeI32(struct.attributes.size()); 35476 for (Map.Entry<ByteBuffer, ByteBuffer> _iter407 : struct.attributes.entrySet()) 35477 { 35478 oprot.writeBinary(_iter407.getKey()); 35479 oprot.writeBinary(_iter407.getValue()); 35480 } 35481 } 35482 } 35483 } 35484 35485 @Override 35486 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException { 35487 TTupleProtocol iprot = (TTupleProtocol) prot; 35488 BitSet incoming = iprot.readBitSet(4); 35489 if (incoming.get(0)) { 35490 struct.tableName = iprot.readBinary(); 35491 struct.setTableNameIsSet(true); 35492 } 35493 if (incoming.get(1)) { 35494 struct.row = iprot.readBinary(); 35495 struct.setRowIsSet(true); 35496 } 35497 if (incoming.get(2)) { 35498 struct.column = iprot.readBinary(); 35499 struct.setColumnIsSet(true); 35500 } 35501 if (incoming.get(3)) { 35502 { 35503 org.apache.thrift.protocol.TMap _map408 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 35504 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map408.size); 35505 for (int _i409 = 0; _i409 < _map408.size; ++_i409) 35506 { 35507 ByteBuffer _key410; // required 35508 ByteBuffer _val411; // required 35509 _key410 = iprot.readBinary(); 35510 _val411 = iprot.readBinary(); 35511 struct.attributes.put(_key410, _val411); 35512 } 35513 } 35514 struct.setAttributesIsSet(true); 35515 } 35516 } 35517 } 35518 35519 } 35520 35521 public static class deleteAll_result implements org.apache.thrift.TBase<deleteAll_result, deleteAll_result._Fields>, java.io.Serializable, Cloneable { 35522 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_result"); 35523 35524 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 35525 35526 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 35527 static { 35528 schemes.put(StandardScheme.class, new deleteAll_resultStandardSchemeFactory()); 35529 schemes.put(TupleScheme.class, new deleteAll_resultTupleSchemeFactory()); 35530 } 35531 35532 public IOError io; // required 35533 35534 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 35535 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 35536 IO((short)1, "io"); 35537 35538 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 35539 35540 static { 35541 for (_Fields field : EnumSet.allOf(_Fields.class)) { 35542 byName.put(field.getFieldName(), field); 35543 } 35544 } 35545 35546 /** 35547 * Find the _Fields constant that matches fieldId, or null if its not found. 35548 */ 35549 public static _Fields findByThriftId(int fieldId) { 35550 switch(fieldId) { 35551 case 1: // IO 35552 return IO; 35553 default: 35554 return null; 35555 } 35556 } 35557 35558 /** 35559 * Find the _Fields constant that matches fieldId, throwing an exception 35560 * if it is not found. 35561 */ 35562 public static _Fields findByThriftIdOrThrow(int fieldId) { 35563 _Fields fields = findByThriftId(fieldId); 35564 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 35565 return fields; 35566 } 35567 35568 /** 35569 * Find the _Fields constant that matches name, or null if its not found. 35570 */ 35571 public static _Fields findByName(String name) { 35572 return byName.get(name); 35573 } 35574 35575 private final short _thriftId; 35576 private final String _fieldName; 35577 35578 _Fields(short thriftId, String fieldName) { 35579 _thriftId = thriftId; 35580 _fieldName = fieldName; 35581 } 35582 35583 public short getThriftFieldId() { 35584 return _thriftId; 35585 } 35586 35587 public String getFieldName() { 35588 return _fieldName; 35589 } 35590 } 35591 35592 // isset id assignments 35593 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 35594 static { 35595 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 35596 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 35597 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 35598 metaDataMap = Collections.unmodifiableMap(tmpMap); 35599 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_result.class, metaDataMap); 35600 } 35601 35602 public deleteAll_result() { 35603 } 35604 35605 public deleteAll_result( 35606 IOError io) 35607 { 35608 this(); 35609 this.io = io; 35610 } 35611 35612 /** 35613 * Performs a deep copy on <i>other</i>. 35614 */ 35615 public deleteAll_result(deleteAll_result other) { 35616 if (other.isSetIo()) { 35617 this.io = new IOError(other.io); 35618 } 35619 } 35620 35621 public deleteAll_result deepCopy() { 35622 return new deleteAll_result(this); 35623 } 35624 35625 @Override 35626 public void clear() { 35627 this.io = null; 35628 } 35629 35630 public IOError getIo() { 35631 return this.io; 35632 } 35633 35634 public deleteAll_result setIo(IOError io) { 35635 this.io = io; 35636 return this; 35637 } 35638 35639 public void unsetIo() { 35640 this.io = null; 35641 } 35642 35643 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 35644 public boolean isSetIo() { 35645 return this.io != null; 35646 } 35647 35648 public void setIoIsSet(boolean value) { 35649 if (!value) { 35650 this.io = null; 35651 } 35652 } 35653 35654 public void setFieldValue(_Fields field, Object value) { 35655 switch (field) { 35656 case IO: 35657 if (value == null) { 35658 unsetIo(); 35659 } else { 35660 setIo((IOError)value); 35661 } 35662 break; 35663 35664 } 35665 } 35666 35667 public Object getFieldValue(_Fields field) { 35668 switch (field) { 35669 case IO: 35670 return getIo(); 35671 35672 } 35673 throw new IllegalStateException(); 35674 } 35675 35676 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 35677 public boolean isSet(_Fields field) { 35678 if (field == null) { 35679 throw new IllegalArgumentException(); 35680 } 35681 35682 switch (field) { 35683 case IO: 35684 return isSetIo(); 35685 } 35686 throw new IllegalStateException(); 35687 } 35688 35689 @Override 35690 public boolean equals(Object that) { 35691 if (that == null) 35692 return false; 35693 if (that instanceof deleteAll_result) 35694 return this.equals((deleteAll_result)that); 35695 return false; 35696 } 35697 35698 public boolean equals(deleteAll_result that) { 35699 if (that == null) 35700 return false; 35701 35702 boolean this_present_io = true && this.isSetIo(); 35703 boolean that_present_io = true && that.isSetIo(); 35704 if (this_present_io || that_present_io) { 35705 if (!(this_present_io && that_present_io)) 35706 return false; 35707 if (!this.io.equals(that.io)) 35708 return false; 35709 } 35710 35711 return true; 35712 } 35713 35714 @Override 35715 public int hashCode() { 35716 HashCodeBuilder builder = new HashCodeBuilder(); 35717 35718 boolean present_io = true && (isSetIo()); 35719 builder.append(present_io); 35720 if (present_io) 35721 builder.append(io); 35722 35723 return builder.toHashCode(); 35724 } 35725 35726 public int compareTo(deleteAll_result other) { 35727 if (!getClass().equals(other.getClass())) { 35728 return getClass().getName().compareTo(other.getClass().getName()); 35729 } 35730 35731 int lastComparison = 0; 35732 deleteAll_result typedOther = (deleteAll_result)other; 35733 35734 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 35735 if (lastComparison != 0) { 35736 return lastComparison; 35737 } 35738 if (isSetIo()) { 35739 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 35740 if (lastComparison != 0) { 35741 return lastComparison; 35742 } 35743 } 35744 return 0; 35745 } 35746 35747 public _Fields fieldForId(int fieldId) { 35748 return _Fields.findByThriftId(fieldId); 35749 } 35750 35751 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 35752 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 35753 } 35754 35755 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 35756 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 35757 } 35758 35759 @Override 35760 public String toString() { 35761 StringBuilder sb = new StringBuilder("deleteAll_result("); 35762 boolean first = true; 35763 35764 sb.append("io:"); 35765 if (this.io == null) { 35766 sb.append("null"); 35767 } else { 35768 sb.append(this.io); 35769 } 35770 first = false; 35771 sb.append(")"); 35772 return sb.toString(); 35773 } 35774 35775 public void validate() throws org.apache.thrift.TException { 35776 // check for required fields 35777 } 35778 35779 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 35780 try { 35781 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 35782 } catch (org.apache.thrift.TException te) { 35783 throw new java.io.IOException(te); 35784 } 35785 } 35786 35787 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 35788 try { 35789 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 35790 } catch (org.apache.thrift.TException te) { 35791 throw new java.io.IOException(te); 35792 } 35793 } 35794 35795 private static class deleteAll_resultStandardSchemeFactory implements SchemeFactory { 35796 public deleteAll_resultStandardScheme getScheme() { 35797 return new deleteAll_resultStandardScheme(); 35798 } 35799 } 35800 35801 private static class deleteAll_resultStandardScheme extends StandardScheme<deleteAll_result> { 35802 35803 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_result struct) throws org.apache.thrift.TException { 35804 org.apache.thrift.protocol.TField schemeField; 35805 iprot.readStructBegin(); 35806 while (true) 35807 { 35808 schemeField = iprot.readFieldBegin(); 35809 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 35810 break; 35811 } 35812 switch (schemeField.id) { 35813 case 1: // IO 35814 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 35815 struct.io = new IOError(); 35816 struct.io.read(iprot); 35817 struct.setIoIsSet(true); 35818 } else { 35819 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35820 } 35821 break; 35822 default: 35823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 35824 } 35825 iprot.readFieldEnd(); 35826 } 35827 iprot.readStructEnd(); 35828 35829 // check for required fields of primitive type, which can't be checked in the validate method 35830 struct.validate(); 35831 } 35832 35833 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_result struct) throws org.apache.thrift.TException { 35834 struct.validate(); 35835 35836 oprot.writeStructBegin(STRUCT_DESC); 35837 if (struct.io != null) { 35838 oprot.writeFieldBegin(IO_FIELD_DESC); 35839 struct.io.write(oprot); 35840 oprot.writeFieldEnd(); 35841 } 35842 oprot.writeFieldStop(); 35843 oprot.writeStructEnd(); 35844 } 35845 35846 } 35847 35848 private static class deleteAll_resultTupleSchemeFactory implements SchemeFactory { 35849 public deleteAll_resultTupleScheme getScheme() { 35850 return new deleteAll_resultTupleScheme(); 35851 } 35852 } 35853 35854 private static class deleteAll_resultTupleScheme extends TupleScheme<deleteAll_result> { 35855 35856 @Override 35857 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException { 35858 TTupleProtocol oprot = (TTupleProtocol) prot; 35859 BitSet optionals = new BitSet(); 35860 if (struct.isSetIo()) { 35861 optionals.set(0); 35862 } 35863 oprot.writeBitSet(optionals, 1); 35864 if (struct.isSetIo()) { 35865 struct.io.write(oprot); 35866 } 35867 } 35868 35869 @Override 35870 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException { 35871 TTupleProtocol iprot = (TTupleProtocol) prot; 35872 BitSet incoming = iprot.readBitSet(1); 35873 if (incoming.get(0)) { 35874 struct.io = new IOError(); 35875 struct.io.read(iprot); 35876 struct.setIoIsSet(true); 35877 } 35878 } 35879 } 35880 35881 } 35882 35883 public static class deleteAllTs_args implements org.apache.thrift.TBase<deleteAllTs_args, deleteAllTs_args._Fields>, java.io.Serializable, Cloneable { 35884 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_args"); 35885 35886 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 35887 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 35888 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3); 35889 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 35890 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 35891 35892 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 35893 static { 35894 schemes.put(StandardScheme.class, new deleteAllTs_argsStandardSchemeFactory()); 35895 schemes.put(TupleScheme.class, new deleteAllTs_argsTupleSchemeFactory()); 35896 } 35897 35898 /** 35899 * name of table 35900 */ 35901 public ByteBuffer tableName; // required 35902 /** 35903 * Row to update 35904 */ 35905 public ByteBuffer row; // required 35906 /** 35907 * name of column whose value is to be deleted 35908 */ 35909 public ByteBuffer column; // required 35910 /** 35911 * timestamp 35912 */ 35913 public long timestamp; // required 35914 /** 35915 * Delete attributes 35916 */ 35917 public Map<ByteBuffer,ByteBuffer> attributes; // required 35918 35919 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 35920 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 35921 /** 35922 * name of table 35923 */ 35924 TABLE_NAME((short)1, "tableName"), 35925 /** 35926 * Row to update 35927 */ 35928 ROW((short)2, "row"), 35929 /** 35930 * name of column whose value is to be deleted 35931 */ 35932 COLUMN((short)3, "column"), 35933 /** 35934 * timestamp 35935 */ 35936 TIMESTAMP((short)4, "timestamp"), 35937 /** 35938 * Delete attributes 35939 */ 35940 ATTRIBUTES((short)5, "attributes"); 35941 35942 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 35943 35944 static { 35945 for (_Fields field : EnumSet.allOf(_Fields.class)) { 35946 byName.put(field.getFieldName(), field); 35947 } 35948 } 35949 35950 /** 35951 * Find the _Fields constant that matches fieldId, or null if its not found. 35952 */ 35953 public static _Fields findByThriftId(int fieldId) { 35954 switch(fieldId) { 35955 case 1: // TABLE_NAME 35956 return TABLE_NAME; 35957 case 2: // ROW 35958 return ROW; 35959 case 3: // COLUMN 35960 return COLUMN; 35961 case 4: // TIMESTAMP 35962 return TIMESTAMP; 35963 case 5: // ATTRIBUTES 35964 return ATTRIBUTES; 35965 default: 35966 return null; 35967 } 35968 } 35969 35970 /** 35971 * Find the _Fields constant that matches fieldId, throwing an exception 35972 * if it is not found. 35973 */ 35974 public static _Fields findByThriftIdOrThrow(int fieldId) { 35975 _Fields fields = findByThriftId(fieldId); 35976 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 35977 return fields; 35978 } 35979 35980 /** 35981 * Find the _Fields constant that matches name, or null if its not found. 35982 */ 35983 public static _Fields findByName(String name) { 35984 return byName.get(name); 35985 } 35986 35987 private final short _thriftId; 35988 private final String _fieldName; 35989 35990 _Fields(short thriftId, String fieldName) { 35991 _thriftId = thriftId; 35992 _fieldName = fieldName; 35993 } 35994 35995 public short getThriftFieldId() { 35996 return _thriftId; 35997 } 35998 35999 public String getFieldName() { 36000 return _fieldName; 36001 } 36002 } 36003 36004 // isset id assignments 36005 private static final int __TIMESTAMP_ISSET_ID = 0; 36006 private BitSet __isset_bit_vector = new BitSet(1); 36007 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 36008 static { 36009 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 36010 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 36011 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 36012 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 36013 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 36014 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT, 36015 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 36016 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 36017 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 36018 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 36019 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 36020 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 36021 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 36022 metaDataMap = Collections.unmodifiableMap(tmpMap); 36023 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_args.class, metaDataMap); 36024 } 36025 36026 public deleteAllTs_args() { 36027 } 36028 36029 public deleteAllTs_args( 36030 ByteBuffer tableName, 36031 ByteBuffer row, 36032 ByteBuffer column, 36033 long timestamp, 36034 Map<ByteBuffer,ByteBuffer> attributes) 36035 { 36036 this(); 36037 this.tableName = tableName; 36038 this.row = row; 36039 this.column = column; 36040 this.timestamp = timestamp; 36041 setTimestampIsSet(true); 36042 this.attributes = attributes; 36043 } 36044 36045 /** 36046 * Performs a deep copy on <i>other</i>. 36047 */ 36048 public deleteAllTs_args(deleteAllTs_args other) { 36049 __isset_bit_vector.clear(); 36050 __isset_bit_vector.or(other.__isset_bit_vector); 36051 if (other.isSetTableName()) { 36052 this.tableName = other.tableName; 36053 } 36054 if (other.isSetRow()) { 36055 this.row = other.row; 36056 } 36057 if (other.isSetColumn()) { 36058 this.column = other.column; 36059 } 36060 this.timestamp = other.timestamp; 36061 if (other.isSetAttributes()) { 36062 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 36063 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 36064 36065 ByteBuffer other_element_key = other_element.getKey(); 36066 ByteBuffer other_element_value = other_element.getValue(); 36067 36068 ByteBuffer __this__attributes_copy_key = other_element_key; 36069 36070 ByteBuffer __this__attributes_copy_value = other_element_value; 36071 36072 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 36073 } 36074 this.attributes = __this__attributes; 36075 } 36076 } 36077 36078 public deleteAllTs_args deepCopy() { 36079 return new deleteAllTs_args(this); 36080 } 36081 36082 @Override 36083 public void clear() { 36084 this.tableName = null; 36085 this.row = null; 36086 this.column = null; 36087 setTimestampIsSet(false); 36088 this.timestamp = 0; 36089 this.attributes = null; 36090 } 36091 36092 /** 36093 * name of table 36094 */ 36095 public byte[] getTableName() { 36096 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 36097 return tableName == null ? null : tableName.array(); 36098 } 36099 36100 public ByteBuffer bufferForTableName() { 36101 return tableName; 36102 } 36103 36104 /** 36105 * name of table 36106 */ 36107 public deleteAllTs_args setTableName(byte[] tableName) { 36108 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 36109 return this; 36110 } 36111 36112 public deleteAllTs_args setTableName(ByteBuffer tableName) { 36113 this.tableName = tableName; 36114 return this; 36115 } 36116 36117 public void unsetTableName() { 36118 this.tableName = null; 36119 } 36120 36121 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 36122 public boolean isSetTableName() { 36123 return this.tableName != null; 36124 } 36125 36126 public void setTableNameIsSet(boolean value) { 36127 if (!value) { 36128 this.tableName = null; 36129 } 36130 } 36131 36132 /** 36133 * Row to update 36134 */ 36135 public byte[] getRow() { 36136 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 36137 return row == null ? null : row.array(); 36138 } 36139 36140 public ByteBuffer bufferForRow() { 36141 return row; 36142 } 36143 36144 /** 36145 * Row to update 36146 */ 36147 public deleteAllTs_args setRow(byte[] row) { 36148 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 36149 return this; 36150 } 36151 36152 public deleteAllTs_args setRow(ByteBuffer row) { 36153 this.row = row; 36154 return this; 36155 } 36156 36157 public void unsetRow() { 36158 this.row = null; 36159 } 36160 36161 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 36162 public boolean isSetRow() { 36163 return this.row != null; 36164 } 36165 36166 public void setRowIsSet(boolean value) { 36167 if (!value) { 36168 this.row = null; 36169 } 36170 } 36171 36172 /** 36173 * name of column whose value is to be deleted 36174 */ 36175 public byte[] getColumn() { 36176 setColumn(org.apache.thrift.TBaseHelper.rightSize(column)); 36177 return column == null ? null : column.array(); 36178 } 36179 36180 public ByteBuffer bufferForColumn() { 36181 return column; 36182 } 36183 36184 /** 36185 * name of column whose value is to be deleted 36186 */ 36187 public deleteAllTs_args setColumn(byte[] column) { 36188 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column)); 36189 return this; 36190 } 36191 36192 public deleteAllTs_args setColumn(ByteBuffer column) { 36193 this.column = column; 36194 return this; 36195 } 36196 36197 public void unsetColumn() { 36198 this.column = null; 36199 } 36200 36201 /** Returns true if field column is set (has been assigned a value) and false otherwise */ 36202 public boolean isSetColumn() { 36203 return this.column != null; 36204 } 36205 36206 public void setColumnIsSet(boolean value) { 36207 if (!value) { 36208 this.column = null; 36209 } 36210 } 36211 36212 /** 36213 * timestamp 36214 */ 36215 public long getTimestamp() { 36216 return this.timestamp; 36217 } 36218 36219 /** 36220 * timestamp 36221 */ 36222 public deleteAllTs_args setTimestamp(long timestamp) { 36223 this.timestamp = timestamp; 36224 setTimestampIsSet(true); 36225 return this; 36226 } 36227 36228 public void unsetTimestamp() { 36229 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 36230 } 36231 36232 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 36233 public boolean isSetTimestamp() { 36234 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 36235 } 36236 36237 public void setTimestampIsSet(boolean value) { 36238 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 36239 } 36240 36241 public int getAttributesSize() { 36242 return (this.attributes == null) ? 0 : this.attributes.size(); 36243 } 36244 36245 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 36246 if (this.attributes == null) { 36247 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 36248 } 36249 this.attributes.put(key, val); 36250 } 36251 36252 /** 36253 * Delete attributes 36254 */ 36255 public Map<ByteBuffer,ByteBuffer> getAttributes() { 36256 return this.attributes; 36257 } 36258 36259 /** 36260 * Delete attributes 36261 */ 36262 public deleteAllTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 36263 this.attributes = attributes; 36264 return this; 36265 } 36266 36267 public void unsetAttributes() { 36268 this.attributes = null; 36269 } 36270 36271 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 36272 public boolean isSetAttributes() { 36273 return this.attributes != null; 36274 } 36275 36276 public void setAttributesIsSet(boolean value) { 36277 if (!value) { 36278 this.attributes = null; 36279 } 36280 } 36281 36282 public void setFieldValue(_Fields field, Object value) { 36283 switch (field) { 36284 case TABLE_NAME: 36285 if (value == null) { 36286 unsetTableName(); 36287 } else { 36288 setTableName((ByteBuffer)value); 36289 } 36290 break; 36291 36292 case ROW: 36293 if (value == null) { 36294 unsetRow(); 36295 } else { 36296 setRow((ByteBuffer)value); 36297 } 36298 break; 36299 36300 case COLUMN: 36301 if (value == null) { 36302 unsetColumn(); 36303 } else { 36304 setColumn((ByteBuffer)value); 36305 } 36306 break; 36307 36308 case TIMESTAMP: 36309 if (value == null) { 36310 unsetTimestamp(); 36311 } else { 36312 setTimestamp((Long)value); 36313 } 36314 break; 36315 36316 case ATTRIBUTES: 36317 if (value == null) { 36318 unsetAttributes(); 36319 } else { 36320 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 36321 } 36322 break; 36323 36324 } 36325 } 36326 36327 public Object getFieldValue(_Fields field) { 36328 switch (field) { 36329 case TABLE_NAME: 36330 return getTableName(); 36331 36332 case ROW: 36333 return getRow(); 36334 36335 case COLUMN: 36336 return getColumn(); 36337 36338 case TIMESTAMP: 36339 return Long.valueOf(getTimestamp()); 36340 36341 case ATTRIBUTES: 36342 return getAttributes(); 36343 36344 } 36345 throw new IllegalStateException(); 36346 } 36347 36348 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 36349 public boolean isSet(_Fields field) { 36350 if (field == null) { 36351 throw new IllegalArgumentException(); 36352 } 36353 36354 switch (field) { 36355 case TABLE_NAME: 36356 return isSetTableName(); 36357 case ROW: 36358 return isSetRow(); 36359 case COLUMN: 36360 return isSetColumn(); 36361 case TIMESTAMP: 36362 return isSetTimestamp(); 36363 case ATTRIBUTES: 36364 return isSetAttributes(); 36365 } 36366 throw new IllegalStateException(); 36367 } 36368 36369 @Override 36370 public boolean equals(Object that) { 36371 if (that == null) 36372 return false; 36373 if (that instanceof deleteAllTs_args) 36374 return this.equals((deleteAllTs_args)that); 36375 return false; 36376 } 36377 36378 public boolean equals(deleteAllTs_args that) { 36379 if (that == null) 36380 return false; 36381 36382 boolean this_present_tableName = true && this.isSetTableName(); 36383 boolean that_present_tableName = true && that.isSetTableName(); 36384 if (this_present_tableName || that_present_tableName) { 36385 if (!(this_present_tableName && that_present_tableName)) 36386 return false; 36387 if (!this.tableName.equals(that.tableName)) 36388 return false; 36389 } 36390 36391 boolean this_present_row = true && this.isSetRow(); 36392 boolean that_present_row = true && that.isSetRow(); 36393 if (this_present_row || that_present_row) { 36394 if (!(this_present_row && that_present_row)) 36395 return false; 36396 if (!this.row.equals(that.row)) 36397 return false; 36398 } 36399 36400 boolean this_present_column = true && this.isSetColumn(); 36401 boolean that_present_column = true && that.isSetColumn(); 36402 if (this_present_column || that_present_column) { 36403 if (!(this_present_column && that_present_column)) 36404 return false; 36405 if (!this.column.equals(that.column)) 36406 return false; 36407 } 36408 36409 boolean this_present_timestamp = true; 36410 boolean that_present_timestamp = true; 36411 if (this_present_timestamp || that_present_timestamp) { 36412 if (!(this_present_timestamp && that_present_timestamp)) 36413 return false; 36414 if (this.timestamp != that.timestamp) 36415 return false; 36416 } 36417 36418 boolean this_present_attributes = true && this.isSetAttributes(); 36419 boolean that_present_attributes = true && that.isSetAttributes(); 36420 if (this_present_attributes || that_present_attributes) { 36421 if (!(this_present_attributes && that_present_attributes)) 36422 return false; 36423 if (!this.attributes.equals(that.attributes)) 36424 return false; 36425 } 36426 36427 return true; 36428 } 36429 36430 @Override 36431 public int hashCode() { 36432 HashCodeBuilder builder = new HashCodeBuilder(); 36433 36434 boolean present_tableName = true && (isSetTableName()); 36435 builder.append(present_tableName); 36436 if (present_tableName) 36437 builder.append(tableName); 36438 36439 boolean present_row = true && (isSetRow()); 36440 builder.append(present_row); 36441 if (present_row) 36442 builder.append(row); 36443 36444 boolean present_column = true && (isSetColumn()); 36445 builder.append(present_column); 36446 if (present_column) 36447 builder.append(column); 36448 36449 boolean present_timestamp = true; 36450 builder.append(present_timestamp); 36451 if (present_timestamp) 36452 builder.append(timestamp); 36453 36454 boolean present_attributes = true && (isSetAttributes()); 36455 builder.append(present_attributes); 36456 if (present_attributes) 36457 builder.append(attributes); 36458 36459 return builder.toHashCode(); 36460 } 36461 36462 public int compareTo(deleteAllTs_args other) { 36463 if (!getClass().equals(other.getClass())) { 36464 return getClass().getName().compareTo(other.getClass().getName()); 36465 } 36466 36467 int lastComparison = 0; 36468 deleteAllTs_args typedOther = (deleteAllTs_args)other; 36469 36470 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 36471 if (lastComparison != 0) { 36472 return lastComparison; 36473 } 36474 if (isSetTableName()) { 36475 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 36476 if (lastComparison != 0) { 36477 return lastComparison; 36478 } 36479 } 36480 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 36481 if (lastComparison != 0) { 36482 return lastComparison; 36483 } 36484 if (isSetRow()) { 36485 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 36486 if (lastComparison != 0) { 36487 return lastComparison; 36488 } 36489 } 36490 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn()); 36491 if (lastComparison != 0) { 36492 return lastComparison; 36493 } 36494 if (isSetColumn()) { 36495 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column); 36496 if (lastComparison != 0) { 36497 return lastComparison; 36498 } 36499 } 36500 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 36501 if (lastComparison != 0) { 36502 return lastComparison; 36503 } 36504 if (isSetTimestamp()) { 36505 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 36506 if (lastComparison != 0) { 36507 return lastComparison; 36508 } 36509 } 36510 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 36511 if (lastComparison != 0) { 36512 return lastComparison; 36513 } 36514 if (isSetAttributes()) { 36515 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 36516 if (lastComparison != 0) { 36517 return lastComparison; 36518 } 36519 } 36520 return 0; 36521 } 36522 36523 public _Fields fieldForId(int fieldId) { 36524 return _Fields.findByThriftId(fieldId); 36525 } 36526 36527 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 36528 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 36529 } 36530 36531 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 36532 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 36533 } 36534 36535 @Override 36536 public String toString() { 36537 StringBuilder sb = new StringBuilder("deleteAllTs_args("); 36538 boolean first = true; 36539 36540 sb.append("tableName:"); 36541 if (this.tableName == null) { 36542 sb.append("null"); 36543 } else { 36544 sb.append(this.tableName); 36545 } 36546 first = false; 36547 if (!first) sb.append(", "); 36548 sb.append("row:"); 36549 if (this.row == null) { 36550 sb.append("null"); 36551 } else { 36552 sb.append(this.row); 36553 } 36554 first = false; 36555 if (!first) sb.append(", "); 36556 sb.append("column:"); 36557 if (this.column == null) { 36558 sb.append("null"); 36559 } else { 36560 sb.append(this.column); 36561 } 36562 first = false; 36563 if (!first) sb.append(", "); 36564 sb.append("timestamp:"); 36565 sb.append(this.timestamp); 36566 first = false; 36567 if (!first) sb.append(", "); 36568 sb.append("attributes:"); 36569 if (this.attributes == null) { 36570 sb.append("null"); 36571 } else { 36572 sb.append(this.attributes); 36573 } 36574 first = false; 36575 sb.append(")"); 36576 return sb.toString(); 36577 } 36578 36579 public void validate() throws org.apache.thrift.TException { 36580 // check for required fields 36581 } 36582 36583 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 36584 try { 36585 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 36586 } catch (org.apache.thrift.TException te) { 36587 throw new java.io.IOException(te); 36588 } 36589 } 36590 36591 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 36592 try { 36593 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 36594 __isset_bit_vector = new BitSet(1); 36595 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 36596 } catch (org.apache.thrift.TException te) { 36597 throw new java.io.IOException(te); 36598 } 36599 } 36600 36601 private static class deleteAllTs_argsStandardSchemeFactory implements SchemeFactory { 36602 public deleteAllTs_argsStandardScheme getScheme() { 36603 return new deleteAllTs_argsStandardScheme(); 36604 } 36605 } 36606 36607 private static class deleteAllTs_argsStandardScheme extends StandardScheme<deleteAllTs_args> { 36608 36609 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_args struct) throws org.apache.thrift.TException { 36610 org.apache.thrift.protocol.TField schemeField; 36611 iprot.readStructBegin(); 36612 while (true) 36613 { 36614 schemeField = iprot.readFieldBegin(); 36615 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 36616 break; 36617 } 36618 switch (schemeField.id) { 36619 case 1: // TABLE_NAME 36620 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 36621 struct.tableName = iprot.readBinary(); 36622 struct.setTableNameIsSet(true); 36623 } else { 36624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36625 } 36626 break; 36627 case 2: // ROW 36628 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 36629 struct.row = iprot.readBinary(); 36630 struct.setRowIsSet(true); 36631 } else { 36632 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36633 } 36634 break; 36635 case 3: // COLUMN 36636 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 36637 struct.column = iprot.readBinary(); 36638 struct.setColumnIsSet(true); 36639 } else { 36640 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36641 } 36642 break; 36643 case 4: // TIMESTAMP 36644 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 36645 struct.timestamp = iprot.readI64(); 36646 struct.setTimestampIsSet(true); 36647 } else { 36648 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36649 } 36650 break; 36651 case 5: // ATTRIBUTES 36652 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 36653 { 36654 org.apache.thrift.protocol.TMap _map412 = iprot.readMapBegin(); 36655 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map412.size); 36656 for (int _i413 = 0; _i413 < _map412.size; ++_i413) 36657 { 36658 ByteBuffer _key414; // required 36659 ByteBuffer _val415; // required 36660 _key414 = iprot.readBinary(); 36661 _val415 = iprot.readBinary(); 36662 struct.attributes.put(_key414, _val415); 36663 } 36664 iprot.readMapEnd(); 36665 } 36666 struct.setAttributesIsSet(true); 36667 } else { 36668 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36669 } 36670 break; 36671 default: 36672 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 36673 } 36674 iprot.readFieldEnd(); 36675 } 36676 iprot.readStructEnd(); 36677 36678 // check for required fields of primitive type, which can't be checked in the validate method 36679 struct.validate(); 36680 } 36681 36682 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_args struct) throws org.apache.thrift.TException { 36683 struct.validate(); 36684 36685 oprot.writeStructBegin(STRUCT_DESC); 36686 if (struct.tableName != null) { 36687 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 36688 oprot.writeBinary(struct.tableName); 36689 oprot.writeFieldEnd(); 36690 } 36691 if (struct.row != null) { 36692 oprot.writeFieldBegin(ROW_FIELD_DESC); 36693 oprot.writeBinary(struct.row); 36694 oprot.writeFieldEnd(); 36695 } 36696 if (struct.column != null) { 36697 oprot.writeFieldBegin(COLUMN_FIELD_DESC); 36698 oprot.writeBinary(struct.column); 36699 oprot.writeFieldEnd(); 36700 } 36701 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 36702 oprot.writeI64(struct.timestamp); 36703 oprot.writeFieldEnd(); 36704 if (struct.attributes != null) { 36705 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 36706 { 36707 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 36708 for (Map.Entry<ByteBuffer, ByteBuffer> _iter416 : struct.attributes.entrySet()) 36709 { 36710 oprot.writeBinary(_iter416.getKey()); 36711 oprot.writeBinary(_iter416.getValue()); 36712 } 36713 oprot.writeMapEnd(); 36714 } 36715 oprot.writeFieldEnd(); 36716 } 36717 oprot.writeFieldStop(); 36718 oprot.writeStructEnd(); 36719 } 36720 36721 } 36722 36723 private static class deleteAllTs_argsTupleSchemeFactory implements SchemeFactory { 36724 public deleteAllTs_argsTupleScheme getScheme() { 36725 return new deleteAllTs_argsTupleScheme(); 36726 } 36727 } 36728 36729 private static class deleteAllTs_argsTupleScheme extends TupleScheme<deleteAllTs_args> { 36730 36731 @Override 36732 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException { 36733 TTupleProtocol oprot = (TTupleProtocol) prot; 36734 BitSet optionals = new BitSet(); 36735 if (struct.isSetTableName()) { 36736 optionals.set(0); 36737 } 36738 if (struct.isSetRow()) { 36739 optionals.set(1); 36740 } 36741 if (struct.isSetColumn()) { 36742 optionals.set(2); 36743 } 36744 if (struct.isSetTimestamp()) { 36745 optionals.set(3); 36746 } 36747 if (struct.isSetAttributes()) { 36748 optionals.set(4); 36749 } 36750 oprot.writeBitSet(optionals, 5); 36751 if (struct.isSetTableName()) { 36752 oprot.writeBinary(struct.tableName); 36753 } 36754 if (struct.isSetRow()) { 36755 oprot.writeBinary(struct.row); 36756 } 36757 if (struct.isSetColumn()) { 36758 oprot.writeBinary(struct.column); 36759 } 36760 if (struct.isSetTimestamp()) { 36761 oprot.writeI64(struct.timestamp); 36762 } 36763 if (struct.isSetAttributes()) { 36764 { 36765 oprot.writeI32(struct.attributes.size()); 36766 for (Map.Entry<ByteBuffer, ByteBuffer> _iter417 : struct.attributes.entrySet()) 36767 { 36768 oprot.writeBinary(_iter417.getKey()); 36769 oprot.writeBinary(_iter417.getValue()); 36770 } 36771 } 36772 } 36773 } 36774 36775 @Override 36776 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException { 36777 TTupleProtocol iprot = (TTupleProtocol) prot; 36778 BitSet incoming = iprot.readBitSet(5); 36779 if (incoming.get(0)) { 36780 struct.tableName = iprot.readBinary(); 36781 struct.setTableNameIsSet(true); 36782 } 36783 if (incoming.get(1)) { 36784 struct.row = iprot.readBinary(); 36785 struct.setRowIsSet(true); 36786 } 36787 if (incoming.get(2)) { 36788 struct.column = iprot.readBinary(); 36789 struct.setColumnIsSet(true); 36790 } 36791 if (incoming.get(3)) { 36792 struct.timestamp = iprot.readI64(); 36793 struct.setTimestampIsSet(true); 36794 } 36795 if (incoming.get(4)) { 36796 { 36797 org.apache.thrift.protocol.TMap _map418 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 36798 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map418.size); 36799 for (int _i419 = 0; _i419 < _map418.size; ++_i419) 36800 { 36801 ByteBuffer _key420; // required 36802 ByteBuffer _val421; // required 36803 _key420 = iprot.readBinary(); 36804 _val421 = iprot.readBinary(); 36805 struct.attributes.put(_key420, _val421); 36806 } 36807 } 36808 struct.setAttributesIsSet(true); 36809 } 36810 } 36811 } 36812 36813 } 36814 36815 public static class deleteAllTs_result implements org.apache.thrift.TBase<deleteAllTs_result, deleteAllTs_result._Fields>, java.io.Serializable, Cloneable { 36816 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_result"); 36817 36818 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 36819 36820 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 36821 static { 36822 schemes.put(StandardScheme.class, new deleteAllTs_resultStandardSchemeFactory()); 36823 schemes.put(TupleScheme.class, new deleteAllTs_resultTupleSchemeFactory()); 36824 } 36825 36826 public IOError io; // required 36827 36828 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 36829 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 36830 IO((short)1, "io"); 36831 36832 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 36833 36834 static { 36835 for (_Fields field : EnumSet.allOf(_Fields.class)) { 36836 byName.put(field.getFieldName(), field); 36837 } 36838 } 36839 36840 /** 36841 * Find the _Fields constant that matches fieldId, or null if its not found. 36842 */ 36843 public static _Fields findByThriftId(int fieldId) { 36844 switch(fieldId) { 36845 case 1: // IO 36846 return IO; 36847 default: 36848 return null; 36849 } 36850 } 36851 36852 /** 36853 * Find the _Fields constant that matches fieldId, throwing an exception 36854 * if it is not found. 36855 */ 36856 public static _Fields findByThriftIdOrThrow(int fieldId) { 36857 _Fields fields = findByThriftId(fieldId); 36858 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 36859 return fields; 36860 } 36861 36862 /** 36863 * Find the _Fields constant that matches name, or null if its not found. 36864 */ 36865 public static _Fields findByName(String name) { 36866 return byName.get(name); 36867 } 36868 36869 private final short _thriftId; 36870 private final String _fieldName; 36871 36872 _Fields(short thriftId, String fieldName) { 36873 _thriftId = thriftId; 36874 _fieldName = fieldName; 36875 } 36876 36877 public short getThriftFieldId() { 36878 return _thriftId; 36879 } 36880 36881 public String getFieldName() { 36882 return _fieldName; 36883 } 36884 } 36885 36886 // isset id assignments 36887 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 36888 static { 36889 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 36890 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 36891 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 36892 metaDataMap = Collections.unmodifiableMap(tmpMap); 36893 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_result.class, metaDataMap); 36894 } 36895 36896 public deleteAllTs_result() { 36897 } 36898 36899 public deleteAllTs_result( 36900 IOError io) 36901 { 36902 this(); 36903 this.io = io; 36904 } 36905 36906 /** 36907 * Performs a deep copy on <i>other</i>. 36908 */ 36909 public deleteAllTs_result(deleteAllTs_result other) { 36910 if (other.isSetIo()) { 36911 this.io = new IOError(other.io); 36912 } 36913 } 36914 36915 public deleteAllTs_result deepCopy() { 36916 return new deleteAllTs_result(this); 36917 } 36918 36919 @Override 36920 public void clear() { 36921 this.io = null; 36922 } 36923 36924 public IOError getIo() { 36925 return this.io; 36926 } 36927 36928 public deleteAllTs_result setIo(IOError io) { 36929 this.io = io; 36930 return this; 36931 } 36932 36933 public void unsetIo() { 36934 this.io = null; 36935 } 36936 36937 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 36938 public boolean isSetIo() { 36939 return this.io != null; 36940 } 36941 36942 public void setIoIsSet(boolean value) { 36943 if (!value) { 36944 this.io = null; 36945 } 36946 } 36947 36948 public void setFieldValue(_Fields field, Object value) { 36949 switch (field) { 36950 case IO: 36951 if (value == null) { 36952 unsetIo(); 36953 } else { 36954 setIo((IOError)value); 36955 } 36956 break; 36957 36958 } 36959 } 36960 36961 public Object getFieldValue(_Fields field) { 36962 switch (field) { 36963 case IO: 36964 return getIo(); 36965 36966 } 36967 throw new IllegalStateException(); 36968 } 36969 36970 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 36971 public boolean isSet(_Fields field) { 36972 if (field == null) { 36973 throw new IllegalArgumentException(); 36974 } 36975 36976 switch (field) { 36977 case IO: 36978 return isSetIo(); 36979 } 36980 throw new IllegalStateException(); 36981 } 36982 36983 @Override 36984 public boolean equals(Object that) { 36985 if (that == null) 36986 return false; 36987 if (that instanceof deleteAllTs_result) 36988 return this.equals((deleteAllTs_result)that); 36989 return false; 36990 } 36991 36992 public boolean equals(deleteAllTs_result that) { 36993 if (that == null) 36994 return false; 36995 36996 boolean this_present_io = true && this.isSetIo(); 36997 boolean that_present_io = true && that.isSetIo(); 36998 if (this_present_io || that_present_io) { 36999 if (!(this_present_io && that_present_io)) 37000 return false; 37001 if (!this.io.equals(that.io)) 37002 return false; 37003 } 37004 37005 return true; 37006 } 37007 37008 @Override 37009 public int hashCode() { 37010 HashCodeBuilder builder = new HashCodeBuilder(); 37011 37012 boolean present_io = true && (isSetIo()); 37013 builder.append(present_io); 37014 if (present_io) 37015 builder.append(io); 37016 37017 return builder.toHashCode(); 37018 } 37019 37020 public int compareTo(deleteAllTs_result other) { 37021 if (!getClass().equals(other.getClass())) { 37022 return getClass().getName().compareTo(other.getClass().getName()); 37023 } 37024 37025 int lastComparison = 0; 37026 deleteAllTs_result typedOther = (deleteAllTs_result)other; 37027 37028 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 37029 if (lastComparison != 0) { 37030 return lastComparison; 37031 } 37032 if (isSetIo()) { 37033 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 37034 if (lastComparison != 0) { 37035 return lastComparison; 37036 } 37037 } 37038 return 0; 37039 } 37040 37041 public _Fields fieldForId(int fieldId) { 37042 return _Fields.findByThriftId(fieldId); 37043 } 37044 37045 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 37046 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 37047 } 37048 37049 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 37050 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 37051 } 37052 37053 @Override 37054 public String toString() { 37055 StringBuilder sb = new StringBuilder("deleteAllTs_result("); 37056 boolean first = true; 37057 37058 sb.append("io:"); 37059 if (this.io == null) { 37060 sb.append("null"); 37061 } else { 37062 sb.append(this.io); 37063 } 37064 first = false; 37065 sb.append(")"); 37066 return sb.toString(); 37067 } 37068 37069 public void validate() throws org.apache.thrift.TException { 37070 // check for required fields 37071 } 37072 37073 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 37074 try { 37075 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 37076 } catch (org.apache.thrift.TException te) { 37077 throw new java.io.IOException(te); 37078 } 37079 } 37080 37081 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 37082 try { 37083 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 37084 } catch (org.apache.thrift.TException te) { 37085 throw new java.io.IOException(te); 37086 } 37087 } 37088 37089 private static class deleteAllTs_resultStandardSchemeFactory implements SchemeFactory { 37090 public deleteAllTs_resultStandardScheme getScheme() { 37091 return new deleteAllTs_resultStandardScheme(); 37092 } 37093 } 37094 37095 private static class deleteAllTs_resultStandardScheme extends StandardScheme<deleteAllTs_result> { 37096 37097 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_result struct) throws org.apache.thrift.TException { 37098 org.apache.thrift.protocol.TField schemeField; 37099 iprot.readStructBegin(); 37100 while (true) 37101 { 37102 schemeField = iprot.readFieldBegin(); 37103 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 37104 break; 37105 } 37106 switch (schemeField.id) { 37107 case 1: // IO 37108 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 37109 struct.io = new IOError(); 37110 struct.io.read(iprot); 37111 struct.setIoIsSet(true); 37112 } else { 37113 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37114 } 37115 break; 37116 default: 37117 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37118 } 37119 iprot.readFieldEnd(); 37120 } 37121 iprot.readStructEnd(); 37122 37123 // check for required fields of primitive type, which can't be checked in the validate method 37124 struct.validate(); 37125 } 37126 37127 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_result struct) throws org.apache.thrift.TException { 37128 struct.validate(); 37129 37130 oprot.writeStructBegin(STRUCT_DESC); 37131 if (struct.io != null) { 37132 oprot.writeFieldBegin(IO_FIELD_DESC); 37133 struct.io.write(oprot); 37134 oprot.writeFieldEnd(); 37135 } 37136 oprot.writeFieldStop(); 37137 oprot.writeStructEnd(); 37138 } 37139 37140 } 37141 37142 private static class deleteAllTs_resultTupleSchemeFactory implements SchemeFactory { 37143 public deleteAllTs_resultTupleScheme getScheme() { 37144 return new deleteAllTs_resultTupleScheme(); 37145 } 37146 } 37147 37148 private static class deleteAllTs_resultTupleScheme extends TupleScheme<deleteAllTs_result> { 37149 37150 @Override 37151 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException { 37152 TTupleProtocol oprot = (TTupleProtocol) prot; 37153 BitSet optionals = new BitSet(); 37154 if (struct.isSetIo()) { 37155 optionals.set(0); 37156 } 37157 oprot.writeBitSet(optionals, 1); 37158 if (struct.isSetIo()) { 37159 struct.io.write(oprot); 37160 } 37161 } 37162 37163 @Override 37164 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException { 37165 TTupleProtocol iprot = (TTupleProtocol) prot; 37166 BitSet incoming = iprot.readBitSet(1); 37167 if (incoming.get(0)) { 37168 struct.io = new IOError(); 37169 struct.io.read(iprot); 37170 struct.setIoIsSet(true); 37171 } 37172 } 37173 } 37174 37175 } 37176 37177 public static class deleteAllRow_args implements org.apache.thrift.TBase<deleteAllRow_args, deleteAllRow_args._Fields>, java.io.Serializable, Cloneable { 37178 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_args"); 37179 37180 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 37181 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 37182 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); 37183 37184 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 37185 static { 37186 schemes.put(StandardScheme.class, new deleteAllRow_argsStandardSchemeFactory()); 37187 schemes.put(TupleScheme.class, new deleteAllRow_argsTupleSchemeFactory()); 37188 } 37189 37190 /** 37191 * name of table 37192 */ 37193 public ByteBuffer tableName; // required 37194 /** 37195 * key of the row to be completely deleted. 37196 */ 37197 public ByteBuffer row; // required 37198 /** 37199 * Delete attributes 37200 */ 37201 public Map<ByteBuffer,ByteBuffer> attributes; // required 37202 37203 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 37204 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 37205 /** 37206 * name of table 37207 */ 37208 TABLE_NAME((short)1, "tableName"), 37209 /** 37210 * key of the row to be completely deleted. 37211 */ 37212 ROW((short)2, "row"), 37213 /** 37214 * Delete attributes 37215 */ 37216 ATTRIBUTES((short)3, "attributes"); 37217 37218 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 37219 37220 static { 37221 for (_Fields field : EnumSet.allOf(_Fields.class)) { 37222 byName.put(field.getFieldName(), field); 37223 } 37224 } 37225 37226 /** 37227 * Find the _Fields constant that matches fieldId, or null if its not found. 37228 */ 37229 public static _Fields findByThriftId(int fieldId) { 37230 switch(fieldId) { 37231 case 1: // TABLE_NAME 37232 return TABLE_NAME; 37233 case 2: // ROW 37234 return ROW; 37235 case 3: // ATTRIBUTES 37236 return ATTRIBUTES; 37237 default: 37238 return null; 37239 } 37240 } 37241 37242 /** 37243 * Find the _Fields constant that matches fieldId, throwing an exception 37244 * if it is not found. 37245 */ 37246 public static _Fields findByThriftIdOrThrow(int fieldId) { 37247 _Fields fields = findByThriftId(fieldId); 37248 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 37249 return fields; 37250 } 37251 37252 /** 37253 * Find the _Fields constant that matches name, or null if its not found. 37254 */ 37255 public static _Fields findByName(String name) { 37256 return byName.get(name); 37257 } 37258 37259 private final short _thriftId; 37260 private final String _fieldName; 37261 37262 _Fields(short thriftId, String fieldName) { 37263 _thriftId = thriftId; 37264 _fieldName = fieldName; 37265 } 37266 37267 public short getThriftFieldId() { 37268 return _thriftId; 37269 } 37270 37271 public String getFieldName() { 37272 return _fieldName; 37273 } 37274 } 37275 37276 // isset id assignments 37277 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 37278 static { 37279 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 37280 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 37281 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 37282 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 37283 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 37284 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 37285 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 37286 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 37287 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 37288 metaDataMap = Collections.unmodifiableMap(tmpMap); 37289 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_args.class, metaDataMap); 37290 } 37291 37292 public deleteAllRow_args() { 37293 } 37294 37295 public deleteAllRow_args( 37296 ByteBuffer tableName, 37297 ByteBuffer row, 37298 Map<ByteBuffer,ByteBuffer> attributes) 37299 { 37300 this(); 37301 this.tableName = tableName; 37302 this.row = row; 37303 this.attributes = attributes; 37304 } 37305 37306 /** 37307 * Performs a deep copy on <i>other</i>. 37308 */ 37309 public deleteAllRow_args(deleteAllRow_args other) { 37310 if (other.isSetTableName()) { 37311 this.tableName = other.tableName; 37312 } 37313 if (other.isSetRow()) { 37314 this.row = other.row; 37315 } 37316 if (other.isSetAttributes()) { 37317 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 37318 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 37319 37320 ByteBuffer other_element_key = other_element.getKey(); 37321 ByteBuffer other_element_value = other_element.getValue(); 37322 37323 ByteBuffer __this__attributes_copy_key = other_element_key; 37324 37325 ByteBuffer __this__attributes_copy_value = other_element_value; 37326 37327 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 37328 } 37329 this.attributes = __this__attributes; 37330 } 37331 } 37332 37333 public deleteAllRow_args deepCopy() { 37334 return new deleteAllRow_args(this); 37335 } 37336 37337 @Override 37338 public void clear() { 37339 this.tableName = null; 37340 this.row = null; 37341 this.attributes = null; 37342 } 37343 37344 /** 37345 * name of table 37346 */ 37347 public byte[] getTableName() { 37348 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 37349 return tableName == null ? null : tableName.array(); 37350 } 37351 37352 public ByteBuffer bufferForTableName() { 37353 return tableName; 37354 } 37355 37356 /** 37357 * name of table 37358 */ 37359 public deleteAllRow_args setTableName(byte[] tableName) { 37360 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 37361 return this; 37362 } 37363 37364 public deleteAllRow_args setTableName(ByteBuffer tableName) { 37365 this.tableName = tableName; 37366 return this; 37367 } 37368 37369 public void unsetTableName() { 37370 this.tableName = null; 37371 } 37372 37373 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 37374 public boolean isSetTableName() { 37375 return this.tableName != null; 37376 } 37377 37378 public void setTableNameIsSet(boolean value) { 37379 if (!value) { 37380 this.tableName = null; 37381 } 37382 } 37383 37384 /** 37385 * key of the row to be completely deleted. 37386 */ 37387 public byte[] getRow() { 37388 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 37389 return row == null ? null : row.array(); 37390 } 37391 37392 public ByteBuffer bufferForRow() { 37393 return row; 37394 } 37395 37396 /** 37397 * key of the row to be completely deleted. 37398 */ 37399 public deleteAllRow_args setRow(byte[] row) { 37400 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 37401 return this; 37402 } 37403 37404 public deleteAllRow_args setRow(ByteBuffer row) { 37405 this.row = row; 37406 return this; 37407 } 37408 37409 public void unsetRow() { 37410 this.row = null; 37411 } 37412 37413 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 37414 public boolean isSetRow() { 37415 return this.row != null; 37416 } 37417 37418 public void setRowIsSet(boolean value) { 37419 if (!value) { 37420 this.row = null; 37421 } 37422 } 37423 37424 public int getAttributesSize() { 37425 return (this.attributes == null) ? 0 : this.attributes.size(); 37426 } 37427 37428 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 37429 if (this.attributes == null) { 37430 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 37431 } 37432 this.attributes.put(key, val); 37433 } 37434 37435 /** 37436 * Delete attributes 37437 */ 37438 public Map<ByteBuffer,ByteBuffer> getAttributes() { 37439 return this.attributes; 37440 } 37441 37442 /** 37443 * Delete attributes 37444 */ 37445 public deleteAllRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 37446 this.attributes = attributes; 37447 return this; 37448 } 37449 37450 public void unsetAttributes() { 37451 this.attributes = null; 37452 } 37453 37454 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 37455 public boolean isSetAttributes() { 37456 return this.attributes != null; 37457 } 37458 37459 public void setAttributesIsSet(boolean value) { 37460 if (!value) { 37461 this.attributes = null; 37462 } 37463 } 37464 37465 public void setFieldValue(_Fields field, Object value) { 37466 switch (field) { 37467 case TABLE_NAME: 37468 if (value == null) { 37469 unsetTableName(); 37470 } else { 37471 setTableName((ByteBuffer)value); 37472 } 37473 break; 37474 37475 case ROW: 37476 if (value == null) { 37477 unsetRow(); 37478 } else { 37479 setRow((ByteBuffer)value); 37480 } 37481 break; 37482 37483 case ATTRIBUTES: 37484 if (value == null) { 37485 unsetAttributes(); 37486 } else { 37487 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 37488 } 37489 break; 37490 37491 } 37492 } 37493 37494 public Object getFieldValue(_Fields field) { 37495 switch (field) { 37496 case TABLE_NAME: 37497 return getTableName(); 37498 37499 case ROW: 37500 return getRow(); 37501 37502 case ATTRIBUTES: 37503 return getAttributes(); 37504 37505 } 37506 throw new IllegalStateException(); 37507 } 37508 37509 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 37510 public boolean isSet(_Fields field) { 37511 if (field == null) { 37512 throw new IllegalArgumentException(); 37513 } 37514 37515 switch (field) { 37516 case TABLE_NAME: 37517 return isSetTableName(); 37518 case ROW: 37519 return isSetRow(); 37520 case ATTRIBUTES: 37521 return isSetAttributes(); 37522 } 37523 throw new IllegalStateException(); 37524 } 37525 37526 @Override 37527 public boolean equals(Object that) { 37528 if (that == null) 37529 return false; 37530 if (that instanceof deleteAllRow_args) 37531 return this.equals((deleteAllRow_args)that); 37532 return false; 37533 } 37534 37535 public boolean equals(deleteAllRow_args that) { 37536 if (that == null) 37537 return false; 37538 37539 boolean this_present_tableName = true && this.isSetTableName(); 37540 boolean that_present_tableName = true && that.isSetTableName(); 37541 if (this_present_tableName || that_present_tableName) { 37542 if (!(this_present_tableName && that_present_tableName)) 37543 return false; 37544 if (!this.tableName.equals(that.tableName)) 37545 return false; 37546 } 37547 37548 boolean this_present_row = true && this.isSetRow(); 37549 boolean that_present_row = true && that.isSetRow(); 37550 if (this_present_row || that_present_row) { 37551 if (!(this_present_row && that_present_row)) 37552 return false; 37553 if (!this.row.equals(that.row)) 37554 return false; 37555 } 37556 37557 boolean this_present_attributes = true && this.isSetAttributes(); 37558 boolean that_present_attributes = true && that.isSetAttributes(); 37559 if (this_present_attributes || that_present_attributes) { 37560 if (!(this_present_attributes && that_present_attributes)) 37561 return false; 37562 if (!this.attributes.equals(that.attributes)) 37563 return false; 37564 } 37565 37566 return true; 37567 } 37568 37569 @Override 37570 public int hashCode() { 37571 HashCodeBuilder builder = new HashCodeBuilder(); 37572 37573 boolean present_tableName = true && (isSetTableName()); 37574 builder.append(present_tableName); 37575 if (present_tableName) 37576 builder.append(tableName); 37577 37578 boolean present_row = true && (isSetRow()); 37579 builder.append(present_row); 37580 if (present_row) 37581 builder.append(row); 37582 37583 boolean present_attributes = true && (isSetAttributes()); 37584 builder.append(present_attributes); 37585 if (present_attributes) 37586 builder.append(attributes); 37587 37588 return builder.toHashCode(); 37589 } 37590 37591 public int compareTo(deleteAllRow_args other) { 37592 if (!getClass().equals(other.getClass())) { 37593 return getClass().getName().compareTo(other.getClass().getName()); 37594 } 37595 37596 int lastComparison = 0; 37597 deleteAllRow_args typedOther = (deleteAllRow_args)other; 37598 37599 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 37600 if (lastComparison != 0) { 37601 return lastComparison; 37602 } 37603 if (isSetTableName()) { 37604 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 37605 if (lastComparison != 0) { 37606 return lastComparison; 37607 } 37608 } 37609 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 37610 if (lastComparison != 0) { 37611 return lastComparison; 37612 } 37613 if (isSetRow()) { 37614 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 37615 if (lastComparison != 0) { 37616 return lastComparison; 37617 } 37618 } 37619 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 37620 if (lastComparison != 0) { 37621 return lastComparison; 37622 } 37623 if (isSetAttributes()) { 37624 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 37625 if (lastComparison != 0) { 37626 return lastComparison; 37627 } 37628 } 37629 return 0; 37630 } 37631 37632 public _Fields fieldForId(int fieldId) { 37633 return _Fields.findByThriftId(fieldId); 37634 } 37635 37636 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 37637 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 37638 } 37639 37640 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 37641 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 37642 } 37643 37644 @Override 37645 public String toString() { 37646 StringBuilder sb = new StringBuilder("deleteAllRow_args("); 37647 boolean first = true; 37648 37649 sb.append("tableName:"); 37650 if (this.tableName == null) { 37651 sb.append("null"); 37652 } else { 37653 sb.append(this.tableName); 37654 } 37655 first = false; 37656 if (!first) sb.append(", "); 37657 sb.append("row:"); 37658 if (this.row == null) { 37659 sb.append("null"); 37660 } else { 37661 sb.append(this.row); 37662 } 37663 first = false; 37664 if (!first) sb.append(", "); 37665 sb.append("attributes:"); 37666 if (this.attributes == null) { 37667 sb.append("null"); 37668 } else { 37669 sb.append(this.attributes); 37670 } 37671 first = false; 37672 sb.append(")"); 37673 return sb.toString(); 37674 } 37675 37676 public void validate() throws org.apache.thrift.TException { 37677 // check for required fields 37678 } 37679 37680 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 37681 try { 37682 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 37683 } catch (org.apache.thrift.TException te) { 37684 throw new java.io.IOException(te); 37685 } 37686 } 37687 37688 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 37689 try { 37690 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 37691 } catch (org.apache.thrift.TException te) { 37692 throw new java.io.IOException(te); 37693 } 37694 } 37695 37696 private static class deleteAllRow_argsStandardSchemeFactory implements SchemeFactory { 37697 public deleteAllRow_argsStandardScheme getScheme() { 37698 return new deleteAllRow_argsStandardScheme(); 37699 } 37700 } 37701 37702 private static class deleteAllRow_argsStandardScheme extends StandardScheme<deleteAllRow_args> { 37703 37704 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_args struct) throws org.apache.thrift.TException { 37705 org.apache.thrift.protocol.TField schemeField; 37706 iprot.readStructBegin(); 37707 while (true) 37708 { 37709 schemeField = iprot.readFieldBegin(); 37710 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 37711 break; 37712 } 37713 switch (schemeField.id) { 37714 case 1: // TABLE_NAME 37715 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 37716 struct.tableName = iprot.readBinary(); 37717 struct.setTableNameIsSet(true); 37718 } else { 37719 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37720 } 37721 break; 37722 case 2: // ROW 37723 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 37724 struct.row = iprot.readBinary(); 37725 struct.setRowIsSet(true); 37726 } else { 37727 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37728 } 37729 break; 37730 case 3: // ATTRIBUTES 37731 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 37732 { 37733 org.apache.thrift.protocol.TMap _map422 = iprot.readMapBegin(); 37734 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map422.size); 37735 for (int _i423 = 0; _i423 < _map422.size; ++_i423) 37736 { 37737 ByteBuffer _key424; // required 37738 ByteBuffer _val425; // required 37739 _key424 = iprot.readBinary(); 37740 _val425 = iprot.readBinary(); 37741 struct.attributes.put(_key424, _val425); 37742 } 37743 iprot.readMapEnd(); 37744 } 37745 struct.setAttributesIsSet(true); 37746 } else { 37747 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37748 } 37749 break; 37750 default: 37751 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 37752 } 37753 iprot.readFieldEnd(); 37754 } 37755 iprot.readStructEnd(); 37756 37757 // check for required fields of primitive type, which can't be checked in the validate method 37758 struct.validate(); 37759 } 37760 37761 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_args struct) throws org.apache.thrift.TException { 37762 struct.validate(); 37763 37764 oprot.writeStructBegin(STRUCT_DESC); 37765 if (struct.tableName != null) { 37766 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 37767 oprot.writeBinary(struct.tableName); 37768 oprot.writeFieldEnd(); 37769 } 37770 if (struct.row != null) { 37771 oprot.writeFieldBegin(ROW_FIELD_DESC); 37772 oprot.writeBinary(struct.row); 37773 oprot.writeFieldEnd(); 37774 } 37775 if (struct.attributes != null) { 37776 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 37777 { 37778 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 37779 for (Map.Entry<ByteBuffer, ByteBuffer> _iter426 : struct.attributes.entrySet()) 37780 { 37781 oprot.writeBinary(_iter426.getKey()); 37782 oprot.writeBinary(_iter426.getValue()); 37783 } 37784 oprot.writeMapEnd(); 37785 } 37786 oprot.writeFieldEnd(); 37787 } 37788 oprot.writeFieldStop(); 37789 oprot.writeStructEnd(); 37790 } 37791 37792 } 37793 37794 private static class deleteAllRow_argsTupleSchemeFactory implements SchemeFactory { 37795 public deleteAllRow_argsTupleScheme getScheme() { 37796 return new deleteAllRow_argsTupleScheme(); 37797 } 37798 } 37799 37800 private static class deleteAllRow_argsTupleScheme extends TupleScheme<deleteAllRow_args> { 37801 37802 @Override 37803 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException { 37804 TTupleProtocol oprot = (TTupleProtocol) prot; 37805 BitSet optionals = new BitSet(); 37806 if (struct.isSetTableName()) { 37807 optionals.set(0); 37808 } 37809 if (struct.isSetRow()) { 37810 optionals.set(1); 37811 } 37812 if (struct.isSetAttributes()) { 37813 optionals.set(2); 37814 } 37815 oprot.writeBitSet(optionals, 3); 37816 if (struct.isSetTableName()) { 37817 oprot.writeBinary(struct.tableName); 37818 } 37819 if (struct.isSetRow()) { 37820 oprot.writeBinary(struct.row); 37821 } 37822 if (struct.isSetAttributes()) { 37823 { 37824 oprot.writeI32(struct.attributes.size()); 37825 for (Map.Entry<ByteBuffer, ByteBuffer> _iter427 : struct.attributes.entrySet()) 37826 { 37827 oprot.writeBinary(_iter427.getKey()); 37828 oprot.writeBinary(_iter427.getValue()); 37829 } 37830 } 37831 } 37832 } 37833 37834 @Override 37835 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException { 37836 TTupleProtocol iprot = (TTupleProtocol) prot; 37837 BitSet incoming = iprot.readBitSet(3); 37838 if (incoming.get(0)) { 37839 struct.tableName = iprot.readBinary(); 37840 struct.setTableNameIsSet(true); 37841 } 37842 if (incoming.get(1)) { 37843 struct.row = iprot.readBinary(); 37844 struct.setRowIsSet(true); 37845 } 37846 if (incoming.get(2)) { 37847 { 37848 org.apache.thrift.protocol.TMap _map428 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 37849 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map428.size); 37850 for (int _i429 = 0; _i429 < _map428.size; ++_i429) 37851 { 37852 ByteBuffer _key430; // required 37853 ByteBuffer _val431; // required 37854 _key430 = iprot.readBinary(); 37855 _val431 = iprot.readBinary(); 37856 struct.attributes.put(_key430, _val431); 37857 } 37858 } 37859 struct.setAttributesIsSet(true); 37860 } 37861 } 37862 } 37863 37864 } 37865 37866 public static class deleteAllRow_result implements org.apache.thrift.TBase<deleteAllRow_result, deleteAllRow_result._Fields>, java.io.Serializable, Cloneable { 37867 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_result"); 37868 37869 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 37870 37871 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 37872 static { 37873 schemes.put(StandardScheme.class, new deleteAllRow_resultStandardSchemeFactory()); 37874 schemes.put(TupleScheme.class, new deleteAllRow_resultTupleSchemeFactory()); 37875 } 37876 37877 public IOError io; // required 37878 37879 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 37880 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 37881 IO((short)1, "io"); 37882 37883 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 37884 37885 static { 37886 for (_Fields field : EnumSet.allOf(_Fields.class)) { 37887 byName.put(field.getFieldName(), field); 37888 } 37889 } 37890 37891 /** 37892 * Find the _Fields constant that matches fieldId, or null if its not found. 37893 */ 37894 public static _Fields findByThriftId(int fieldId) { 37895 switch(fieldId) { 37896 case 1: // IO 37897 return IO; 37898 default: 37899 return null; 37900 } 37901 } 37902 37903 /** 37904 * Find the _Fields constant that matches fieldId, throwing an exception 37905 * if it is not found. 37906 */ 37907 public static _Fields findByThriftIdOrThrow(int fieldId) { 37908 _Fields fields = findByThriftId(fieldId); 37909 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 37910 return fields; 37911 } 37912 37913 /** 37914 * Find the _Fields constant that matches name, or null if its not found. 37915 */ 37916 public static _Fields findByName(String name) { 37917 return byName.get(name); 37918 } 37919 37920 private final short _thriftId; 37921 private final String _fieldName; 37922 37923 _Fields(short thriftId, String fieldName) { 37924 _thriftId = thriftId; 37925 _fieldName = fieldName; 37926 } 37927 37928 public short getThriftFieldId() { 37929 return _thriftId; 37930 } 37931 37932 public String getFieldName() { 37933 return _fieldName; 37934 } 37935 } 37936 37937 // isset id assignments 37938 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 37939 static { 37940 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 37941 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 37942 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 37943 metaDataMap = Collections.unmodifiableMap(tmpMap); 37944 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_result.class, metaDataMap); 37945 } 37946 37947 public deleteAllRow_result() { 37948 } 37949 37950 public deleteAllRow_result( 37951 IOError io) 37952 { 37953 this(); 37954 this.io = io; 37955 } 37956 37957 /** 37958 * Performs a deep copy on <i>other</i>. 37959 */ 37960 public deleteAllRow_result(deleteAllRow_result other) { 37961 if (other.isSetIo()) { 37962 this.io = new IOError(other.io); 37963 } 37964 } 37965 37966 public deleteAllRow_result deepCopy() { 37967 return new deleteAllRow_result(this); 37968 } 37969 37970 @Override 37971 public void clear() { 37972 this.io = null; 37973 } 37974 37975 public IOError getIo() { 37976 return this.io; 37977 } 37978 37979 public deleteAllRow_result setIo(IOError io) { 37980 this.io = io; 37981 return this; 37982 } 37983 37984 public void unsetIo() { 37985 this.io = null; 37986 } 37987 37988 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 37989 public boolean isSetIo() { 37990 return this.io != null; 37991 } 37992 37993 public void setIoIsSet(boolean value) { 37994 if (!value) { 37995 this.io = null; 37996 } 37997 } 37998 37999 public void setFieldValue(_Fields field, Object value) { 38000 switch (field) { 38001 case IO: 38002 if (value == null) { 38003 unsetIo(); 38004 } else { 38005 setIo((IOError)value); 38006 } 38007 break; 38008 38009 } 38010 } 38011 38012 public Object getFieldValue(_Fields field) { 38013 switch (field) { 38014 case IO: 38015 return getIo(); 38016 38017 } 38018 throw new IllegalStateException(); 38019 } 38020 38021 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 38022 public boolean isSet(_Fields field) { 38023 if (field == null) { 38024 throw new IllegalArgumentException(); 38025 } 38026 38027 switch (field) { 38028 case IO: 38029 return isSetIo(); 38030 } 38031 throw new IllegalStateException(); 38032 } 38033 38034 @Override 38035 public boolean equals(Object that) { 38036 if (that == null) 38037 return false; 38038 if (that instanceof deleteAllRow_result) 38039 return this.equals((deleteAllRow_result)that); 38040 return false; 38041 } 38042 38043 public boolean equals(deleteAllRow_result that) { 38044 if (that == null) 38045 return false; 38046 38047 boolean this_present_io = true && this.isSetIo(); 38048 boolean that_present_io = true && that.isSetIo(); 38049 if (this_present_io || that_present_io) { 38050 if (!(this_present_io && that_present_io)) 38051 return false; 38052 if (!this.io.equals(that.io)) 38053 return false; 38054 } 38055 38056 return true; 38057 } 38058 38059 @Override 38060 public int hashCode() { 38061 HashCodeBuilder builder = new HashCodeBuilder(); 38062 38063 boolean present_io = true && (isSetIo()); 38064 builder.append(present_io); 38065 if (present_io) 38066 builder.append(io); 38067 38068 return builder.toHashCode(); 38069 } 38070 38071 public int compareTo(deleteAllRow_result other) { 38072 if (!getClass().equals(other.getClass())) { 38073 return getClass().getName().compareTo(other.getClass().getName()); 38074 } 38075 38076 int lastComparison = 0; 38077 deleteAllRow_result typedOther = (deleteAllRow_result)other; 38078 38079 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 38080 if (lastComparison != 0) { 38081 return lastComparison; 38082 } 38083 if (isSetIo()) { 38084 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 38085 if (lastComparison != 0) { 38086 return lastComparison; 38087 } 38088 } 38089 return 0; 38090 } 38091 38092 public _Fields fieldForId(int fieldId) { 38093 return _Fields.findByThriftId(fieldId); 38094 } 38095 38096 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 38097 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 38098 } 38099 38100 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 38101 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 38102 } 38103 38104 @Override 38105 public String toString() { 38106 StringBuilder sb = new StringBuilder("deleteAllRow_result("); 38107 boolean first = true; 38108 38109 sb.append("io:"); 38110 if (this.io == null) { 38111 sb.append("null"); 38112 } else { 38113 sb.append(this.io); 38114 } 38115 first = false; 38116 sb.append(")"); 38117 return sb.toString(); 38118 } 38119 38120 public void validate() throws org.apache.thrift.TException { 38121 // check for required fields 38122 } 38123 38124 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 38125 try { 38126 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 38127 } catch (org.apache.thrift.TException te) { 38128 throw new java.io.IOException(te); 38129 } 38130 } 38131 38132 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 38133 try { 38134 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 38135 } catch (org.apache.thrift.TException te) { 38136 throw new java.io.IOException(te); 38137 } 38138 } 38139 38140 private static class deleteAllRow_resultStandardSchemeFactory implements SchemeFactory { 38141 public deleteAllRow_resultStandardScheme getScheme() { 38142 return new deleteAllRow_resultStandardScheme(); 38143 } 38144 } 38145 38146 private static class deleteAllRow_resultStandardScheme extends StandardScheme<deleteAllRow_result> { 38147 38148 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_result struct) throws org.apache.thrift.TException { 38149 org.apache.thrift.protocol.TField schemeField; 38150 iprot.readStructBegin(); 38151 while (true) 38152 { 38153 schemeField = iprot.readFieldBegin(); 38154 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 38155 break; 38156 } 38157 switch (schemeField.id) { 38158 case 1: // IO 38159 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 38160 struct.io = new IOError(); 38161 struct.io.read(iprot); 38162 struct.setIoIsSet(true); 38163 } else { 38164 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38165 } 38166 break; 38167 default: 38168 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38169 } 38170 iprot.readFieldEnd(); 38171 } 38172 iprot.readStructEnd(); 38173 38174 // check for required fields of primitive type, which can't be checked in the validate method 38175 struct.validate(); 38176 } 38177 38178 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_result struct) throws org.apache.thrift.TException { 38179 struct.validate(); 38180 38181 oprot.writeStructBegin(STRUCT_DESC); 38182 if (struct.io != null) { 38183 oprot.writeFieldBegin(IO_FIELD_DESC); 38184 struct.io.write(oprot); 38185 oprot.writeFieldEnd(); 38186 } 38187 oprot.writeFieldStop(); 38188 oprot.writeStructEnd(); 38189 } 38190 38191 } 38192 38193 private static class deleteAllRow_resultTupleSchemeFactory implements SchemeFactory { 38194 public deleteAllRow_resultTupleScheme getScheme() { 38195 return new deleteAllRow_resultTupleScheme(); 38196 } 38197 } 38198 38199 private static class deleteAllRow_resultTupleScheme extends TupleScheme<deleteAllRow_result> { 38200 38201 @Override 38202 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException { 38203 TTupleProtocol oprot = (TTupleProtocol) prot; 38204 BitSet optionals = new BitSet(); 38205 if (struct.isSetIo()) { 38206 optionals.set(0); 38207 } 38208 oprot.writeBitSet(optionals, 1); 38209 if (struct.isSetIo()) { 38210 struct.io.write(oprot); 38211 } 38212 } 38213 38214 @Override 38215 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException { 38216 TTupleProtocol iprot = (TTupleProtocol) prot; 38217 BitSet incoming = iprot.readBitSet(1); 38218 if (incoming.get(0)) { 38219 struct.io = new IOError(); 38220 struct.io.read(iprot); 38221 struct.setIoIsSet(true); 38222 } 38223 } 38224 } 38225 38226 } 38227 38228 public static class increment_args implements org.apache.thrift.TBase<increment_args, increment_args._Fields>, java.io.Serializable, Cloneable { 38229 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args"); 38230 38231 private static final org.apache.thrift.protocol.TField INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("increment", org.apache.thrift.protocol.TType.STRUCT, (short)1); 38232 38233 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 38234 static { 38235 schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory()); 38236 schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory()); 38237 } 38238 38239 /** 38240 * The single increment to apply 38241 */ 38242 public TIncrement increment; // required 38243 38244 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 38245 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 38246 /** 38247 * The single increment to apply 38248 */ 38249 INCREMENT((short)1, "increment"); 38250 38251 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 38252 38253 static { 38254 for (_Fields field : EnumSet.allOf(_Fields.class)) { 38255 byName.put(field.getFieldName(), field); 38256 } 38257 } 38258 38259 /** 38260 * Find the _Fields constant that matches fieldId, or null if its not found. 38261 */ 38262 public static _Fields findByThriftId(int fieldId) { 38263 switch(fieldId) { 38264 case 1: // INCREMENT 38265 return INCREMENT; 38266 default: 38267 return null; 38268 } 38269 } 38270 38271 /** 38272 * Find the _Fields constant that matches fieldId, throwing an exception 38273 * if it is not found. 38274 */ 38275 public static _Fields findByThriftIdOrThrow(int fieldId) { 38276 _Fields fields = findByThriftId(fieldId); 38277 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 38278 return fields; 38279 } 38280 38281 /** 38282 * Find the _Fields constant that matches name, or null if its not found. 38283 */ 38284 public static _Fields findByName(String name) { 38285 return byName.get(name); 38286 } 38287 38288 private final short _thriftId; 38289 private final String _fieldName; 38290 38291 _Fields(short thriftId, String fieldName) { 38292 _thriftId = thriftId; 38293 _fieldName = fieldName; 38294 } 38295 38296 public short getThriftFieldId() { 38297 return _thriftId; 38298 } 38299 38300 public String getFieldName() { 38301 return _fieldName; 38302 } 38303 } 38304 38305 // isset id assignments 38306 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 38307 static { 38308 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 38309 tmpMap.put(_Fields.INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("increment", org.apache.thrift.TFieldRequirementType.DEFAULT, 38310 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))); 38311 metaDataMap = Collections.unmodifiableMap(tmpMap); 38312 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap); 38313 } 38314 38315 public increment_args() { 38316 } 38317 38318 public increment_args( 38319 TIncrement increment) 38320 { 38321 this(); 38322 this.increment = increment; 38323 } 38324 38325 /** 38326 * Performs a deep copy on <i>other</i>. 38327 */ 38328 public increment_args(increment_args other) { 38329 if (other.isSetIncrement()) { 38330 this.increment = new TIncrement(other.increment); 38331 } 38332 } 38333 38334 public increment_args deepCopy() { 38335 return new increment_args(this); 38336 } 38337 38338 @Override 38339 public void clear() { 38340 this.increment = null; 38341 } 38342 38343 /** 38344 * The single increment to apply 38345 */ 38346 public TIncrement getIncrement() { 38347 return this.increment; 38348 } 38349 38350 /** 38351 * The single increment to apply 38352 */ 38353 public increment_args setIncrement(TIncrement increment) { 38354 this.increment = increment; 38355 return this; 38356 } 38357 38358 public void unsetIncrement() { 38359 this.increment = null; 38360 } 38361 38362 /** Returns true if field increment is set (has been assigned a value) and false otherwise */ 38363 public boolean isSetIncrement() { 38364 return this.increment != null; 38365 } 38366 38367 public void setIncrementIsSet(boolean value) { 38368 if (!value) { 38369 this.increment = null; 38370 } 38371 } 38372 38373 public void setFieldValue(_Fields field, Object value) { 38374 switch (field) { 38375 case INCREMENT: 38376 if (value == null) { 38377 unsetIncrement(); 38378 } else { 38379 setIncrement((TIncrement)value); 38380 } 38381 break; 38382 38383 } 38384 } 38385 38386 public Object getFieldValue(_Fields field) { 38387 switch (field) { 38388 case INCREMENT: 38389 return getIncrement(); 38390 38391 } 38392 throw new IllegalStateException(); 38393 } 38394 38395 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 38396 public boolean isSet(_Fields field) { 38397 if (field == null) { 38398 throw new IllegalArgumentException(); 38399 } 38400 38401 switch (field) { 38402 case INCREMENT: 38403 return isSetIncrement(); 38404 } 38405 throw new IllegalStateException(); 38406 } 38407 38408 @Override 38409 public boolean equals(Object that) { 38410 if (that == null) 38411 return false; 38412 if (that instanceof increment_args) 38413 return this.equals((increment_args)that); 38414 return false; 38415 } 38416 38417 public boolean equals(increment_args that) { 38418 if (that == null) 38419 return false; 38420 38421 boolean this_present_increment = true && this.isSetIncrement(); 38422 boolean that_present_increment = true && that.isSetIncrement(); 38423 if (this_present_increment || that_present_increment) { 38424 if (!(this_present_increment && that_present_increment)) 38425 return false; 38426 if (!this.increment.equals(that.increment)) 38427 return false; 38428 } 38429 38430 return true; 38431 } 38432 38433 @Override 38434 public int hashCode() { 38435 HashCodeBuilder builder = new HashCodeBuilder(); 38436 38437 boolean present_increment = true && (isSetIncrement()); 38438 builder.append(present_increment); 38439 if (present_increment) 38440 builder.append(increment); 38441 38442 return builder.toHashCode(); 38443 } 38444 38445 public int compareTo(increment_args other) { 38446 if (!getClass().equals(other.getClass())) { 38447 return getClass().getName().compareTo(other.getClass().getName()); 38448 } 38449 38450 int lastComparison = 0; 38451 increment_args typedOther = (increment_args)other; 38452 38453 lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(typedOther.isSetIncrement()); 38454 if (lastComparison != 0) { 38455 return lastComparison; 38456 } 38457 if (isSetIncrement()) { 38458 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increment, typedOther.increment); 38459 if (lastComparison != 0) { 38460 return lastComparison; 38461 } 38462 } 38463 return 0; 38464 } 38465 38466 public _Fields fieldForId(int fieldId) { 38467 return _Fields.findByThriftId(fieldId); 38468 } 38469 38470 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 38471 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 38472 } 38473 38474 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 38475 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 38476 } 38477 38478 @Override 38479 public String toString() { 38480 StringBuilder sb = new StringBuilder("increment_args("); 38481 boolean first = true; 38482 38483 sb.append("increment:"); 38484 if (this.increment == null) { 38485 sb.append("null"); 38486 } else { 38487 sb.append(this.increment); 38488 } 38489 first = false; 38490 sb.append(")"); 38491 return sb.toString(); 38492 } 38493 38494 public void validate() throws org.apache.thrift.TException { 38495 // check for required fields 38496 } 38497 38498 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 38499 try { 38500 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 38501 } catch (org.apache.thrift.TException te) { 38502 throw new java.io.IOException(te); 38503 } 38504 } 38505 38506 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 38507 try { 38508 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 38509 } catch (org.apache.thrift.TException te) { 38510 throw new java.io.IOException(te); 38511 } 38512 } 38513 38514 private static class increment_argsStandardSchemeFactory implements SchemeFactory { 38515 public increment_argsStandardScheme getScheme() { 38516 return new increment_argsStandardScheme(); 38517 } 38518 } 38519 38520 private static class increment_argsStandardScheme extends StandardScheme<increment_args> { 38521 38522 public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException { 38523 org.apache.thrift.protocol.TField schemeField; 38524 iprot.readStructBegin(); 38525 while (true) 38526 { 38527 schemeField = iprot.readFieldBegin(); 38528 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 38529 break; 38530 } 38531 switch (schemeField.id) { 38532 case 1: // INCREMENT 38533 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 38534 struct.increment = new TIncrement(); 38535 struct.increment.read(iprot); 38536 struct.setIncrementIsSet(true); 38537 } else { 38538 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38539 } 38540 break; 38541 default: 38542 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38543 } 38544 iprot.readFieldEnd(); 38545 } 38546 iprot.readStructEnd(); 38547 38548 // check for required fields of primitive type, which can't be checked in the validate method 38549 struct.validate(); 38550 } 38551 38552 public void write(org.apache.thrift.protocol.TProtocol oprot, increment_args struct) throws org.apache.thrift.TException { 38553 struct.validate(); 38554 38555 oprot.writeStructBegin(STRUCT_DESC); 38556 if (struct.increment != null) { 38557 oprot.writeFieldBegin(INCREMENT_FIELD_DESC); 38558 struct.increment.write(oprot); 38559 oprot.writeFieldEnd(); 38560 } 38561 oprot.writeFieldStop(); 38562 oprot.writeStructEnd(); 38563 } 38564 38565 } 38566 38567 private static class increment_argsTupleSchemeFactory implements SchemeFactory { 38568 public increment_argsTupleScheme getScheme() { 38569 return new increment_argsTupleScheme(); 38570 } 38571 } 38572 38573 private static class increment_argsTupleScheme extends TupleScheme<increment_args> { 38574 38575 @Override 38576 public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { 38577 TTupleProtocol oprot = (TTupleProtocol) prot; 38578 BitSet optionals = new BitSet(); 38579 if (struct.isSetIncrement()) { 38580 optionals.set(0); 38581 } 38582 oprot.writeBitSet(optionals, 1); 38583 if (struct.isSetIncrement()) { 38584 struct.increment.write(oprot); 38585 } 38586 } 38587 38588 @Override 38589 public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException { 38590 TTupleProtocol iprot = (TTupleProtocol) prot; 38591 BitSet incoming = iprot.readBitSet(1); 38592 if (incoming.get(0)) { 38593 struct.increment = new TIncrement(); 38594 struct.increment.read(iprot); 38595 struct.setIncrementIsSet(true); 38596 } 38597 } 38598 } 38599 38600 } 38601 38602 public static class increment_result implements org.apache.thrift.TBase<increment_result, increment_result._Fields>, java.io.Serializable, Cloneable { 38603 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result"); 38604 38605 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 38606 38607 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 38608 static { 38609 schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory()); 38610 schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory()); 38611 } 38612 38613 public IOError io; // required 38614 38615 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 38616 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 38617 IO((short)1, "io"); 38618 38619 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 38620 38621 static { 38622 for (_Fields field : EnumSet.allOf(_Fields.class)) { 38623 byName.put(field.getFieldName(), field); 38624 } 38625 } 38626 38627 /** 38628 * Find the _Fields constant that matches fieldId, or null if its not found. 38629 */ 38630 public static _Fields findByThriftId(int fieldId) { 38631 switch(fieldId) { 38632 case 1: // IO 38633 return IO; 38634 default: 38635 return null; 38636 } 38637 } 38638 38639 /** 38640 * Find the _Fields constant that matches fieldId, throwing an exception 38641 * if it is not found. 38642 */ 38643 public static _Fields findByThriftIdOrThrow(int fieldId) { 38644 _Fields fields = findByThriftId(fieldId); 38645 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 38646 return fields; 38647 } 38648 38649 /** 38650 * Find the _Fields constant that matches name, or null if its not found. 38651 */ 38652 public static _Fields findByName(String name) { 38653 return byName.get(name); 38654 } 38655 38656 private final short _thriftId; 38657 private final String _fieldName; 38658 38659 _Fields(short thriftId, String fieldName) { 38660 _thriftId = thriftId; 38661 _fieldName = fieldName; 38662 } 38663 38664 public short getThriftFieldId() { 38665 return _thriftId; 38666 } 38667 38668 public String getFieldName() { 38669 return _fieldName; 38670 } 38671 } 38672 38673 // isset id assignments 38674 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 38675 static { 38676 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 38677 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 38678 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 38679 metaDataMap = Collections.unmodifiableMap(tmpMap); 38680 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap); 38681 } 38682 38683 public increment_result() { 38684 } 38685 38686 public increment_result( 38687 IOError io) 38688 { 38689 this(); 38690 this.io = io; 38691 } 38692 38693 /** 38694 * Performs a deep copy on <i>other</i>. 38695 */ 38696 public increment_result(increment_result other) { 38697 if (other.isSetIo()) { 38698 this.io = new IOError(other.io); 38699 } 38700 } 38701 38702 public increment_result deepCopy() { 38703 return new increment_result(this); 38704 } 38705 38706 @Override 38707 public void clear() { 38708 this.io = null; 38709 } 38710 38711 public IOError getIo() { 38712 return this.io; 38713 } 38714 38715 public increment_result setIo(IOError io) { 38716 this.io = io; 38717 return this; 38718 } 38719 38720 public void unsetIo() { 38721 this.io = null; 38722 } 38723 38724 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 38725 public boolean isSetIo() { 38726 return this.io != null; 38727 } 38728 38729 public void setIoIsSet(boolean value) { 38730 if (!value) { 38731 this.io = null; 38732 } 38733 } 38734 38735 public void setFieldValue(_Fields field, Object value) { 38736 switch (field) { 38737 case IO: 38738 if (value == null) { 38739 unsetIo(); 38740 } else { 38741 setIo((IOError)value); 38742 } 38743 break; 38744 38745 } 38746 } 38747 38748 public Object getFieldValue(_Fields field) { 38749 switch (field) { 38750 case IO: 38751 return getIo(); 38752 38753 } 38754 throw new IllegalStateException(); 38755 } 38756 38757 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 38758 public boolean isSet(_Fields field) { 38759 if (field == null) { 38760 throw new IllegalArgumentException(); 38761 } 38762 38763 switch (field) { 38764 case IO: 38765 return isSetIo(); 38766 } 38767 throw new IllegalStateException(); 38768 } 38769 38770 @Override 38771 public boolean equals(Object that) { 38772 if (that == null) 38773 return false; 38774 if (that instanceof increment_result) 38775 return this.equals((increment_result)that); 38776 return false; 38777 } 38778 38779 public boolean equals(increment_result that) { 38780 if (that == null) 38781 return false; 38782 38783 boolean this_present_io = true && this.isSetIo(); 38784 boolean that_present_io = true && that.isSetIo(); 38785 if (this_present_io || that_present_io) { 38786 if (!(this_present_io && that_present_io)) 38787 return false; 38788 if (!this.io.equals(that.io)) 38789 return false; 38790 } 38791 38792 return true; 38793 } 38794 38795 @Override 38796 public int hashCode() { 38797 HashCodeBuilder builder = new HashCodeBuilder(); 38798 38799 boolean present_io = true && (isSetIo()); 38800 builder.append(present_io); 38801 if (present_io) 38802 builder.append(io); 38803 38804 return builder.toHashCode(); 38805 } 38806 38807 public int compareTo(increment_result other) { 38808 if (!getClass().equals(other.getClass())) { 38809 return getClass().getName().compareTo(other.getClass().getName()); 38810 } 38811 38812 int lastComparison = 0; 38813 increment_result typedOther = (increment_result)other; 38814 38815 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 38816 if (lastComparison != 0) { 38817 return lastComparison; 38818 } 38819 if (isSetIo()) { 38820 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 38821 if (lastComparison != 0) { 38822 return lastComparison; 38823 } 38824 } 38825 return 0; 38826 } 38827 38828 public _Fields fieldForId(int fieldId) { 38829 return _Fields.findByThriftId(fieldId); 38830 } 38831 38832 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 38833 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 38834 } 38835 38836 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 38837 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 38838 } 38839 38840 @Override 38841 public String toString() { 38842 StringBuilder sb = new StringBuilder("increment_result("); 38843 boolean first = true; 38844 38845 sb.append("io:"); 38846 if (this.io == null) { 38847 sb.append("null"); 38848 } else { 38849 sb.append(this.io); 38850 } 38851 first = false; 38852 sb.append(")"); 38853 return sb.toString(); 38854 } 38855 38856 public void validate() throws org.apache.thrift.TException { 38857 // check for required fields 38858 } 38859 38860 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 38861 try { 38862 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 38863 } catch (org.apache.thrift.TException te) { 38864 throw new java.io.IOException(te); 38865 } 38866 } 38867 38868 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 38869 try { 38870 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 38871 } catch (org.apache.thrift.TException te) { 38872 throw new java.io.IOException(te); 38873 } 38874 } 38875 38876 private static class increment_resultStandardSchemeFactory implements SchemeFactory { 38877 public increment_resultStandardScheme getScheme() { 38878 return new increment_resultStandardScheme(); 38879 } 38880 } 38881 38882 private static class increment_resultStandardScheme extends StandardScheme<increment_result> { 38883 38884 public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException { 38885 org.apache.thrift.protocol.TField schemeField; 38886 iprot.readStructBegin(); 38887 while (true) 38888 { 38889 schemeField = iprot.readFieldBegin(); 38890 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 38891 break; 38892 } 38893 switch (schemeField.id) { 38894 case 1: // IO 38895 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 38896 struct.io = new IOError(); 38897 struct.io.read(iprot); 38898 struct.setIoIsSet(true); 38899 } else { 38900 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38901 } 38902 break; 38903 default: 38904 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 38905 } 38906 iprot.readFieldEnd(); 38907 } 38908 iprot.readStructEnd(); 38909 38910 // check for required fields of primitive type, which can't be checked in the validate method 38911 struct.validate(); 38912 } 38913 38914 public void write(org.apache.thrift.protocol.TProtocol oprot, increment_result struct) throws org.apache.thrift.TException { 38915 struct.validate(); 38916 38917 oprot.writeStructBegin(STRUCT_DESC); 38918 if (struct.io != null) { 38919 oprot.writeFieldBegin(IO_FIELD_DESC); 38920 struct.io.write(oprot); 38921 oprot.writeFieldEnd(); 38922 } 38923 oprot.writeFieldStop(); 38924 oprot.writeStructEnd(); 38925 } 38926 38927 } 38928 38929 private static class increment_resultTupleSchemeFactory implements SchemeFactory { 38930 public increment_resultTupleScheme getScheme() { 38931 return new increment_resultTupleScheme(); 38932 } 38933 } 38934 38935 private static class increment_resultTupleScheme extends TupleScheme<increment_result> { 38936 38937 @Override 38938 public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { 38939 TTupleProtocol oprot = (TTupleProtocol) prot; 38940 BitSet optionals = new BitSet(); 38941 if (struct.isSetIo()) { 38942 optionals.set(0); 38943 } 38944 oprot.writeBitSet(optionals, 1); 38945 if (struct.isSetIo()) { 38946 struct.io.write(oprot); 38947 } 38948 } 38949 38950 @Override 38951 public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException { 38952 TTupleProtocol iprot = (TTupleProtocol) prot; 38953 BitSet incoming = iprot.readBitSet(1); 38954 if (incoming.get(0)) { 38955 struct.io = new IOError(); 38956 struct.io.read(iprot); 38957 struct.setIoIsSet(true); 38958 } 38959 } 38960 } 38961 38962 } 38963 38964 public static class incrementRows_args implements org.apache.thrift.TBase<incrementRows_args, incrementRows_args._Fields>, java.io.Serializable, Cloneable { 38965 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_args"); 38966 38967 private static final org.apache.thrift.protocol.TField INCREMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("increments", org.apache.thrift.protocol.TType.LIST, (short)1); 38968 38969 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 38970 static { 38971 schemes.put(StandardScheme.class, new incrementRows_argsStandardSchemeFactory()); 38972 schemes.put(TupleScheme.class, new incrementRows_argsTupleSchemeFactory()); 38973 } 38974 38975 /** 38976 * The list of increments 38977 */ 38978 public List<TIncrement> increments; // required 38979 38980 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 38981 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 38982 /** 38983 * The list of increments 38984 */ 38985 INCREMENTS((short)1, "increments"); 38986 38987 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 38988 38989 static { 38990 for (_Fields field : EnumSet.allOf(_Fields.class)) { 38991 byName.put(field.getFieldName(), field); 38992 } 38993 } 38994 38995 /** 38996 * Find the _Fields constant that matches fieldId, or null if its not found. 38997 */ 38998 public static _Fields findByThriftId(int fieldId) { 38999 switch(fieldId) { 39000 case 1: // INCREMENTS 39001 return INCREMENTS; 39002 default: 39003 return null; 39004 } 39005 } 39006 39007 /** 39008 * Find the _Fields constant that matches fieldId, throwing an exception 39009 * if it is not found. 39010 */ 39011 public static _Fields findByThriftIdOrThrow(int fieldId) { 39012 _Fields fields = findByThriftId(fieldId); 39013 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 39014 return fields; 39015 } 39016 39017 /** 39018 * Find the _Fields constant that matches name, or null if its not found. 39019 */ 39020 public static _Fields findByName(String name) { 39021 return byName.get(name); 39022 } 39023 39024 private final short _thriftId; 39025 private final String _fieldName; 39026 39027 _Fields(short thriftId, String fieldName) { 39028 _thriftId = thriftId; 39029 _fieldName = fieldName; 39030 } 39031 39032 public short getThriftFieldId() { 39033 return _thriftId; 39034 } 39035 39036 public String getFieldName() { 39037 return _fieldName; 39038 } 39039 } 39040 39041 // isset id assignments 39042 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 39043 static { 39044 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 39045 tmpMap.put(_Fields.INCREMENTS, new org.apache.thrift.meta_data.FieldMetaData("increments", org.apache.thrift.TFieldRequirementType.DEFAULT, 39046 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 39047 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class)))); 39048 metaDataMap = Collections.unmodifiableMap(tmpMap); 39049 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_args.class, metaDataMap); 39050 } 39051 39052 public incrementRows_args() { 39053 } 39054 39055 public incrementRows_args( 39056 List<TIncrement> increments) 39057 { 39058 this(); 39059 this.increments = increments; 39060 } 39061 39062 /** 39063 * Performs a deep copy on <i>other</i>. 39064 */ 39065 public incrementRows_args(incrementRows_args other) { 39066 if (other.isSetIncrements()) { 39067 List<TIncrement> __this__increments = new ArrayList<TIncrement>(); 39068 for (TIncrement other_element : other.increments) { 39069 __this__increments.add(new TIncrement(other_element)); 39070 } 39071 this.increments = __this__increments; 39072 } 39073 } 39074 39075 public incrementRows_args deepCopy() { 39076 return new incrementRows_args(this); 39077 } 39078 39079 @Override 39080 public void clear() { 39081 this.increments = null; 39082 } 39083 39084 public int getIncrementsSize() { 39085 return (this.increments == null) ? 0 : this.increments.size(); 39086 } 39087 39088 public java.util.Iterator<TIncrement> getIncrementsIterator() { 39089 return (this.increments == null) ? null : this.increments.iterator(); 39090 } 39091 39092 public void addToIncrements(TIncrement elem) { 39093 if (this.increments == null) { 39094 this.increments = new ArrayList<TIncrement>(); 39095 } 39096 this.increments.add(elem); 39097 } 39098 39099 /** 39100 * The list of increments 39101 */ 39102 public List<TIncrement> getIncrements() { 39103 return this.increments; 39104 } 39105 39106 /** 39107 * The list of increments 39108 */ 39109 public incrementRows_args setIncrements(List<TIncrement> increments) { 39110 this.increments = increments; 39111 return this; 39112 } 39113 39114 public void unsetIncrements() { 39115 this.increments = null; 39116 } 39117 39118 /** Returns true if field increments is set (has been assigned a value) and false otherwise */ 39119 public boolean isSetIncrements() { 39120 return this.increments != null; 39121 } 39122 39123 public void setIncrementsIsSet(boolean value) { 39124 if (!value) { 39125 this.increments = null; 39126 } 39127 } 39128 39129 public void setFieldValue(_Fields field, Object value) { 39130 switch (field) { 39131 case INCREMENTS: 39132 if (value == null) { 39133 unsetIncrements(); 39134 } else { 39135 setIncrements((List<TIncrement>)value); 39136 } 39137 break; 39138 39139 } 39140 } 39141 39142 public Object getFieldValue(_Fields field) { 39143 switch (field) { 39144 case INCREMENTS: 39145 return getIncrements(); 39146 39147 } 39148 throw new IllegalStateException(); 39149 } 39150 39151 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 39152 public boolean isSet(_Fields field) { 39153 if (field == null) { 39154 throw new IllegalArgumentException(); 39155 } 39156 39157 switch (field) { 39158 case INCREMENTS: 39159 return isSetIncrements(); 39160 } 39161 throw new IllegalStateException(); 39162 } 39163 39164 @Override 39165 public boolean equals(Object that) { 39166 if (that == null) 39167 return false; 39168 if (that instanceof incrementRows_args) 39169 return this.equals((incrementRows_args)that); 39170 return false; 39171 } 39172 39173 public boolean equals(incrementRows_args that) { 39174 if (that == null) 39175 return false; 39176 39177 boolean this_present_increments = true && this.isSetIncrements(); 39178 boolean that_present_increments = true && that.isSetIncrements(); 39179 if (this_present_increments || that_present_increments) { 39180 if (!(this_present_increments && that_present_increments)) 39181 return false; 39182 if (!this.increments.equals(that.increments)) 39183 return false; 39184 } 39185 39186 return true; 39187 } 39188 39189 @Override 39190 public int hashCode() { 39191 HashCodeBuilder builder = new HashCodeBuilder(); 39192 39193 boolean present_increments = true && (isSetIncrements()); 39194 builder.append(present_increments); 39195 if (present_increments) 39196 builder.append(increments); 39197 39198 return builder.toHashCode(); 39199 } 39200 39201 public int compareTo(incrementRows_args other) { 39202 if (!getClass().equals(other.getClass())) { 39203 return getClass().getName().compareTo(other.getClass().getName()); 39204 } 39205 39206 int lastComparison = 0; 39207 incrementRows_args typedOther = (incrementRows_args)other; 39208 39209 lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(typedOther.isSetIncrements()); 39210 if (lastComparison != 0) { 39211 return lastComparison; 39212 } 39213 if (isSetIncrements()) { 39214 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increments, typedOther.increments); 39215 if (lastComparison != 0) { 39216 return lastComparison; 39217 } 39218 } 39219 return 0; 39220 } 39221 39222 public _Fields fieldForId(int fieldId) { 39223 return _Fields.findByThriftId(fieldId); 39224 } 39225 39226 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 39227 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 39228 } 39229 39230 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 39231 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 39232 } 39233 39234 @Override 39235 public String toString() { 39236 StringBuilder sb = new StringBuilder("incrementRows_args("); 39237 boolean first = true; 39238 39239 sb.append("increments:"); 39240 if (this.increments == null) { 39241 sb.append("null"); 39242 } else { 39243 sb.append(this.increments); 39244 } 39245 first = false; 39246 sb.append(")"); 39247 return sb.toString(); 39248 } 39249 39250 public void validate() throws org.apache.thrift.TException { 39251 // check for required fields 39252 } 39253 39254 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 39255 try { 39256 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 39257 } catch (org.apache.thrift.TException te) { 39258 throw new java.io.IOException(te); 39259 } 39260 } 39261 39262 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 39263 try { 39264 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 39265 } catch (org.apache.thrift.TException te) { 39266 throw new java.io.IOException(te); 39267 } 39268 } 39269 39270 private static class incrementRows_argsStandardSchemeFactory implements SchemeFactory { 39271 public incrementRows_argsStandardScheme getScheme() { 39272 return new incrementRows_argsStandardScheme(); 39273 } 39274 } 39275 39276 private static class incrementRows_argsStandardScheme extends StandardScheme<incrementRows_args> { 39277 39278 public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_args struct) throws org.apache.thrift.TException { 39279 org.apache.thrift.protocol.TField schemeField; 39280 iprot.readStructBegin(); 39281 while (true) 39282 { 39283 schemeField = iprot.readFieldBegin(); 39284 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 39285 break; 39286 } 39287 switch (schemeField.id) { 39288 case 1: // INCREMENTS 39289 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 39290 { 39291 org.apache.thrift.protocol.TList _list432 = iprot.readListBegin(); 39292 struct.increments = new ArrayList<TIncrement>(_list432.size); 39293 for (int _i433 = 0; _i433 < _list432.size; ++_i433) 39294 { 39295 TIncrement _elem434; // required 39296 _elem434 = new TIncrement(); 39297 _elem434.read(iprot); 39298 struct.increments.add(_elem434); 39299 } 39300 iprot.readListEnd(); 39301 } 39302 struct.setIncrementsIsSet(true); 39303 } else { 39304 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 39305 } 39306 break; 39307 default: 39308 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 39309 } 39310 iprot.readFieldEnd(); 39311 } 39312 iprot.readStructEnd(); 39313 39314 // check for required fields of primitive type, which can't be checked in the validate method 39315 struct.validate(); 39316 } 39317 39318 public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_args struct) throws org.apache.thrift.TException { 39319 struct.validate(); 39320 39321 oprot.writeStructBegin(STRUCT_DESC); 39322 if (struct.increments != null) { 39323 oprot.writeFieldBegin(INCREMENTS_FIELD_DESC); 39324 { 39325 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.increments.size())); 39326 for (TIncrement _iter435 : struct.increments) 39327 { 39328 _iter435.write(oprot); 39329 } 39330 oprot.writeListEnd(); 39331 } 39332 oprot.writeFieldEnd(); 39333 } 39334 oprot.writeFieldStop(); 39335 oprot.writeStructEnd(); 39336 } 39337 39338 } 39339 39340 private static class incrementRows_argsTupleSchemeFactory implements SchemeFactory { 39341 public incrementRows_argsTupleScheme getScheme() { 39342 return new incrementRows_argsTupleScheme(); 39343 } 39344 } 39345 39346 private static class incrementRows_argsTupleScheme extends TupleScheme<incrementRows_args> { 39347 39348 @Override 39349 public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException { 39350 TTupleProtocol oprot = (TTupleProtocol) prot; 39351 BitSet optionals = new BitSet(); 39352 if (struct.isSetIncrements()) { 39353 optionals.set(0); 39354 } 39355 oprot.writeBitSet(optionals, 1); 39356 if (struct.isSetIncrements()) { 39357 { 39358 oprot.writeI32(struct.increments.size()); 39359 for (TIncrement _iter436 : struct.increments) 39360 { 39361 _iter436.write(oprot); 39362 } 39363 } 39364 } 39365 } 39366 39367 @Override 39368 public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException { 39369 TTupleProtocol iprot = (TTupleProtocol) prot; 39370 BitSet incoming = iprot.readBitSet(1); 39371 if (incoming.get(0)) { 39372 { 39373 org.apache.thrift.protocol.TList _list437 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 39374 struct.increments = new ArrayList<TIncrement>(_list437.size); 39375 for (int _i438 = 0; _i438 < _list437.size; ++_i438) 39376 { 39377 TIncrement _elem439; // required 39378 _elem439 = new TIncrement(); 39379 _elem439.read(iprot); 39380 struct.increments.add(_elem439); 39381 } 39382 } 39383 struct.setIncrementsIsSet(true); 39384 } 39385 } 39386 } 39387 39388 } 39389 39390 public static class incrementRows_result implements org.apache.thrift.TBase<incrementRows_result, incrementRows_result._Fields>, java.io.Serializable, Cloneable { 39391 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_result"); 39392 39393 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 39394 39395 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 39396 static { 39397 schemes.put(StandardScheme.class, new incrementRows_resultStandardSchemeFactory()); 39398 schemes.put(TupleScheme.class, new incrementRows_resultTupleSchemeFactory()); 39399 } 39400 39401 public IOError io; // required 39402 39403 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 39404 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 39405 IO((short)1, "io"); 39406 39407 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 39408 39409 static { 39410 for (_Fields field : EnumSet.allOf(_Fields.class)) { 39411 byName.put(field.getFieldName(), field); 39412 } 39413 } 39414 39415 /** 39416 * Find the _Fields constant that matches fieldId, or null if its not found. 39417 */ 39418 public static _Fields findByThriftId(int fieldId) { 39419 switch(fieldId) { 39420 case 1: // IO 39421 return IO; 39422 default: 39423 return null; 39424 } 39425 } 39426 39427 /** 39428 * Find the _Fields constant that matches fieldId, throwing an exception 39429 * if it is not found. 39430 */ 39431 public static _Fields findByThriftIdOrThrow(int fieldId) { 39432 _Fields fields = findByThriftId(fieldId); 39433 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 39434 return fields; 39435 } 39436 39437 /** 39438 * Find the _Fields constant that matches name, or null if its not found. 39439 */ 39440 public static _Fields findByName(String name) { 39441 return byName.get(name); 39442 } 39443 39444 private final short _thriftId; 39445 private final String _fieldName; 39446 39447 _Fields(short thriftId, String fieldName) { 39448 _thriftId = thriftId; 39449 _fieldName = fieldName; 39450 } 39451 39452 public short getThriftFieldId() { 39453 return _thriftId; 39454 } 39455 39456 public String getFieldName() { 39457 return _fieldName; 39458 } 39459 } 39460 39461 // isset id assignments 39462 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 39463 static { 39464 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 39465 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 39466 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 39467 metaDataMap = Collections.unmodifiableMap(tmpMap); 39468 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_result.class, metaDataMap); 39469 } 39470 39471 public incrementRows_result() { 39472 } 39473 39474 public incrementRows_result( 39475 IOError io) 39476 { 39477 this(); 39478 this.io = io; 39479 } 39480 39481 /** 39482 * Performs a deep copy on <i>other</i>. 39483 */ 39484 public incrementRows_result(incrementRows_result other) { 39485 if (other.isSetIo()) { 39486 this.io = new IOError(other.io); 39487 } 39488 } 39489 39490 public incrementRows_result deepCopy() { 39491 return new incrementRows_result(this); 39492 } 39493 39494 @Override 39495 public void clear() { 39496 this.io = null; 39497 } 39498 39499 public IOError getIo() { 39500 return this.io; 39501 } 39502 39503 public incrementRows_result setIo(IOError io) { 39504 this.io = io; 39505 return this; 39506 } 39507 39508 public void unsetIo() { 39509 this.io = null; 39510 } 39511 39512 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 39513 public boolean isSetIo() { 39514 return this.io != null; 39515 } 39516 39517 public void setIoIsSet(boolean value) { 39518 if (!value) { 39519 this.io = null; 39520 } 39521 } 39522 39523 public void setFieldValue(_Fields field, Object value) { 39524 switch (field) { 39525 case IO: 39526 if (value == null) { 39527 unsetIo(); 39528 } else { 39529 setIo((IOError)value); 39530 } 39531 break; 39532 39533 } 39534 } 39535 39536 public Object getFieldValue(_Fields field) { 39537 switch (field) { 39538 case IO: 39539 return getIo(); 39540 39541 } 39542 throw new IllegalStateException(); 39543 } 39544 39545 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 39546 public boolean isSet(_Fields field) { 39547 if (field == null) { 39548 throw new IllegalArgumentException(); 39549 } 39550 39551 switch (field) { 39552 case IO: 39553 return isSetIo(); 39554 } 39555 throw new IllegalStateException(); 39556 } 39557 39558 @Override 39559 public boolean equals(Object that) { 39560 if (that == null) 39561 return false; 39562 if (that instanceof incrementRows_result) 39563 return this.equals((incrementRows_result)that); 39564 return false; 39565 } 39566 39567 public boolean equals(incrementRows_result that) { 39568 if (that == null) 39569 return false; 39570 39571 boolean this_present_io = true && this.isSetIo(); 39572 boolean that_present_io = true && that.isSetIo(); 39573 if (this_present_io || that_present_io) { 39574 if (!(this_present_io && that_present_io)) 39575 return false; 39576 if (!this.io.equals(that.io)) 39577 return false; 39578 } 39579 39580 return true; 39581 } 39582 39583 @Override 39584 public int hashCode() { 39585 HashCodeBuilder builder = new HashCodeBuilder(); 39586 39587 boolean present_io = true && (isSetIo()); 39588 builder.append(present_io); 39589 if (present_io) 39590 builder.append(io); 39591 39592 return builder.toHashCode(); 39593 } 39594 39595 public int compareTo(incrementRows_result other) { 39596 if (!getClass().equals(other.getClass())) { 39597 return getClass().getName().compareTo(other.getClass().getName()); 39598 } 39599 39600 int lastComparison = 0; 39601 incrementRows_result typedOther = (incrementRows_result)other; 39602 39603 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 39604 if (lastComparison != 0) { 39605 return lastComparison; 39606 } 39607 if (isSetIo()) { 39608 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 39609 if (lastComparison != 0) { 39610 return lastComparison; 39611 } 39612 } 39613 return 0; 39614 } 39615 39616 public _Fields fieldForId(int fieldId) { 39617 return _Fields.findByThriftId(fieldId); 39618 } 39619 39620 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 39621 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 39622 } 39623 39624 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 39625 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 39626 } 39627 39628 @Override 39629 public String toString() { 39630 StringBuilder sb = new StringBuilder("incrementRows_result("); 39631 boolean first = true; 39632 39633 sb.append("io:"); 39634 if (this.io == null) { 39635 sb.append("null"); 39636 } else { 39637 sb.append(this.io); 39638 } 39639 first = false; 39640 sb.append(")"); 39641 return sb.toString(); 39642 } 39643 39644 public void validate() throws org.apache.thrift.TException { 39645 // check for required fields 39646 } 39647 39648 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 39649 try { 39650 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 39651 } catch (org.apache.thrift.TException te) { 39652 throw new java.io.IOException(te); 39653 } 39654 } 39655 39656 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 39657 try { 39658 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 39659 } catch (org.apache.thrift.TException te) { 39660 throw new java.io.IOException(te); 39661 } 39662 } 39663 39664 private static class incrementRows_resultStandardSchemeFactory implements SchemeFactory { 39665 public incrementRows_resultStandardScheme getScheme() { 39666 return new incrementRows_resultStandardScheme(); 39667 } 39668 } 39669 39670 private static class incrementRows_resultStandardScheme extends StandardScheme<incrementRows_result> { 39671 39672 public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_result struct) throws org.apache.thrift.TException { 39673 org.apache.thrift.protocol.TField schemeField; 39674 iprot.readStructBegin(); 39675 while (true) 39676 { 39677 schemeField = iprot.readFieldBegin(); 39678 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 39679 break; 39680 } 39681 switch (schemeField.id) { 39682 case 1: // IO 39683 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 39684 struct.io = new IOError(); 39685 struct.io.read(iprot); 39686 struct.setIoIsSet(true); 39687 } else { 39688 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 39689 } 39690 break; 39691 default: 39692 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 39693 } 39694 iprot.readFieldEnd(); 39695 } 39696 iprot.readStructEnd(); 39697 39698 // check for required fields of primitive type, which can't be checked in the validate method 39699 struct.validate(); 39700 } 39701 39702 public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_result struct) throws org.apache.thrift.TException { 39703 struct.validate(); 39704 39705 oprot.writeStructBegin(STRUCT_DESC); 39706 if (struct.io != null) { 39707 oprot.writeFieldBegin(IO_FIELD_DESC); 39708 struct.io.write(oprot); 39709 oprot.writeFieldEnd(); 39710 } 39711 oprot.writeFieldStop(); 39712 oprot.writeStructEnd(); 39713 } 39714 39715 } 39716 39717 private static class incrementRows_resultTupleSchemeFactory implements SchemeFactory { 39718 public incrementRows_resultTupleScheme getScheme() { 39719 return new incrementRows_resultTupleScheme(); 39720 } 39721 } 39722 39723 private static class incrementRows_resultTupleScheme extends TupleScheme<incrementRows_result> { 39724 39725 @Override 39726 public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException { 39727 TTupleProtocol oprot = (TTupleProtocol) prot; 39728 BitSet optionals = new BitSet(); 39729 if (struct.isSetIo()) { 39730 optionals.set(0); 39731 } 39732 oprot.writeBitSet(optionals, 1); 39733 if (struct.isSetIo()) { 39734 struct.io.write(oprot); 39735 } 39736 } 39737 39738 @Override 39739 public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException { 39740 TTupleProtocol iprot = (TTupleProtocol) prot; 39741 BitSet incoming = iprot.readBitSet(1); 39742 if (incoming.get(0)) { 39743 struct.io = new IOError(); 39744 struct.io.read(iprot); 39745 struct.setIoIsSet(true); 39746 } 39747 } 39748 } 39749 39750 } 39751 39752 public static class deleteAllRowTs_args implements org.apache.thrift.TBase<deleteAllRowTs_args, deleteAllRowTs_args._Fields>, java.io.Serializable, Cloneable { 39753 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_args"); 39754 39755 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 39756 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 39757 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3); 39758 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 39759 39760 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 39761 static { 39762 schemes.put(StandardScheme.class, new deleteAllRowTs_argsStandardSchemeFactory()); 39763 schemes.put(TupleScheme.class, new deleteAllRowTs_argsTupleSchemeFactory()); 39764 } 39765 39766 /** 39767 * name of table 39768 */ 39769 public ByteBuffer tableName; // required 39770 /** 39771 * key of the row to be completely deleted. 39772 */ 39773 public ByteBuffer row; // required 39774 /** 39775 * timestamp 39776 */ 39777 public long timestamp; // required 39778 /** 39779 * Delete attributes 39780 */ 39781 public Map<ByteBuffer,ByteBuffer> attributes; // required 39782 39783 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 39784 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 39785 /** 39786 * name of table 39787 */ 39788 TABLE_NAME((short)1, "tableName"), 39789 /** 39790 * key of the row to be completely deleted. 39791 */ 39792 ROW((short)2, "row"), 39793 /** 39794 * timestamp 39795 */ 39796 TIMESTAMP((short)3, "timestamp"), 39797 /** 39798 * Delete attributes 39799 */ 39800 ATTRIBUTES((short)4, "attributes"); 39801 39802 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 39803 39804 static { 39805 for (_Fields field : EnumSet.allOf(_Fields.class)) { 39806 byName.put(field.getFieldName(), field); 39807 } 39808 } 39809 39810 /** 39811 * Find the _Fields constant that matches fieldId, or null if its not found. 39812 */ 39813 public static _Fields findByThriftId(int fieldId) { 39814 switch(fieldId) { 39815 case 1: // TABLE_NAME 39816 return TABLE_NAME; 39817 case 2: // ROW 39818 return ROW; 39819 case 3: // TIMESTAMP 39820 return TIMESTAMP; 39821 case 4: // ATTRIBUTES 39822 return ATTRIBUTES; 39823 default: 39824 return null; 39825 } 39826 } 39827 39828 /** 39829 * Find the _Fields constant that matches fieldId, throwing an exception 39830 * if it is not found. 39831 */ 39832 public static _Fields findByThriftIdOrThrow(int fieldId) { 39833 _Fields fields = findByThriftId(fieldId); 39834 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 39835 return fields; 39836 } 39837 39838 /** 39839 * Find the _Fields constant that matches name, or null if its not found. 39840 */ 39841 public static _Fields findByName(String name) { 39842 return byName.get(name); 39843 } 39844 39845 private final short _thriftId; 39846 private final String _fieldName; 39847 39848 _Fields(short thriftId, String fieldName) { 39849 _thriftId = thriftId; 39850 _fieldName = fieldName; 39851 } 39852 39853 public short getThriftFieldId() { 39854 return _thriftId; 39855 } 39856 39857 public String getFieldName() { 39858 return _fieldName; 39859 } 39860 } 39861 39862 // isset id assignments 39863 private static final int __TIMESTAMP_ISSET_ID = 0; 39864 private BitSet __isset_bit_vector = new BitSet(1); 39865 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 39866 static { 39867 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 39868 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 39869 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 39870 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 39871 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 39872 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 39873 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 39874 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 39875 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 39876 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 39877 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 39878 metaDataMap = Collections.unmodifiableMap(tmpMap); 39879 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_args.class, metaDataMap); 39880 } 39881 39882 public deleteAllRowTs_args() { 39883 } 39884 39885 public deleteAllRowTs_args( 39886 ByteBuffer tableName, 39887 ByteBuffer row, 39888 long timestamp, 39889 Map<ByteBuffer,ByteBuffer> attributes) 39890 { 39891 this(); 39892 this.tableName = tableName; 39893 this.row = row; 39894 this.timestamp = timestamp; 39895 setTimestampIsSet(true); 39896 this.attributes = attributes; 39897 } 39898 39899 /** 39900 * Performs a deep copy on <i>other</i>. 39901 */ 39902 public deleteAllRowTs_args(deleteAllRowTs_args other) { 39903 __isset_bit_vector.clear(); 39904 __isset_bit_vector.or(other.__isset_bit_vector); 39905 if (other.isSetTableName()) { 39906 this.tableName = other.tableName; 39907 } 39908 if (other.isSetRow()) { 39909 this.row = other.row; 39910 } 39911 this.timestamp = other.timestamp; 39912 if (other.isSetAttributes()) { 39913 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 39914 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 39915 39916 ByteBuffer other_element_key = other_element.getKey(); 39917 ByteBuffer other_element_value = other_element.getValue(); 39918 39919 ByteBuffer __this__attributes_copy_key = other_element_key; 39920 39921 ByteBuffer __this__attributes_copy_value = other_element_value; 39922 39923 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 39924 } 39925 this.attributes = __this__attributes; 39926 } 39927 } 39928 39929 public deleteAllRowTs_args deepCopy() { 39930 return new deleteAllRowTs_args(this); 39931 } 39932 39933 @Override 39934 public void clear() { 39935 this.tableName = null; 39936 this.row = null; 39937 setTimestampIsSet(false); 39938 this.timestamp = 0; 39939 this.attributes = null; 39940 } 39941 39942 /** 39943 * name of table 39944 */ 39945 public byte[] getTableName() { 39946 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 39947 return tableName == null ? null : tableName.array(); 39948 } 39949 39950 public ByteBuffer bufferForTableName() { 39951 return tableName; 39952 } 39953 39954 /** 39955 * name of table 39956 */ 39957 public deleteAllRowTs_args setTableName(byte[] tableName) { 39958 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 39959 return this; 39960 } 39961 39962 public deleteAllRowTs_args setTableName(ByteBuffer tableName) { 39963 this.tableName = tableName; 39964 return this; 39965 } 39966 39967 public void unsetTableName() { 39968 this.tableName = null; 39969 } 39970 39971 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 39972 public boolean isSetTableName() { 39973 return this.tableName != null; 39974 } 39975 39976 public void setTableNameIsSet(boolean value) { 39977 if (!value) { 39978 this.tableName = null; 39979 } 39980 } 39981 39982 /** 39983 * key of the row to be completely deleted. 39984 */ 39985 public byte[] getRow() { 39986 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 39987 return row == null ? null : row.array(); 39988 } 39989 39990 public ByteBuffer bufferForRow() { 39991 return row; 39992 } 39993 39994 /** 39995 * key of the row to be completely deleted. 39996 */ 39997 public deleteAllRowTs_args setRow(byte[] row) { 39998 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 39999 return this; 40000 } 40001 40002 public deleteAllRowTs_args setRow(ByteBuffer row) { 40003 this.row = row; 40004 return this; 40005 } 40006 40007 public void unsetRow() { 40008 this.row = null; 40009 } 40010 40011 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 40012 public boolean isSetRow() { 40013 return this.row != null; 40014 } 40015 40016 public void setRowIsSet(boolean value) { 40017 if (!value) { 40018 this.row = null; 40019 } 40020 } 40021 40022 /** 40023 * timestamp 40024 */ 40025 public long getTimestamp() { 40026 return this.timestamp; 40027 } 40028 40029 /** 40030 * timestamp 40031 */ 40032 public deleteAllRowTs_args setTimestamp(long timestamp) { 40033 this.timestamp = timestamp; 40034 setTimestampIsSet(true); 40035 return this; 40036 } 40037 40038 public void unsetTimestamp() { 40039 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 40040 } 40041 40042 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 40043 public boolean isSetTimestamp() { 40044 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 40045 } 40046 40047 public void setTimestampIsSet(boolean value) { 40048 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 40049 } 40050 40051 public int getAttributesSize() { 40052 return (this.attributes == null) ? 0 : this.attributes.size(); 40053 } 40054 40055 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 40056 if (this.attributes == null) { 40057 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 40058 } 40059 this.attributes.put(key, val); 40060 } 40061 40062 /** 40063 * Delete attributes 40064 */ 40065 public Map<ByteBuffer,ByteBuffer> getAttributes() { 40066 return this.attributes; 40067 } 40068 40069 /** 40070 * Delete attributes 40071 */ 40072 public deleteAllRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 40073 this.attributes = attributes; 40074 return this; 40075 } 40076 40077 public void unsetAttributes() { 40078 this.attributes = null; 40079 } 40080 40081 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 40082 public boolean isSetAttributes() { 40083 return this.attributes != null; 40084 } 40085 40086 public void setAttributesIsSet(boolean value) { 40087 if (!value) { 40088 this.attributes = null; 40089 } 40090 } 40091 40092 public void setFieldValue(_Fields field, Object value) { 40093 switch (field) { 40094 case TABLE_NAME: 40095 if (value == null) { 40096 unsetTableName(); 40097 } else { 40098 setTableName((ByteBuffer)value); 40099 } 40100 break; 40101 40102 case ROW: 40103 if (value == null) { 40104 unsetRow(); 40105 } else { 40106 setRow((ByteBuffer)value); 40107 } 40108 break; 40109 40110 case TIMESTAMP: 40111 if (value == null) { 40112 unsetTimestamp(); 40113 } else { 40114 setTimestamp((Long)value); 40115 } 40116 break; 40117 40118 case ATTRIBUTES: 40119 if (value == null) { 40120 unsetAttributes(); 40121 } else { 40122 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 40123 } 40124 break; 40125 40126 } 40127 } 40128 40129 public Object getFieldValue(_Fields field) { 40130 switch (field) { 40131 case TABLE_NAME: 40132 return getTableName(); 40133 40134 case ROW: 40135 return getRow(); 40136 40137 case TIMESTAMP: 40138 return Long.valueOf(getTimestamp()); 40139 40140 case ATTRIBUTES: 40141 return getAttributes(); 40142 40143 } 40144 throw new IllegalStateException(); 40145 } 40146 40147 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 40148 public boolean isSet(_Fields field) { 40149 if (field == null) { 40150 throw new IllegalArgumentException(); 40151 } 40152 40153 switch (field) { 40154 case TABLE_NAME: 40155 return isSetTableName(); 40156 case ROW: 40157 return isSetRow(); 40158 case TIMESTAMP: 40159 return isSetTimestamp(); 40160 case ATTRIBUTES: 40161 return isSetAttributes(); 40162 } 40163 throw new IllegalStateException(); 40164 } 40165 40166 @Override 40167 public boolean equals(Object that) { 40168 if (that == null) 40169 return false; 40170 if (that instanceof deleteAllRowTs_args) 40171 return this.equals((deleteAllRowTs_args)that); 40172 return false; 40173 } 40174 40175 public boolean equals(deleteAllRowTs_args that) { 40176 if (that == null) 40177 return false; 40178 40179 boolean this_present_tableName = true && this.isSetTableName(); 40180 boolean that_present_tableName = true && that.isSetTableName(); 40181 if (this_present_tableName || that_present_tableName) { 40182 if (!(this_present_tableName && that_present_tableName)) 40183 return false; 40184 if (!this.tableName.equals(that.tableName)) 40185 return false; 40186 } 40187 40188 boolean this_present_row = true && this.isSetRow(); 40189 boolean that_present_row = true && that.isSetRow(); 40190 if (this_present_row || that_present_row) { 40191 if (!(this_present_row && that_present_row)) 40192 return false; 40193 if (!this.row.equals(that.row)) 40194 return false; 40195 } 40196 40197 boolean this_present_timestamp = true; 40198 boolean that_present_timestamp = true; 40199 if (this_present_timestamp || that_present_timestamp) { 40200 if (!(this_present_timestamp && that_present_timestamp)) 40201 return false; 40202 if (this.timestamp != that.timestamp) 40203 return false; 40204 } 40205 40206 boolean this_present_attributes = true && this.isSetAttributes(); 40207 boolean that_present_attributes = true && that.isSetAttributes(); 40208 if (this_present_attributes || that_present_attributes) { 40209 if (!(this_present_attributes && that_present_attributes)) 40210 return false; 40211 if (!this.attributes.equals(that.attributes)) 40212 return false; 40213 } 40214 40215 return true; 40216 } 40217 40218 @Override 40219 public int hashCode() { 40220 HashCodeBuilder builder = new HashCodeBuilder(); 40221 40222 boolean present_tableName = true && (isSetTableName()); 40223 builder.append(present_tableName); 40224 if (present_tableName) 40225 builder.append(tableName); 40226 40227 boolean present_row = true && (isSetRow()); 40228 builder.append(present_row); 40229 if (present_row) 40230 builder.append(row); 40231 40232 boolean present_timestamp = true; 40233 builder.append(present_timestamp); 40234 if (present_timestamp) 40235 builder.append(timestamp); 40236 40237 boolean present_attributes = true && (isSetAttributes()); 40238 builder.append(present_attributes); 40239 if (present_attributes) 40240 builder.append(attributes); 40241 40242 return builder.toHashCode(); 40243 } 40244 40245 public int compareTo(deleteAllRowTs_args other) { 40246 if (!getClass().equals(other.getClass())) { 40247 return getClass().getName().compareTo(other.getClass().getName()); 40248 } 40249 40250 int lastComparison = 0; 40251 deleteAllRowTs_args typedOther = (deleteAllRowTs_args)other; 40252 40253 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 40254 if (lastComparison != 0) { 40255 return lastComparison; 40256 } 40257 if (isSetTableName()) { 40258 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 40259 if (lastComparison != 0) { 40260 return lastComparison; 40261 } 40262 } 40263 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 40264 if (lastComparison != 0) { 40265 return lastComparison; 40266 } 40267 if (isSetRow()) { 40268 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 40269 if (lastComparison != 0) { 40270 return lastComparison; 40271 } 40272 } 40273 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 40274 if (lastComparison != 0) { 40275 return lastComparison; 40276 } 40277 if (isSetTimestamp()) { 40278 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 40279 if (lastComparison != 0) { 40280 return lastComparison; 40281 } 40282 } 40283 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 40284 if (lastComparison != 0) { 40285 return lastComparison; 40286 } 40287 if (isSetAttributes()) { 40288 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 40289 if (lastComparison != 0) { 40290 return lastComparison; 40291 } 40292 } 40293 return 0; 40294 } 40295 40296 public _Fields fieldForId(int fieldId) { 40297 return _Fields.findByThriftId(fieldId); 40298 } 40299 40300 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 40301 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 40302 } 40303 40304 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 40305 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 40306 } 40307 40308 @Override 40309 public String toString() { 40310 StringBuilder sb = new StringBuilder("deleteAllRowTs_args("); 40311 boolean first = true; 40312 40313 sb.append("tableName:"); 40314 if (this.tableName == null) { 40315 sb.append("null"); 40316 } else { 40317 sb.append(this.tableName); 40318 } 40319 first = false; 40320 if (!first) sb.append(", "); 40321 sb.append("row:"); 40322 if (this.row == null) { 40323 sb.append("null"); 40324 } else { 40325 sb.append(this.row); 40326 } 40327 first = false; 40328 if (!first) sb.append(", "); 40329 sb.append("timestamp:"); 40330 sb.append(this.timestamp); 40331 first = false; 40332 if (!first) sb.append(", "); 40333 sb.append("attributes:"); 40334 if (this.attributes == null) { 40335 sb.append("null"); 40336 } else { 40337 sb.append(this.attributes); 40338 } 40339 first = false; 40340 sb.append(")"); 40341 return sb.toString(); 40342 } 40343 40344 public void validate() throws org.apache.thrift.TException { 40345 // check for required fields 40346 } 40347 40348 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 40349 try { 40350 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 40351 } catch (org.apache.thrift.TException te) { 40352 throw new java.io.IOException(te); 40353 } 40354 } 40355 40356 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 40357 try { 40358 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 40359 __isset_bit_vector = new BitSet(1); 40360 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 40361 } catch (org.apache.thrift.TException te) { 40362 throw new java.io.IOException(te); 40363 } 40364 } 40365 40366 private static class deleteAllRowTs_argsStandardSchemeFactory implements SchemeFactory { 40367 public deleteAllRowTs_argsStandardScheme getScheme() { 40368 return new deleteAllRowTs_argsStandardScheme(); 40369 } 40370 } 40371 40372 private static class deleteAllRowTs_argsStandardScheme extends StandardScheme<deleteAllRowTs_args> { 40373 40374 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { 40375 org.apache.thrift.protocol.TField schemeField; 40376 iprot.readStructBegin(); 40377 while (true) 40378 { 40379 schemeField = iprot.readFieldBegin(); 40380 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 40381 break; 40382 } 40383 switch (schemeField.id) { 40384 case 1: // TABLE_NAME 40385 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 40386 struct.tableName = iprot.readBinary(); 40387 struct.setTableNameIsSet(true); 40388 } else { 40389 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40390 } 40391 break; 40392 case 2: // ROW 40393 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 40394 struct.row = iprot.readBinary(); 40395 struct.setRowIsSet(true); 40396 } else { 40397 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40398 } 40399 break; 40400 case 3: // TIMESTAMP 40401 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 40402 struct.timestamp = iprot.readI64(); 40403 struct.setTimestampIsSet(true); 40404 } else { 40405 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40406 } 40407 break; 40408 case 4: // ATTRIBUTES 40409 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 40410 { 40411 org.apache.thrift.protocol.TMap _map440 = iprot.readMapBegin(); 40412 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map440.size); 40413 for (int _i441 = 0; _i441 < _map440.size; ++_i441) 40414 { 40415 ByteBuffer _key442; // required 40416 ByteBuffer _val443; // required 40417 _key442 = iprot.readBinary(); 40418 _val443 = iprot.readBinary(); 40419 struct.attributes.put(_key442, _val443); 40420 } 40421 iprot.readMapEnd(); 40422 } 40423 struct.setAttributesIsSet(true); 40424 } else { 40425 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40426 } 40427 break; 40428 default: 40429 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40430 } 40431 iprot.readFieldEnd(); 40432 } 40433 iprot.readStructEnd(); 40434 40435 // check for required fields of primitive type, which can't be checked in the validate method 40436 struct.validate(); 40437 } 40438 40439 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { 40440 struct.validate(); 40441 40442 oprot.writeStructBegin(STRUCT_DESC); 40443 if (struct.tableName != null) { 40444 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 40445 oprot.writeBinary(struct.tableName); 40446 oprot.writeFieldEnd(); 40447 } 40448 if (struct.row != null) { 40449 oprot.writeFieldBegin(ROW_FIELD_DESC); 40450 oprot.writeBinary(struct.row); 40451 oprot.writeFieldEnd(); 40452 } 40453 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 40454 oprot.writeI64(struct.timestamp); 40455 oprot.writeFieldEnd(); 40456 if (struct.attributes != null) { 40457 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 40458 { 40459 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 40460 for (Map.Entry<ByteBuffer, ByteBuffer> _iter444 : struct.attributes.entrySet()) 40461 { 40462 oprot.writeBinary(_iter444.getKey()); 40463 oprot.writeBinary(_iter444.getValue()); 40464 } 40465 oprot.writeMapEnd(); 40466 } 40467 oprot.writeFieldEnd(); 40468 } 40469 oprot.writeFieldStop(); 40470 oprot.writeStructEnd(); 40471 } 40472 40473 } 40474 40475 private static class deleteAllRowTs_argsTupleSchemeFactory implements SchemeFactory { 40476 public deleteAllRowTs_argsTupleScheme getScheme() { 40477 return new deleteAllRowTs_argsTupleScheme(); 40478 } 40479 } 40480 40481 private static class deleteAllRowTs_argsTupleScheme extends TupleScheme<deleteAllRowTs_args> { 40482 40483 @Override 40484 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { 40485 TTupleProtocol oprot = (TTupleProtocol) prot; 40486 BitSet optionals = new BitSet(); 40487 if (struct.isSetTableName()) { 40488 optionals.set(0); 40489 } 40490 if (struct.isSetRow()) { 40491 optionals.set(1); 40492 } 40493 if (struct.isSetTimestamp()) { 40494 optionals.set(2); 40495 } 40496 if (struct.isSetAttributes()) { 40497 optionals.set(3); 40498 } 40499 oprot.writeBitSet(optionals, 4); 40500 if (struct.isSetTableName()) { 40501 oprot.writeBinary(struct.tableName); 40502 } 40503 if (struct.isSetRow()) { 40504 oprot.writeBinary(struct.row); 40505 } 40506 if (struct.isSetTimestamp()) { 40507 oprot.writeI64(struct.timestamp); 40508 } 40509 if (struct.isSetAttributes()) { 40510 { 40511 oprot.writeI32(struct.attributes.size()); 40512 for (Map.Entry<ByteBuffer, ByteBuffer> _iter445 : struct.attributes.entrySet()) 40513 { 40514 oprot.writeBinary(_iter445.getKey()); 40515 oprot.writeBinary(_iter445.getValue()); 40516 } 40517 } 40518 } 40519 } 40520 40521 @Override 40522 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException { 40523 TTupleProtocol iprot = (TTupleProtocol) prot; 40524 BitSet incoming = iprot.readBitSet(4); 40525 if (incoming.get(0)) { 40526 struct.tableName = iprot.readBinary(); 40527 struct.setTableNameIsSet(true); 40528 } 40529 if (incoming.get(1)) { 40530 struct.row = iprot.readBinary(); 40531 struct.setRowIsSet(true); 40532 } 40533 if (incoming.get(2)) { 40534 struct.timestamp = iprot.readI64(); 40535 struct.setTimestampIsSet(true); 40536 } 40537 if (incoming.get(3)) { 40538 { 40539 org.apache.thrift.protocol.TMap _map446 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 40540 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map446.size); 40541 for (int _i447 = 0; _i447 < _map446.size; ++_i447) 40542 { 40543 ByteBuffer _key448; // required 40544 ByteBuffer _val449; // required 40545 _key448 = iprot.readBinary(); 40546 _val449 = iprot.readBinary(); 40547 struct.attributes.put(_key448, _val449); 40548 } 40549 } 40550 struct.setAttributesIsSet(true); 40551 } 40552 } 40553 } 40554 40555 } 40556 40557 public static class deleteAllRowTs_result implements org.apache.thrift.TBase<deleteAllRowTs_result, deleteAllRowTs_result._Fields>, java.io.Serializable, Cloneable { 40558 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_result"); 40559 40560 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 40561 40562 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 40563 static { 40564 schemes.put(StandardScheme.class, new deleteAllRowTs_resultStandardSchemeFactory()); 40565 schemes.put(TupleScheme.class, new deleteAllRowTs_resultTupleSchemeFactory()); 40566 } 40567 40568 public IOError io; // required 40569 40570 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 40571 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 40572 IO((short)1, "io"); 40573 40574 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 40575 40576 static { 40577 for (_Fields field : EnumSet.allOf(_Fields.class)) { 40578 byName.put(field.getFieldName(), field); 40579 } 40580 } 40581 40582 /** 40583 * Find the _Fields constant that matches fieldId, or null if its not found. 40584 */ 40585 public static _Fields findByThriftId(int fieldId) { 40586 switch(fieldId) { 40587 case 1: // IO 40588 return IO; 40589 default: 40590 return null; 40591 } 40592 } 40593 40594 /** 40595 * Find the _Fields constant that matches fieldId, throwing an exception 40596 * if it is not found. 40597 */ 40598 public static _Fields findByThriftIdOrThrow(int fieldId) { 40599 _Fields fields = findByThriftId(fieldId); 40600 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 40601 return fields; 40602 } 40603 40604 /** 40605 * Find the _Fields constant that matches name, or null if its not found. 40606 */ 40607 public static _Fields findByName(String name) { 40608 return byName.get(name); 40609 } 40610 40611 private final short _thriftId; 40612 private final String _fieldName; 40613 40614 _Fields(short thriftId, String fieldName) { 40615 _thriftId = thriftId; 40616 _fieldName = fieldName; 40617 } 40618 40619 public short getThriftFieldId() { 40620 return _thriftId; 40621 } 40622 40623 public String getFieldName() { 40624 return _fieldName; 40625 } 40626 } 40627 40628 // isset id assignments 40629 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 40630 static { 40631 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 40632 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 40633 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 40634 metaDataMap = Collections.unmodifiableMap(tmpMap); 40635 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_result.class, metaDataMap); 40636 } 40637 40638 public deleteAllRowTs_result() { 40639 } 40640 40641 public deleteAllRowTs_result( 40642 IOError io) 40643 { 40644 this(); 40645 this.io = io; 40646 } 40647 40648 /** 40649 * Performs a deep copy on <i>other</i>. 40650 */ 40651 public deleteAllRowTs_result(deleteAllRowTs_result other) { 40652 if (other.isSetIo()) { 40653 this.io = new IOError(other.io); 40654 } 40655 } 40656 40657 public deleteAllRowTs_result deepCopy() { 40658 return new deleteAllRowTs_result(this); 40659 } 40660 40661 @Override 40662 public void clear() { 40663 this.io = null; 40664 } 40665 40666 public IOError getIo() { 40667 return this.io; 40668 } 40669 40670 public deleteAllRowTs_result setIo(IOError io) { 40671 this.io = io; 40672 return this; 40673 } 40674 40675 public void unsetIo() { 40676 this.io = null; 40677 } 40678 40679 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 40680 public boolean isSetIo() { 40681 return this.io != null; 40682 } 40683 40684 public void setIoIsSet(boolean value) { 40685 if (!value) { 40686 this.io = null; 40687 } 40688 } 40689 40690 public void setFieldValue(_Fields field, Object value) { 40691 switch (field) { 40692 case IO: 40693 if (value == null) { 40694 unsetIo(); 40695 } else { 40696 setIo((IOError)value); 40697 } 40698 break; 40699 40700 } 40701 } 40702 40703 public Object getFieldValue(_Fields field) { 40704 switch (field) { 40705 case IO: 40706 return getIo(); 40707 40708 } 40709 throw new IllegalStateException(); 40710 } 40711 40712 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 40713 public boolean isSet(_Fields field) { 40714 if (field == null) { 40715 throw new IllegalArgumentException(); 40716 } 40717 40718 switch (field) { 40719 case IO: 40720 return isSetIo(); 40721 } 40722 throw new IllegalStateException(); 40723 } 40724 40725 @Override 40726 public boolean equals(Object that) { 40727 if (that == null) 40728 return false; 40729 if (that instanceof deleteAllRowTs_result) 40730 return this.equals((deleteAllRowTs_result)that); 40731 return false; 40732 } 40733 40734 public boolean equals(deleteAllRowTs_result that) { 40735 if (that == null) 40736 return false; 40737 40738 boolean this_present_io = true && this.isSetIo(); 40739 boolean that_present_io = true && that.isSetIo(); 40740 if (this_present_io || that_present_io) { 40741 if (!(this_present_io && that_present_io)) 40742 return false; 40743 if (!this.io.equals(that.io)) 40744 return false; 40745 } 40746 40747 return true; 40748 } 40749 40750 @Override 40751 public int hashCode() { 40752 HashCodeBuilder builder = new HashCodeBuilder(); 40753 40754 boolean present_io = true && (isSetIo()); 40755 builder.append(present_io); 40756 if (present_io) 40757 builder.append(io); 40758 40759 return builder.toHashCode(); 40760 } 40761 40762 public int compareTo(deleteAllRowTs_result other) { 40763 if (!getClass().equals(other.getClass())) { 40764 return getClass().getName().compareTo(other.getClass().getName()); 40765 } 40766 40767 int lastComparison = 0; 40768 deleteAllRowTs_result typedOther = (deleteAllRowTs_result)other; 40769 40770 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 40771 if (lastComparison != 0) { 40772 return lastComparison; 40773 } 40774 if (isSetIo()) { 40775 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 40776 if (lastComparison != 0) { 40777 return lastComparison; 40778 } 40779 } 40780 return 0; 40781 } 40782 40783 public _Fields fieldForId(int fieldId) { 40784 return _Fields.findByThriftId(fieldId); 40785 } 40786 40787 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 40788 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 40789 } 40790 40791 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 40792 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 40793 } 40794 40795 @Override 40796 public String toString() { 40797 StringBuilder sb = new StringBuilder("deleteAllRowTs_result("); 40798 boolean first = true; 40799 40800 sb.append("io:"); 40801 if (this.io == null) { 40802 sb.append("null"); 40803 } else { 40804 sb.append(this.io); 40805 } 40806 first = false; 40807 sb.append(")"); 40808 return sb.toString(); 40809 } 40810 40811 public void validate() throws org.apache.thrift.TException { 40812 // check for required fields 40813 } 40814 40815 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 40816 try { 40817 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 40818 } catch (org.apache.thrift.TException te) { 40819 throw new java.io.IOException(te); 40820 } 40821 } 40822 40823 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 40824 try { 40825 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 40826 } catch (org.apache.thrift.TException te) { 40827 throw new java.io.IOException(te); 40828 } 40829 } 40830 40831 private static class deleteAllRowTs_resultStandardSchemeFactory implements SchemeFactory { 40832 public deleteAllRowTs_resultStandardScheme getScheme() { 40833 return new deleteAllRowTs_resultStandardScheme(); 40834 } 40835 } 40836 40837 private static class deleteAllRowTs_resultStandardScheme extends StandardScheme<deleteAllRowTs_result> { 40838 40839 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { 40840 org.apache.thrift.protocol.TField schemeField; 40841 iprot.readStructBegin(); 40842 while (true) 40843 { 40844 schemeField = iprot.readFieldBegin(); 40845 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 40846 break; 40847 } 40848 switch (schemeField.id) { 40849 case 1: // IO 40850 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 40851 struct.io = new IOError(); 40852 struct.io.read(iprot); 40853 struct.setIoIsSet(true); 40854 } else { 40855 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40856 } 40857 break; 40858 default: 40859 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 40860 } 40861 iprot.readFieldEnd(); 40862 } 40863 iprot.readStructEnd(); 40864 40865 // check for required fields of primitive type, which can't be checked in the validate method 40866 struct.validate(); 40867 } 40868 40869 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { 40870 struct.validate(); 40871 40872 oprot.writeStructBegin(STRUCT_DESC); 40873 if (struct.io != null) { 40874 oprot.writeFieldBegin(IO_FIELD_DESC); 40875 struct.io.write(oprot); 40876 oprot.writeFieldEnd(); 40877 } 40878 oprot.writeFieldStop(); 40879 oprot.writeStructEnd(); 40880 } 40881 40882 } 40883 40884 private static class deleteAllRowTs_resultTupleSchemeFactory implements SchemeFactory { 40885 public deleteAllRowTs_resultTupleScheme getScheme() { 40886 return new deleteAllRowTs_resultTupleScheme(); 40887 } 40888 } 40889 40890 private static class deleteAllRowTs_resultTupleScheme extends TupleScheme<deleteAllRowTs_result> { 40891 40892 @Override 40893 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { 40894 TTupleProtocol oprot = (TTupleProtocol) prot; 40895 BitSet optionals = new BitSet(); 40896 if (struct.isSetIo()) { 40897 optionals.set(0); 40898 } 40899 oprot.writeBitSet(optionals, 1); 40900 if (struct.isSetIo()) { 40901 struct.io.write(oprot); 40902 } 40903 } 40904 40905 @Override 40906 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException { 40907 TTupleProtocol iprot = (TTupleProtocol) prot; 40908 BitSet incoming = iprot.readBitSet(1); 40909 if (incoming.get(0)) { 40910 struct.io = new IOError(); 40911 struct.io.read(iprot); 40912 struct.setIoIsSet(true); 40913 } 40914 } 40915 } 40916 40917 } 40918 40919 public static class scannerOpenWithScan_args implements org.apache.thrift.TBase<scannerOpenWithScan_args, scannerOpenWithScan_args._Fields>, java.io.Serializable, Cloneable { 40920 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_args"); 40921 40922 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 40923 private static final org.apache.thrift.protocol.TField SCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("scan", org.apache.thrift.protocol.TType.STRUCT, (short)2); 40924 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3); 40925 40926 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 40927 static { 40928 schemes.put(StandardScheme.class, new scannerOpenWithScan_argsStandardSchemeFactory()); 40929 schemes.put(TupleScheme.class, new scannerOpenWithScan_argsTupleSchemeFactory()); 40930 } 40931 40932 /** 40933 * name of table 40934 */ 40935 public ByteBuffer tableName; // required 40936 /** 40937 * Scan instance 40938 */ 40939 public TScan scan; // required 40940 /** 40941 * Scan attributes 40942 */ 40943 public Map<ByteBuffer,ByteBuffer> attributes; // required 40944 40945 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 40946 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 40947 /** 40948 * name of table 40949 */ 40950 TABLE_NAME((short)1, "tableName"), 40951 /** 40952 * Scan instance 40953 */ 40954 SCAN((short)2, "scan"), 40955 /** 40956 * Scan attributes 40957 */ 40958 ATTRIBUTES((short)3, "attributes"); 40959 40960 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 40961 40962 static { 40963 for (_Fields field : EnumSet.allOf(_Fields.class)) { 40964 byName.put(field.getFieldName(), field); 40965 } 40966 } 40967 40968 /** 40969 * Find the _Fields constant that matches fieldId, or null if its not found. 40970 */ 40971 public static _Fields findByThriftId(int fieldId) { 40972 switch(fieldId) { 40973 case 1: // TABLE_NAME 40974 return TABLE_NAME; 40975 case 2: // SCAN 40976 return SCAN; 40977 case 3: // ATTRIBUTES 40978 return ATTRIBUTES; 40979 default: 40980 return null; 40981 } 40982 } 40983 40984 /** 40985 * Find the _Fields constant that matches fieldId, throwing an exception 40986 * if it is not found. 40987 */ 40988 public static _Fields findByThriftIdOrThrow(int fieldId) { 40989 _Fields fields = findByThriftId(fieldId); 40990 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 40991 return fields; 40992 } 40993 40994 /** 40995 * Find the _Fields constant that matches name, or null if its not found. 40996 */ 40997 public static _Fields findByName(String name) { 40998 return byName.get(name); 40999 } 41000 41001 private final short _thriftId; 41002 private final String _fieldName; 41003 41004 _Fields(short thriftId, String fieldName) { 41005 _thriftId = thriftId; 41006 _fieldName = fieldName; 41007 } 41008 41009 public short getThriftFieldId() { 41010 return _thriftId; 41011 } 41012 41013 public String getFieldName() { 41014 return _fieldName; 41015 } 41016 } 41017 41018 // isset id assignments 41019 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 41020 static { 41021 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 41022 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 41023 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 41024 tmpMap.put(_Fields.SCAN, new org.apache.thrift.meta_data.FieldMetaData("scan", org.apache.thrift.TFieldRequirementType.DEFAULT, 41025 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class))); 41026 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 41027 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 41028 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 41029 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 41030 metaDataMap = Collections.unmodifiableMap(tmpMap); 41031 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_args.class, metaDataMap); 41032 } 41033 41034 public scannerOpenWithScan_args() { 41035 } 41036 41037 public scannerOpenWithScan_args( 41038 ByteBuffer tableName, 41039 TScan scan, 41040 Map<ByteBuffer,ByteBuffer> attributes) 41041 { 41042 this(); 41043 this.tableName = tableName; 41044 this.scan = scan; 41045 this.attributes = attributes; 41046 } 41047 41048 /** 41049 * Performs a deep copy on <i>other</i>. 41050 */ 41051 public scannerOpenWithScan_args(scannerOpenWithScan_args other) { 41052 if (other.isSetTableName()) { 41053 this.tableName = other.tableName; 41054 } 41055 if (other.isSetScan()) { 41056 this.scan = new TScan(other.scan); 41057 } 41058 if (other.isSetAttributes()) { 41059 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 41060 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 41061 41062 ByteBuffer other_element_key = other_element.getKey(); 41063 ByteBuffer other_element_value = other_element.getValue(); 41064 41065 ByteBuffer __this__attributes_copy_key = other_element_key; 41066 41067 ByteBuffer __this__attributes_copy_value = other_element_value; 41068 41069 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 41070 } 41071 this.attributes = __this__attributes; 41072 } 41073 } 41074 41075 public scannerOpenWithScan_args deepCopy() { 41076 return new scannerOpenWithScan_args(this); 41077 } 41078 41079 @Override 41080 public void clear() { 41081 this.tableName = null; 41082 this.scan = null; 41083 this.attributes = null; 41084 } 41085 41086 /** 41087 * name of table 41088 */ 41089 public byte[] getTableName() { 41090 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 41091 return tableName == null ? null : tableName.array(); 41092 } 41093 41094 public ByteBuffer bufferForTableName() { 41095 return tableName; 41096 } 41097 41098 /** 41099 * name of table 41100 */ 41101 public scannerOpenWithScan_args setTableName(byte[] tableName) { 41102 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 41103 return this; 41104 } 41105 41106 public scannerOpenWithScan_args setTableName(ByteBuffer tableName) { 41107 this.tableName = tableName; 41108 return this; 41109 } 41110 41111 public void unsetTableName() { 41112 this.tableName = null; 41113 } 41114 41115 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 41116 public boolean isSetTableName() { 41117 return this.tableName != null; 41118 } 41119 41120 public void setTableNameIsSet(boolean value) { 41121 if (!value) { 41122 this.tableName = null; 41123 } 41124 } 41125 41126 /** 41127 * Scan instance 41128 */ 41129 public TScan getScan() { 41130 return this.scan; 41131 } 41132 41133 /** 41134 * Scan instance 41135 */ 41136 public scannerOpenWithScan_args setScan(TScan scan) { 41137 this.scan = scan; 41138 return this; 41139 } 41140 41141 public void unsetScan() { 41142 this.scan = null; 41143 } 41144 41145 /** Returns true if field scan is set (has been assigned a value) and false otherwise */ 41146 public boolean isSetScan() { 41147 return this.scan != null; 41148 } 41149 41150 public void setScanIsSet(boolean value) { 41151 if (!value) { 41152 this.scan = null; 41153 } 41154 } 41155 41156 public int getAttributesSize() { 41157 return (this.attributes == null) ? 0 : this.attributes.size(); 41158 } 41159 41160 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 41161 if (this.attributes == null) { 41162 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 41163 } 41164 this.attributes.put(key, val); 41165 } 41166 41167 /** 41168 * Scan attributes 41169 */ 41170 public Map<ByteBuffer,ByteBuffer> getAttributes() { 41171 return this.attributes; 41172 } 41173 41174 /** 41175 * Scan attributes 41176 */ 41177 public scannerOpenWithScan_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 41178 this.attributes = attributes; 41179 return this; 41180 } 41181 41182 public void unsetAttributes() { 41183 this.attributes = null; 41184 } 41185 41186 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 41187 public boolean isSetAttributes() { 41188 return this.attributes != null; 41189 } 41190 41191 public void setAttributesIsSet(boolean value) { 41192 if (!value) { 41193 this.attributes = null; 41194 } 41195 } 41196 41197 public void setFieldValue(_Fields field, Object value) { 41198 switch (field) { 41199 case TABLE_NAME: 41200 if (value == null) { 41201 unsetTableName(); 41202 } else { 41203 setTableName((ByteBuffer)value); 41204 } 41205 break; 41206 41207 case SCAN: 41208 if (value == null) { 41209 unsetScan(); 41210 } else { 41211 setScan((TScan)value); 41212 } 41213 break; 41214 41215 case ATTRIBUTES: 41216 if (value == null) { 41217 unsetAttributes(); 41218 } else { 41219 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 41220 } 41221 break; 41222 41223 } 41224 } 41225 41226 public Object getFieldValue(_Fields field) { 41227 switch (field) { 41228 case TABLE_NAME: 41229 return getTableName(); 41230 41231 case SCAN: 41232 return getScan(); 41233 41234 case ATTRIBUTES: 41235 return getAttributes(); 41236 41237 } 41238 throw new IllegalStateException(); 41239 } 41240 41241 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 41242 public boolean isSet(_Fields field) { 41243 if (field == null) { 41244 throw new IllegalArgumentException(); 41245 } 41246 41247 switch (field) { 41248 case TABLE_NAME: 41249 return isSetTableName(); 41250 case SCAN: 41251 return isSetScan(); 41252 case ATTRIBUTES: 41253 return isSetAttributes(); 41254 } 41255 throw new IllegalStateException(); 41256 } 41257 41258 @Override 41259 public boolean equals(Object that) { 41260 if (that == null) 41261 return false; 41262 if (that instanceof scannerOpenWithScan_args) 41263 return this.equals((scannerOpenWithScan_args)that); 41264 return false; 41265 } 41266 41267 public boolean equals(scannerOpenWithScan_args that) { 41268 if (that == null) 41269 return false; 41270 41271 boolean this_present_tableName = true && this.isSetTableName(); 41272 boolean that_present_tableName = true && that.isSetTableName(); 41273 if (this_present_tableName || that_present_tableName) { 41274 if (!(this_present_tableName && that_present_tableName)) 41275 return false; 41276 if (!this.tableName.equals(that.tableName)) 41277 return false; 41278 } 41279 41280 boolean this_present_scan = true && this.isSetScan(); 41281 boolean that_present_scan = true && that.isSetScan(); 41282 if (this_present_scan || that_present_scan) { 41283 if (!(this_present_scan && that_present_scan)) 41284 return false; 41285 if (!this.scan.equals(that.scan)) 41286 return false; 41287 } 41288 41289 boolean this_present_attributes = true && this.isSetAttributes(); 41290 boolean that_present_attributes = true && that.isSetAttributes(); 41291 if (this_present_attributes || that_present_attributes) { 41292 if (!(this_present_attributes && that_present_attributes)) 41293 return false; 41294 if (!this.attributes.equals(that.attributes)) 41295 return false; 41296 } 41297 41298 return true; 41299 } 41300 41301 @Override 41302 public int hashCode() { 41303 HashCodeBuilder builder = new HashCodeBuilder(); 41304 41305 boolean present_tableName = true && (isSetTableName()); 41306 builder.append(present_tableName); 41307 if (present_tableName) 41308 builder.append(tableName); 41309 41310 boolean present_scan = true && (isSetScan()); 41311 builder.append(present_scan); 41312 if (present_scan) 41313 builder.append(scan); 41314 41315 boolean present_attributes = true && (isSetAttributes()); 41316 builder.append(present_attributes); 41317 if (present_attributes) 41318 builder.append(attributes); 41319 41320 return builder.toHashCode(); 41321 } 41322 41323 public int compareTo(scannerOpenWithScan_args other) { 41324 if (!getClass().equals(other.getClass())) { 41325 return getClass().getName().compareTo(other.getClass().getName()); 41326 } 41327 41328 int lastComparison = 0; 41329 scannerOpenWithScan_args typedOther = (scannerOpenWithScan_args)other; 41330 41331 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 41332 if (lastComparison != 0) { 41333 return lastComparison; 41334 } 41335 if (isSetTableName()) { 41336 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 41337 if (lastComparison != 0) { 41338 return lastComparison; 41339 } 41340 } 41341 lastComparison = Boolean.valueOf(isSetScan()).compareTo(typedOther.isSetScan()); 41342 if (lastComparison != 0) { 41343 return lastComparison; 41344 } 41345 if (isSetScan()) { 41346 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, typedOther.scan); 41347 if (lastComparison != 0) { 41348 return lastComparison; 41349 } 41350 } 41351 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 41352 if (lastComparison != 0) { 41353 return lastComparison; 41354 } 41355 if (isSetAttributes()) { 41356 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 41357 if (lastComparison != 0) { 41358 return lastComparison; 41359 } 41360 } 41361 return 0; 41362 } 41363 41364 public _Fields fieldForId(int fieldId) { 41365 return _Fields.findByThriftId(fieldId); 41366 } 41367 41368 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 41369 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 41370 } 41371 41372 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 41373 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 41374 } 41375 41376 @Override 41377 public String toString() { 41378 StringBuilder sb = new StringBuilder("scannerOpenWithScan_args("); 41379 boolean first = true; 41380 41381 sb.append("tableName:"); 41382 if (this.tableName == null) { 41383 sb.append("null"); 41384 } else { 41385 sb.append(this.tableName); 41386 } 41387 first = false; 41388 if (!first) sb.append(", "); 41389 sb.append("scan:"); 41390 if (this.scan == null) { 41391 sb.append("null"); 41392 } else { 41393 sb.append(this.scan); 41394 } 41395 first = false; 41396 if (!first) sb.append(", "); 41397 sb.append("attributes:"); 41398 if (this.attributes == null) { 41399 sb.append("null"); 41400 } else { 41401 sb.append(this.attributes); 41402 } 41403 first = false; 41404 sb.append(")"); 41405 return sb.toString(); 41406 } 41407 41408 public void validate() throws org.apache.thrift.TException { 41409 // check for required fields 41410 } 41411 41412 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 41413 try { 41414 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 41415 } catch (org.apache.thrift.TException te) { 41416 throw new java.io.IOException(te); 41417 } 41418 } 41419 41420 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 41421 try { 41422 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 41423 } catch (org.apache.thrift.TException te) { 41424 throw new java.io.IOException(te); 41425 } 41426 } 41427 41428 private static class scannerOpenWithScan_argsStandardSchemeFactory implements SchemeFactory { 41429 public scannerOpenWithScan_argsStandardScheme getScheme() { 41430 return new scannerOpenWithScan_argsStandardScheme(); 41431 } 41432 } 41433 41434 private static class scannerOpenWithScan_argsStandardScheme extends StandardScheme<scannerOpenWithScan_args> { 41435 41436 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { 41437 org.apache.thrift.protocol.TField schemeField; 41438 iprot.readStructBegin(); 41439 while (true) 41440 { 41441 schemeField = iprot.readFieldBegin(); 41442 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 41443 break; 41444 } 41445 switch (schemeField.id) { 41446 case 1: // TABLE_NAME 41447 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 41448 struct.tableName = iprot.readBinary(); 41449 struct.setTableNameIsSet(true); 41450 } else { 41451 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41452 } 41453 break; 41454 case 2: // SCAN 41455 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 41456 struct.scan = new TScan(); 41457 struct.scan.read(iprot); 41458 struct.setScanIsSet(true); 41459 } else { 41460 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41461 } 41462 break; 41463 case 3: // ATTRIBUTES 41464 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 41465 { 41466 org.apache.thrift.protocol.TMap _map450 = iprot.readMapBegin(); 41467 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map450.size); 41468 for (int _i451 = 0; _i451 < _map450.size; ++_i451) 41469 { 41470 ByteBuffer _key452; // required 41471 ByteBuffer _val453; // required 41472 _key452 = iprot.readBinary(); 41473 _val453 = iprot.readBinary(); 41474 struct.attributes.put(_key452, _val453); 41475 } 41476 iprot.readMapEnd(); 41477 } 41478 struct.setAttributesIsSet(true); 41479 } else { 41480 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41481 } 41482 break; 41483 default: 41484 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41485 } 41486 iprot.readFieldEnd(); 41487 } 41488 iprot.readStructEnd(); 41489 41490 // check for required fields of primitive type, which can't be checked in the validate method 41491 struct.validate(); 41492 } 41493 41494 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { 41495 struct.validate(); 41496 41497 oprot.writeStructBegin(STRUCT_DESC); 41498 if (struct.tableName != null) { 41499 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 41500 oprot.writeBinary(struct.tableName); 41501 oprot.writeFieldEnd(); 41502 } 41503 if (struct.scan != null) { 41504 oprot.writeFieldBegin(SCAN_FIELD_DESC); 41505 struct.scan.write(oprot); 41506 oprot.writeFieldEnd(); 41507 } 41508 if (struct.attributes != null) { 41509 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 41510 { 41511 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 41512 for (Map.Entry<ByteBuffer, ByteBuffer> _iter454 : struct.attributes.entrySet()) 41513 { 41514 oprot.writeBinary(_iter454.getKey()); 41515 oprot.writeBinary(_iter454.getValue()); 41516 } 41517 oprot.writeMapEnd(); 41518 } 41519 oprot.writeFieldEnd(); 41520 } 41521 oprot.writeFieldStop(); 41522 oprot.writeStructEnd(); 41523 } 41524 41525 } 41526 41527 private static class scannerOpenWithScan_argsTupleSchemeFactory implements SchemeFactory { 41528 public scannerOpenWithScan_argsTupleScheme getScheme() { 41529 return new scannerOpenWithScan_argsTupleScheme(); 41530 } 41531 } 41532 41533 private static class scannerOpenWithScan_argsTupleScheme extends TupleScheme<scannerOpenWithScan_args> { 41534 41535 @Override 41536 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { 41537 TTupleProtocol oprot = (TTupleProtocol) prot; 41538 BitSet optionals = new BitSet(); 41539 if (struct.isSetTableName()) { 41540 optionals.set(0); 41541 } 41542 if (struct.isSetScan()) { 41543 optionals.set(1); 41544 } 41545 if (struct.isSetAttributes()) { 41546 optionals.set(2); 41547 } 41548 oprot.writeBitSet(optionals, 3); 41549 if (struct.isSetTableName()) { 41550 oprot.writeBinary(struct.tableName); 41551 } 41552 if (struct.isSetScan()) { 41553 struct.scan.write(oprot); 41554 } 41555 if (struct.isSetAttributes()) { 41556 { 41557 oprot.writeI32(struct.attributes.size()); 41558 for (Map.Entry<ByteBuffer, ByteBuffer> _iter455 : struct.attributes.entrySet()) 41559 { 41560 oprot.writeBinary(_iter455.getKey()); 41561 oprot.writeBinary(_iter455.getValue()); 41562 } 41563 } 41564 } 41565 } 41566 41567 @Override 41568 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException { 41569 TTupleProtocol iprot = (TTupleProtocol) prot; 41570 BitSet incoming = iprot.readBitSet(3); 41571 if (incoming.get(0)) { 41572 struct.tableName = iprot.readBinary(); 41573 struct.setTableNameIsSet(true); 41574 } 41575 if (incoming.get(1)) { 41576 struct.scan = new TScan(); 41577 struct.scan.read(iprot); 41578 struct.setScanIsSet(true); 41579 } 41580 if (incoming.get(2)) { 41581 { 41582 org.apache.thrift.protocol.TMap _map456 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 41583 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map456.size); 41584 for (int _i457 = 0; _i457 < _map456.size; ++_i457) 41585 { 41586 ByteBuffer _key458; // required 41587 ByteBuffer _val459; // required 41588 _key458 = iprot.readBinary(); 41589 _val459 = iprot.readBinary(); 41590 struct.attributes.put(_key458, _val459); 41591 } 41592 } 41593 struct.setAttributesIsSet(true); 41594 } 41595 } 41596 } 41597 41598 } 41599 41600 public static class scannerOpenWithScan_result implements org.apache.thrift.TBase<scannerOpenWithScan_result, scannerOpenWithScan_result._Fields>, java.io.Serializable, Cloneable { 41601 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_result"); 41602 41603 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 41604 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 41605 41606 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 41607 static { 41608 schemes.put(StandardScheme.class, new scannerOpenWithScan_resultStandardSchemeFactory()); 41609 schemes.put(TupleScheme.class, new scannerOpenWithScan_resultTupleSchemeFactory()); 41610 } 41611 41612 public int success; // required 41613 public IOError io; // required 41614 41615 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 41616 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 41617 SUCCESS((short)0, "success"), 41618 IO((short)1, "io"); 41619 41620 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 41621 41622 static { 41623 for (_Fields field : EnumSet.allOf(_Fields.class)) { 41624 byName.put(field.getFieldName(), field); 41625 } 41626 } 41627 41628 /** 41629 * Find the _Fields constant that matches fieldId, or null if its not found. 41630 */ 41631 public static _Fields findByThriftId(int fieldId) { 41632 switch(fieldId) { 41633 case 0: // SUCCESS 41634 return SUCCESS; 41635 case 1: // IO 41636 return IO; 41637 default: 41638 return null; 41639 } 41640 } 41641 41642 /** 41643 * Find the _Fields constant that matches fieldId, throwing an exception 41644 * if it is not found. 41645 */ 41646 public static _Fields findByThriftIdOrThrow(int fieldId) { 41647 _Fields fields = findByThriftId(fieldId); 41648 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 41649 return fields; 41650 } 41651 41652 /** 41653 * Find the _Fields constant that matches name, or null if its not found. 41654 */ 41655 public static _Fields findByName(String name) { 41656 return byName.get(name); 41657 } 41658 41659 private final short _thriftId; 41660 private final String _fieldName; 41661 41662 _Fields(short thriftId, String fieldName) { 41663 _thriftId = thriftId; 41664 _fieldName = fieldName; 41665 } 41666 41667 public short getThriftFieldId() { 41668 return _thriftId; 41669 } 41670 41671 public String getFieldName() { 41672 return _fieldName; 41673 } 41674 } 41675 41676 // isset id assignments 41677 private static final int __SUCCESS_ISSET_ID = 0; 41678 private BitSet __isset_bit_vector = new BitSet(1); 41679 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 41680 static { 41681 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 41682 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 41683 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 41684 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 41685 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 41686 metaDataMap = Collections.unmodifiableMap(tmpMap); 41687 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_result.class, metaDataMap); 41688 } 41689 41690 public scannerOpenWithScan_result() { 41691 } 41692 41693 public scannerOpenWithScan_result( 41694 int success, 41695 IOError io) 41696 { 41697 this(); 41698 this.success = success; 41699 setSuccessIsSet(true); 41700 this.io = io; 41701 } 41702 41703 /** 41704 * Performs a deep copy on <i>other</i>. 41705 */ 41706 public scannerOpenWithScan_result(scannerOpenWithScan_result other) { 41707 __isset_bit_vector.clear(); 41708 __isset_bit_vector.or(other.__isset_bit_vector); 41709 this.success = other.success; 41710 if (other.isSetIo()) { 41711 this.io = new IOError(other.io); 41712 } 41713 } 41714 41715 public scannerOpenWithScan_result deepCopy() { 41716 return new scannerOpenWithScan_result(this); 41717 } 41718 41719 @Override 41720 public void clear() { 41721 setSuccessIsSet(false); 41722 this.success = 0; 41723 this.io = null; 41724 } 41725 41726 public int getSuccess() { 41727 return this.success; 41728 } 41729 41730 public scannerOpenWithScan_result setSuccess(int success) { 41731 this.success = success; 41732 setSuccessIsSet(true); 41733 return this; 41734 } 41735 41736 public void unsetSuccess() { 41737 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 41738 } 41739 41740 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 41741 public boolean isSetSuccess() { 41742 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 41743 } 41744 41745 public void setSuccessIsSet(boolean value) { 41746 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 41747 } 41748 41749 public IOError getIo() { 41750 return this.io; 41751 } 41752 41753 public scannerOpenWithScan_result setIo(IOError io) { 41754 this.io = io; 41755 return this; 41756 } 41757 41758 public void unsetIo() { 41759 this.io = null; 41760 } 41761 41762 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 41763 public boolean isSetIo() { 41764 return this.io != null; 41765 } 41766 41767 public void setIoIsSet(boolean value) { 41768 if (!value) { 41769 this.io = null; 41770 } 41771 } 41772 41773 public void setFieldValue(_Fields field, Object value) { 41774 switch (field) { 41775 case SUCCESS: 41776 if (value == null) { 41777 unsetSuccess(); 41778 } else { 41779 setSuccess((Integer)value); 41780 } 41781 break; 41782 41783 case IO: 41784 if (value == null) { 41785 unsetIo(); 41786 } else { 41787 setIo((IOError)value); 41788 } 41789 break; 41790 41791 } 41792 } 41793 41794 public Object getFieldValue(_Fields field) { 41795 switch (field) { 41796 case SUCCESS: 41797 return Integer.valueOf(getSuccess()); 41798 41799 case IO: 41800 return getIo(); 41801 41802 } 41803 throw new IllegalStateException(); 41804 } 41805 41806 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 41807 public boolean isSet(_Fields field) { 41808 if (field == null) { 41809 throw new IllegalArgumentException(); 41810 } 41811 41812 switch (field) { 41813 case SUCCESS: 41814 return isSetSuccess(); 41815 case IO: 41816 return isSetIo(); 41817 } 41818 throw new IllegalStateException(); 41819 } 41820 41821 @Override 41822 public boolean equals(Object that) { 41823 if (that == null) 41824 return false; 41825 if (that instanceof scannerOpenWithScan_result) 41826 return this.equals((scannerOpenWithScan_result)that); 41827 return false; 41828 } 41829 41830 public boolean equals(scannerOpenWithScan_result that) { 41831 if (that == null) 41832 return false; 41833 41834 boolean this_present_success = true; 41835 boolean that_present_success = true; 41836 if (this_present_success || that_present_success) { 41837 if (!(this_present_success && that_present_success)) 41838 return false; 41839 if (this.success != that.success) 41840 return false; 41841 } 41842 41843 boolean this_present_io = true && this.isSetIo(); 41844 boolean that_present_io = true && that.isSetIo(); 41845 if (this_present_io || that_present_io) { 41846 if (!(this_present_io && that_present_io)) 41847 return false; 41848 if (!this.io.equals(that.io)) 41849 return false; 41850 } 41851 41852 return true; 41853 } 41854 41855 @Override 41856 public int hashCode() { 41857 HashCodeBuilder builder = new HashCodeBuilder(); 41858 41859 boolean present_success = true; 41860 builder.append(present_success); 41861 if (present_success) 41862 builder.append(success); 41863 41864 boolean present_io = true && (isSetIo()); 41865 builder.append(present_io); 41866 if (present_io) 41867 builder.append(io); 41868 41869 return builder.toHashCode(); 41870 } 41871 41872 public int compareTo(scannerOpenWithScan_result other) { 41873 if (!getClass().equals(other.getClass())) { 41874 return getClass().getName().compareTo(other.getClass().getName()); 41875 } 41876 41877 int lastComparison = 0; 41878 scannerOpenWithScan_result typedOther = (scannerOpenWithScan_result)other; 41879 41880 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 41881 if (lastComparison != 0) { 41882 return lastComparison; 41883 } 41884 if (isSetSuccess()) { 41885 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 41886 if (lastComparison != 0) { 41887 return lastComparison; 41888 } 41889 } 41890 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 41891 if (lastComparison != 0) { 41892 return lastComparison; 41893 } 41894 if (isSetIo()) { 41895 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 41896 if (lastComparison != 0) { 41897 return lastComparison; 41898 } 41899 } 41900 return 0; 41901 } 41902 41903 public _Fields fieldForId(int fieldId) { 41904 return _Fields.findByThriftId(fieldId); 41905 } 41906 41907 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 41908 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 41909 } 41910 41911 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 41912 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 41913 } 41914 41915 @Override 41916 public String toString() { 41917 StringBuilder sb = new StringBuilder("scannerOpenWithScan_result("); 41918 boolean first = true; 41919 41920 sb.append("success:"); 41921 sb.append(this.success); 41922 first = false; 41923 if (!first) sb.append(", "); 41924 sb.append("io:"); 41925 if (this.io == null) { 41926 sb.append("null"); 41927 } else { 41928 sb.append(this.io); 41929 } 41930 first = false; 41931 sb.append(")"); 41932 return sb.toString(); 41933 } 41934 41935 public void validate() throws org.apache.thrift.TException { 41936 // check for required fields 41937 } 41938 41939 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 41940 try { 41941 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 41942 } catch (org.apache.thrift.TException te) { 41943 throw new java.io.IOException(te); 41944 } 41945 } 41946 41947 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 41948 try { 41949 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 41950 } catch (org.apache.thrift.TException te) { 41951 throw new java.io.IOException(te); 41952 } 41953 } 41954 41955 private static class scannerOpenWithScan_resultStandardSchemeFactory implements SchemeFactory { 41956 public scannerOpenWithScan_resultStandardScheme getScheme() { 41957 return new scannerOpenWithScan_resultStandardScheme(); 41958 } 41959 } 41960 41961 private static class scannerOpenWithScan_resultStandardScheme extends StandardScheme<scannerOpenWithScan_result> { 41962 41963 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { 41964 org.apache.thrift.protocol.TField schemeField; 41965 iprot.readStructBegin(); 41966 while (true) 41967 { 41968 schemeField = iprot.readFieldBegin(); 41969 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 41970 break; 41971 } 41972 switch (schemeField.id) { 41973 case 0: // SUCCESS 41974 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 41975 struct.success = iprot.readI32(); 41976 struct.setSuccessIsSet(true); 41977 } else { 41978 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41979 } 41980 break; 41981 case 1: // IO 41982 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 41983 struct.io = new IOError(); 41984 struct.io.read(iprot); 41985 struct.setIoIsSet(true); 41986 } else { 41987 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41988 } 41989 break; 41990 default: 41991 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 41992 } 41993 iprot.readFieldEnd(); 41994 } 41995 iprot.readStructEnd(); 41996 41997 // check for required fields of primitive type, which can't be checked in the validate method 41998 struct.validate(); 41999 } 42000 42001 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { 42002 struct.validate(); 42003 42004 oprot.writeStructBegin(STRUCT_DESC); 42005 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 42006 oprot.writeI32(struct.success); 42007 oprot.writeFieldEnd(); 42008 if (struct.io != null) { 42009 oprot.writeFieldBegin(IO_FIELD_DESC); 42010 struct.io.write(oprot); 42011 oprot.writeFieldEnd(); 42012 } 42013 oprot.writeFieldStop(); 42014 oprot.writeStructEnd(); 42015 } 42016 42017 } 42018 42019 private static class scannerOpenWithScan_resultTupleSchemeFactory implements SchemeFactory { 42020 public scannerOpenWithScan_resultTupleScheme getScheme() { 42021 return new scannerOpenWithScan_resultTupleScheme(); 42022 } 42023 } 42024 42025 private static class scannerOpenWithScan_resultTupleScheme extends TupleScheme<scannerOpenWithScan_result> { 42026 42027 @Override 42028 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { 42029 TTupleProtocol oprot = (TTupleProtocol) prot; 42030 BitSet optionals = new BitSet(); 42031 if (struct.isSetSuccess()) { 42032 optionals.set(0); 42033 } 42034 if (struct.isSetIo()) { 42035 optionals.set(1); 42036 } 42037 oprot.writeBitSet(optionals, 2); 42038 if (struct.isSetSuccess()) { 42039 oprot.writeI32(struct.success); 42040 } 42041 if (struct.isSetIo()) { 42042 struct.io.write(oprot); 42043 } 42044 } 42045 42046 @Override 42047 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException { 42048 TTupleProtocol iprot = (TTupleProtocol) prot; 42049 BitSet incoming = iprot.readBitSet(2); 42050 if (incoming.get(0)) { 42051 struct.success = iprot.readI32(); 42052 struct.setSuccessIsSet(true); 42053 } 42054 if (incoming.get(1)) { 42055 struct.io = new IOError(); 42056 struct.io.read(iprot); 42057 struct.setIoIsSet(true); 42058 } 42059 } 42060 } 42061 42062 } 42063 42064 public static class scannerOpen_args implements org.apache.thrift.TBase<scannerOpen_args, scannerOpen_args._Fields>, java.io.Serializable, Cloneable { 42065 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_args"); 42066 42067 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 42068 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2); 42069 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 42070 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 42071 42072 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 42073 static { 42074 schemes.put(StandardScheme.class, new scannerOpen_argsStandardSchemeFactory()); 42075 schemes.put(TupleScheme.class, new scannerOpen_argsTupleSchemeFactory()); 42076 } 42077 42078 /** 42079 * name of table 42080 */ 42081 public ByteBuffer tableName; // required 42082 /** 42083 * Starting row in table to scan. 42084 * Send "" (empty string) to start at the first row. 42085 */ 42086 public ByteBuffer startRow; // required 42087 /** 42088 * columns to scan. If column name is a column family, all 42089 * columns of the specified column family are returned. It's also possible 42090 * to pass a regex in the column qualifier. 42091 */ 42092 public List<ByteBuffer> columns; // required 42093 /** 42094 * Scan attributes 42095 */ 42096 public Map<ByteBuffer,ByteBuffer> attributes; // required 42097 42098 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 42099 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 42100 /** 42101 * name of table 42102 */ 42103 TABLE_NAME((short)1, "tableName"), 42104 /** 42105 * Starting row in table to scan. 42106 * Send "" (empty string) to start at the first row. 42107 */ 42108 START_ROW((short)2, "startRow"), 42109 /** 42110 * columns to scan. If column name is a column family, all 42111 * columns of the specified column family are returned. It's also possible 42112 * to pass a regex in the column qualifier. 42113 */ 42114 COLUMNS((short)3, "columns"), 42115 /** 42116 * Scan attributes 42117 */ 42118 ATTRIBUTES((short)4, "attributes"); 42119 42120 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 42121 42122 static { 42123 for (_Fields field : EnumSet.allOf(_Fields.class)) { 42124 byName.put(field.getFieldName(), field); 42125 } 42126 } 42127 42128 /** 42129 * Find the _Fields constant that matches fieldId, or null if its not found. 42130 */ 42131 public static _Fields findByThriftId(int fieldId) { 42132 switch(fieldId) { 42133 case 1: // TABLE_NAME 42134 return TABLE_NAME; 42135 case 2: // START_ROW 42136 return START_ROW; 42137 case 3: // COLUMNS 42138 return COLUMNS; 42139 case 4: // ATTRIBUTES 42140 return ATTRIBUTES; 42141 default: 42142 return null; 42143 } 42144 } 42145 42146 /** 42147 * Find the _Fields constant that matches fieldId, throwing an exception 42148 * if it is not found. 42149 */ 42150 public static _Fields findByThriftIdOrThrow(int fieldId) { 42151 _Fields fields = findByThriftId(fieldId); 42152 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 42153 return fields; 42154 } 42155 42156 /** 42157 * Find the _Fields constant that matches name, or null if its not found. 42158 */ 42159 public static _Fields findByName(String name) { 42160 return byName.get(name); 42161 } 42162 42163 private final short _thriftId; 42164 private final String _fieldName; 42165 42166 _Fields(short thriftId, String fieldName) { 42167 _thriftId = thriftId; 42168 _fieldName = fieldName; 42169 } 42170 42171 public short getThriftFieldId() { 42172 return _thriftId; 42173 } 42174 42175 public String getFieldName() { 42176 return _fieldName; 42177 } 42178 } 42179 42180 // isset id assignments 42181 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 42182 static { 42183 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 42184 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 42185 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 42186 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 42187 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 42188 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 42189 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 42190 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 42191 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 42192 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 42193 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 42194 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 42195 metaDataMap = Collections.unmodifiableMap(tmpMap); 42196 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_args.class, metaDataMap); 42197 } 42198 42199 public scannerOpen_args() { 42200 } 42201 42202 public scannerOpen_args( 42203 ByteBuffer tableName, 42204 ByteBuffer startRow, 42205 List<ByteBuffer> columns, 42206 Map<ByteBuffer,ByteBuffer> attributes) 42207 { 42208 this(); 42209 this.tableName = tableName; 42210 this.startRow = startRow; 42211 this.columns = columns; 42212 this.attributes = attributes; 42213 } 42214 42215 /** 42216 * Performs a deep copy on <i>other</i>. 42217 */ 42218 public scannerOpen_args(scannerOpen_args other) { 42219 if (other.isSetTableName()) { 42220 this.tableName = other.tableName; 42221 } 42222 if (other.isSetStartRow()) { 42223 this.startRow = other.startRow; 42224 } 42225 if (other.isSetColumns()) { 42226 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 42227 for (ByteBuffer other_element : other.columns) { 42228 __this__columns.add(other_element); 42229 } 42230 this.columns = __this__columns; 42231 } 42232 if (other.isSetAttributes()) { 42233 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 42234 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 42235 42236 ByteBuffer other_element_key = other_element.getKey(); 42237 ByteBuffer other_element_value = other_element.getValue(); 42238 42239 ByteBuffer __this__attributes_copy_key = other_element_key; 42240 42241 ByteBuffer __this__attributes_copy_value = other_element_value; 42242 42243 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 42244 } 42245 this.attributes = __this__attributes; 42246 } 42247 } 42248 42249 public scannerOpen_args deepCopy() { 42250 return new scannerOpen_args(this); 42251 } 42252 42253 @Override 42254 public void clear() { 42255 this.tableName = null; 42256 this.startRow = null; 42257 this.columns = null; 42258 this.attributes = null; 42259 } 42260 42261 /** 42262 * name of table 42263 */ 42264 public byte[] getTableName() { 42265 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 42266 return tableName == null ? null : tableName.array(); 42267 } 42268 42269 public ByteBuffer bufferForTableName() { 42270 return tableName; 42271 } 42272 42273 /** 42274 * name of table 42275 */ 42276 public scannerOpen_args setTableName(byte[] tableName) { 42277 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 42278 return this; 42279 } 42280 42281 public scannerOpen_args setTableName(ByteBuffer tableName) { 42282 this.tableName = tableName; 42283 return this; 42284 } 42285 42286 public void unsetTableName() { 42287 this.tableName = null; 42288 } 42289 42290 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 42291 public boolean isSetTableName() { 42292 return this.tableName != null; 42293 } 42294 42295 public void setTableNameIsSet(boolean value) { 42296 if (!value) { 42297 this.tableName = null; 42298 } 42299 } 42300 42301 /** 42302 * Starting row in table to scan. 42303 * Send "" (empty string) to start at the first row. 42304 */ 42305 public byte[] getStartRow() { 42306 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow)); 42307 return startRow == null ? null : startRow.array(); 42308 } 42309 42310 public ByteBuffer bufferForStartRow() { 42311 return startRow; 42312 } 42313 42314 /** 42315 * Starting row in table to scan. 42316 * Send "" (empty string) to start at the first row. 42317 */ 42318 public scannerOpen_args setStartRow(byte[] startRow) { 42319 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); 42320 return this; 42321 } 42322 42323 public scannerOpen_args setStartRow(ByteBuffer startRow) { 42324 this.startRow = startRow; 42325 return this; 42326 } 42327 42328 public void unsetStartRow() { 42329 this.startRow = null; 42330 } 42331 42332 /** Returns true if field startRow is set (has been assigned a value) and false otherwise */ 42333 public boolean isSetStartRow() { 42334 return this.startRow != null; 42335 } 42336 42337 public void setStartRowIsSet(boolean value) { 42338 if (!value) { 42339 this.startRow = null; 42340 } 42341 } 42342 42343 public int getColumnsSize() { 42344 return (this.columns == null) ? 0 : this.columns.size(); 42345 } 42346 42347 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 42348 return (this.columns == null) ? null : this.columns.iterator(); 42349 } 42350 42351 public void addToColumns(ByteBuffer elem) { 42352 if (this.columns == null) { 42353 this.columns = new ArrayList<ByteBuffer>(); 42354 } 42355 this.columns.add(elem); 42356 } 42357 42358 /** 42359 * columns to scan. If column name is a column family, all 42360 * columns of the specified column family are returned. It's also possible 42361 * to pass a regex in the column qualifier. 42362 */ 42363 public List<ByteBuffer> getColumns() { 42364 return this.columns; 42365 } 42366 42367 /** 42368 * columns to scan. If column name is a column family, all 42369 * columns of the specified column family are returned. It's also possible 42370 * to pass a regex in the column qualifier. 42371 */ 42372 public scannerOpen_args setColumns(List<ByteBuffer> columns) { 42373 this.columns = columns; 42374 return this; 42375 } 42376 42377 public void unsetColumns() { 42378 this.columns = null; 42379 } 42380 42381 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 42382 public boolean isSetColumns() { 42383 return this.columns != null; 42384 } 42385 42386 public void setColumnsIsSet(boolean value) { 42387 if (!value) { 42388 this.columns = null; 42389 } 42390 } 42391 42392 public int getAttributesSize() { 42393 return (this.attributes == null) ? 0 : this.attributes.size(); 42394 } 42395 42396 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 42397 if (this.attributes == null) { 42398 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 42399 } 42400 this.attributes.put(key, val); 42401 } 42402 42403 /** 42404 * Scan attributes 42405 */ 42406 public Map<ByteBuffer,ByteBuffer> getAttributes() { 42407 return this.attributes; 42408 } 42409 42410 /** 42411 * Scan attributes 42412 */ 42413 public scannerOpen_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 42414 this.attributes = attributes; 42415 return this; 42416 } 42417 42418 public void unsetAttributes() { 42419 this.attributes = null; 42420 } 42421 42422 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 42423 public boolean isSetAttributes() { 42424 return this.attributes != null; 42425 } 42426 42427 public void setAttributesIsSet(boolean value) { 42428 if (!value) { 42429 this.attributes = null; 42430 } 42431 } 42432 42433 public void setFieldValue(_Fields field, Object value) { 42434 switch (field) { 42435 case TABLE_NAME: 42436 if (value == null) { 42437 unsetTableName(); 42438 } else { 42439 setTableName((ByteBuffer)value); 42440 } 42441 break; 42442 42443 case START_ROW: 42444 if (value == null) { 42445 unsetStartRow(); 42446 } else { 42447 setStartRow((ByteBuffer)value); 42448 } 42449 break; 42450 42451 case COLUMNS: 42452 if (value == null) { 42453 unsetColumns(); 42454 } else { 42455 setColumns((List<ByteBuffer>)value); 42456 } 42457 break; 42458 42459 case ATTRIBUTES: 42460 if (value == null) { 42461 unsetAttributes(); 42462 } else { 42463 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 42464 } 42465 break; 42466 42467 } 42468 } 42469 42470 public Object getFieldValue(_Fields field) { 42471 switch (field) { 42472 case TABLE_NAME: 42473 return getTableName(); 42474 42475 case START_ROW: 42476 return getStartRow(); 42477 42478 case COLUMNS: 42479 return getColumns(); 42480 42481 case ATTRIBUTES: 42482 return getAttributes(); 42483 42484 } 42485 throw new IllegalStateException(); 42486 } 42487 42488 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 42489 public boolean isSet(_Fields field) { 42490 if (field == null) { 42491 throw new IllegalArgumentException(); 42492 } 42493 42494 switch (field) { 42495 case TABLE_NAME: 42496 return isSetTableName(); 42497 case START_ROW: 42498 return isSetStartRow(); 42499 case COLUMNS: 42500 return isSetColumns(); 42501 case ATTRIBUTES: 42502 return isSetAttributes(); 42503 } 42504 throw new IllegalStateException(); 42505 } 42506 42507 @Override 42508 public boolean equals(Object that) { 42509 if (that == null) 42510 return false; 42511 if (that instanceof scannerOpen_args) 42512 return this.equals((scannerOpen_args)that); 42513 return false; 42514 } 42515 42516 public boolean equals(scannerOpen_args that) { 42517 if (that == null) 42518 return false; 42519 42520 boolean this_present_tableName = true && this.isSetTableName(); 42521 boolean that_present_tableName = true && that.isSetTableName(); 42522 if (this_present_tableName || that_present_tableName) { 42523 if (!(this_present_tableName && that_present_tableName)) 42524 return false; 42525 if (!this.tableName.equals(that.tableName)) 42526 return false; 42527 } 42528 42529 boolean this_present_startRow = true && this.isSetStartRow(); 42530 boolean that_present_startRow = true && that.isSetStartRow(); 42531 if (this_present_startRow || that_present_startRow) { 42532 if (!(this_present_startRow && that_present_startRow)) 42533 return false; 42534 if (!this.startRow.equals(that.startRow)) 42535 return false; 42536 } 42537 42538 boolean this_present_columns = true && this.isSetColumns(); 42539 boolean that_present_columns = true && that.isSetColumns(); 42540 if (this_present_columns || that_present_columns) { 42541 if (!(this_present_columns && that_present_columns)) 42542 return false; 42543 if (!this.columns.equals(that.columns)) 42544 return false; 42545 } 42546 42547 boolean this_present_attributes = true && this.isSetAttributes(); 42548 boolean that_present_attributes = true && that.isSetAttributes(); 42549 if (this_present_attributes || that_present_attributes) { 42550 if (!(this_present_attributes && that_present_attributes)) 42551 return false; 42552 if (!this.attributes.equals(that.attributes)) 42553 return false; 42554 } 42555 42556 return true; 42557 } 42558 42559 @Override 42560 public int hashCode() { 42561 HashCodeBuilder builder = new HashCodeBuilder(); 42562 42563 boolean present_tableName = true && (isSetTableName()); 42564 builder.append(present_tableName); 42565 if (present_tableName) 42566 builder.append(tableName); 42567 42568 boolean present_startRow = true && (isSetStartRow()); 42569 builder.append(present_startRow); 42570 if (present_startRow) 42571 builder.append(startRow); 42572 42573 boolean present_columns = true && (isSetColumns()); 42574 builder.append(present_columns); 42575 if (present_columns) 42576 builder.append(columns); 42577 42578 boolean present_attributes = true && (isSetAttributes()); 42579 builder.append(present_attributes); 42580 if (present_attributes) 42581 builder.append(attributes); 42582 42583 return builder.toHashCode(); 42584 } 42585 42586 public int compareTo(scannerOpen_args other) { 42587 if (!getClass().equals(other.getClass())) { 42588 return getClass().getName().compareTo(other.getClass().getName()); 42589 } 42590 42591 int lastComparison = 0; 42592 scannerOpen_args typedOther = (scannerOpen_args)other; 42593 42594 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 42595 if (lastComparison != 0) { 42596 return lastComparison; 42597 } 42598 if (isSetTableName()) { 42599 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 42600 if (lastComparison != 0) { 42601 return lastComparison; 42602 } 42603 } 42604 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); 42605 if (lastComparison != 0) { 42606 return lastComparison; 42607 } 42608 if (isSetStartRow()) { 42609 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); 42610 if (lastComparison != 0) { 42611 return lastComparison; 42612 } 42613 } 42614 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 42615 if (lastComparison != 0) { 42616 return lastComparison; 42617 } 42618 if (isSetColumns()) { 42619 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 42620 if (lastComparison != 0) { 42621 return lastComparison; 42622 } 42623 } 42624 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 42625 if (lastComparison != 0) { 42626 return lastComparison; 42627 } 42628 if (isSetAttributes()) { 42629 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 42630 if (lastComparison != 0) { 42631 return lastComparison; 42632 } 42633 } 42634 return 0; 42635 } 42636 42637 public _Fields fieldForId(int fieldId) { 42638 return _Fields.findByThriftId(fieldId); 42639 } 42640 42641 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 42642 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 42643 } 42644 42645 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 42646 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 42647 } 42648 42649 @Override 42650 public String toString() { 42651 StringBuilder sb = new StringBuilder("scannerOpen_args("); 42652 boolean first = true; 42653 42654 sb.append("tableName:"); 42655 if (this.tableName == null) { 42656 sb.append("null"); 42657 } else { 42658 sb.append(this.tableName); 42659 } 42660 first = false; 42661 if (!first) sb.append(", "); 42662 sb.append("startRow:"); 42663 if (this.startRow == null) { 42664 sb.append("null"); 42665 } else { 42666 sb.append(this.startRow); 42667 } 42668 first = false; 42669 if (!first) sb.append(", "); 42670 sb.append("columns:"); 42671 if (this.columns == null) { 42672 sb.append("null"); 42673 } else { 42674 sb.append(this.columns); 42675 } 42676 first = false; 42677 if (!first) sb.append(", "); 42678 sb.append("attributes:"); 42679 if (this.attributes == null) { 42680 sb.append("null"); 42681 } else { 42682 sb.append(this.attributes); 42683 } 42684 first = false; 42685 sb.append(")"); 42686 return sb.toString(); 42687 } 42688 42689 public void validate() throws org.apache.thrift.TException { 42690 // check for required fields 42691 } 42692 42693 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 42694 try { 42695 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 42696 } catch (org.apache.thrift.TException te) { 42697 throw new java.io.IOException(te); 42698 } 42699 } 42700 42701 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 42702 try { 42703 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 42704 } catch (org.apache.thrift.TException te) { 42705 throw new java.io.IOException(te); 42706 } 42707 } 42708 42709 private static class scannerOpen_argsStandardSchemeFactory implements SchemeFactory { 42710 public scannerOpen_argsStandardScheme getScheme() { 42711 return new scannerOpen_argsStandardScheme(); 42712 } 42713 } 42714 42715 private static class scannerOpen_argsStandardScheme extends StandardScheme<scannerOpen_args> { 42716 42717 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_args struct) throws org.apache.thrift.TException { 42718 org.apache.thrift.protocol.TField schemeField; 42719 iprot.readStructBegin(); 42720 while (true) 42721 { 42722 schemeField = iprot.readFieldBegin(); 42723 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 42724 break; 42725 } 42726 switch (schemeField.id) { 42727 case 1: // TABLE_NAME 42728 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 42729 struct.tableName = iprot.readBinary(); 42730 struct.setTableNameIsSet(true); 42731 } else { 42732 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 42733 } 42734 break; 42735 case 2: // START_ROW 42736 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 42737 struct.startRow = iprot.readBinary(); 42738 struct.setStartRowIsSet(true); 42739 } else { 42740 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 42741 } 42742 break; 42743 case 3: // COLUMNS 42744 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 42745 { 42746 org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); 42747 struct.columns = new ArrayList<ByteBuffer>(_list460.size); 42748 for (int _i461 = 0; _i461 < _list460.size; ++_i461) 42749 { 42750 ByteBuffer _elem462; // required 42751 _elem462 = iprot.readBinary(); 42752 struct.columns.add(_elem462); 42753 } 42754 iprot.readListEnd(); 42755 } 42756 struct.setColumnsIsSet(true); 42757 } else { 42758 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 42759 } 42760 break; 42761 case 4: // ATTRIBUTES 42762 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 42763 { 42764 org.apache.thrift.protocol.TMap _map463 = iprot.readMapBegin(); 42765 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map463.size); 42766 for (int _i464 = 0; _i464 < _map463.size; ++_i464) 42767 { 42768 ByteBuffer _key465; // required 42769 ByteBuffer _val466; // required 42770 _key465 = iprot.readBinary(); 42771 _val466 = iprot.readBinary(); 42772 struct.attributes.put(_key465, _val466); 42773 } 42774 iprot.readMapEnd(); 42775 } 42776 struct.setAttributesIsSet(true); 42777 } else { 42778 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 42779 } 42780 break; 42781 default: 42782 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 42783 } 42784 iprot.readFieldEnd(); 42785 } 42786 iprot.readStructEnd(); 42787 42788 // check for required fields of primitive type, which can't be checked in the validate method 42789 struct.validate(); 42790 } 42791 42792 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_args struct) throws org.apache.thrift.TException { 42793 struct.validate(); 42794 42795 oprot.writeStructBegin(STRUCT_DESC); 42796 if (struct.tableName != null) { 42797 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 42798 oprot.writeBinary(struct.tableName); 42799 oprot.writeFieldEnd(); 42800 } 42801 if (struct.startRow != null) { 42802 oprot.writeFieldBegin(START_ROW_FIELD_DESC); 42803 oprot.writeBinary(struct.startRow); 42804 oprot.writeFieldEnd(); 42805 } 42806 if (struct.columns != null) { 42807 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 42808 { 42809 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 42810 for (ByteBuffer _iter467 : struct.columns) 42811 { 42812 oprot.writeBinary(_iter467); 42813 } 42814 oprot.writeListEnd(); 42815 } 42816 oprot.writeFieldEnd(); 42817 } 42818 if (struct.attributes != null) { 42819 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 42820 { 42821 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 42822 for (Map.Entry<ByteBuffer, ByteBuffer> _iter468 : struct.attributes.entrySet()) 42823 { 42824 oprot.writeBinary(_iter468.getKey()); 42825 oprot.writeBinary(_iter468.getValue()); 42826 } 42827 oprot.writeMapEnd(); 42828 } 42829 oprot.writeFieldEnd(); 42830 } 42831 oprot.writeFieldStop(); 42832 oprot.writeStructEnd(); 42833 } 42834 42835 } 42836 42837 private static class scannerOpen_argsTupleSchemeFactory implements SchemeFactory { 42838 public scannerOpen_argsTupleScheme getScheme() { 42839 return new scannerOpen_argsTupleScheme(); 42840 } 42841 } 42842 42843 private static class scannerOpen_argsTupleScheme extends TupleScheme<scannerOpen_args> { 42844 42845 @Override 42846 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException { 42847 TTupleProtocol oprot = (TTupleProtocol) prot; 42848 BitSet optionals = new BitSet(); 42849 if (struct.isSetTableName()) { 42850 optionals.set(0); 42851 } 42852 if (struct.isSetStartRow()) { 42853 optionals.set(1); 42854 } 42855 if (struct.isSetColumns()) { 42856 optionals.set(2); 42857 } 42858 if (struct.isSetAttributes()) { 42859 optionals.set(3); 42860 } 42861 oprot.writeBitSet(optionals, 4); 42862 if (struct.isSetTableName()) { 42863 oprot.writeBinary(struct.tableName); 42864 } 42865 if (struct.isSetStartRow()) { 42866 oprot.writeBinary(struct.startRow); 42867 } 42868 if (struct.isSetColumns()) { 42869 { 42870 oprot.writeI32(struct.columns.size()); 42871 for (ByteBuffer _iter469 : struct.columns) 42872 { 42873 oprot.writeBinary(_iter469); 42874 } 42875 } 42876 } 42877 if (struct.isSetAttributes()) { 42878 { 42879 oprot.writeI32(struct.attributes.size()); 42880 for (Map.Entry<ByteBuffer, ByteBuffer> _iter470 : struct.attributes.entrySet()) 42881 { 42882 oprot.writeBinary(_iter470.getKey()); 42883 oprot.writeBinary(_iter470.getValue()); 42884 } 42885 } 42886 } 42887 } 42888 42889 @Override 42890 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException { 42891 TTupleProtocol iprot = (TTupleProtocol) prot; 42892 BitSet incoming = iprot.readBitSet(4); 42893 if (incoming.get(0)) { 42894 struct.tableName = iprot.readBinary(); 42895 struct.setTableNameIsSet(true); 42896 } 42897 if (incoming.get(1)) { 42898 struct.startRow = iprot.readBinary(); 42899 struct.setStartRowIsSet(true); 42900 } 42901 if (incoming.get(2)) { 42902 { 42903 org.apache.thrift.protocol.TList _list471 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 42904 struct.columns = new ArrayList<ByteBuffer>(_list471.size); 42905 for (int _i472 = 0; _i472 < _list471.size; ++_i472) 42906 { 42907 ByteBuffer _elem473; // required 42908 _elem473 = iprot.readBinary(); 42909 struct.columns.add(_elem473); 42910 } 42911 } 42912 struct.setColumnsIsSet(true); 42913 } 42914 if (incoming.get(3)) { 42915 { 42916 org.apache.thrift.protocol.TMap _map474 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 42917 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map474.size); 42918 for (int _i475 = 0; _i475 < _map474.size; ++_i475) 42919 { 42920 ByteBuffer _key476; // required 42921 ByteBuffer _val477; // required 42922 _key476 = iprot.readBinary(); 42923 _val477 = iprot.readBinary(); 42924 struct.attributes.put(_key476, _val477); 42925 } 42926 } 42927 struct.setAttributesIsSet(true); 42928 } 42929 } 42930 } 42931 42932 } 42933 42934 public static class scannerOpen_result implements org.apache.thrift.TBase<scannerOpen_result, scannerOpen_result._Fields>, java.io.Serializable, Cloneable { 42935 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_result"); 42936 42937 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 42938 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 42939 42940 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 42941 static { 42942 schemes.put(StandardScheme.class, new scannerOpen_resultStandardSchemeFactory()); 42943 schemes.put(TupleScheme.class, new scannerOpen_resultTupleSchemeFactory()); 42944 } 42945 42946 public int success; // required 42947 public IOError io; // required 42948 42949 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 42950 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 42951 SUCCESS((short)0, "success"), 42952 IO((short)1, "io"); 42953 42954 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 42955 42956 static { 42957 for (_Fields field : EnumSet.allOf(_Fields.class)) { 42958 byName.put(field.getFieldName(), field); 42959 } 42960 } 42961 42962 /** 42963 * Find the _Fields constant that matches fieldId, or null if its not found. 42964 */ 42965 public static _Fields findByThriftId(int fieldId) { 42966 switch(fieldId) { 42967 case 0: // SUCCESS 42968 return SUCCESS; 42969 case 1: // IO 42970 return IO; 42971 default: 42972 return null; 42973 } 42974 } 42975 42976 /** 42977 * Find the _Fields constant that matches fieldId, throwing an exception 42978 * if it is not found. 42979 */ 42980 public static _Fields findByThriftIdOrThrow(int fieldId) { 42981 _Fields fields = findByThriftId(fieldId); 42982 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 42983 return fields; 42984 } 42985 42986 /** 42987 * Find the _Fields constant that matches name, or null if its not found. 42988 */ 42989 public static _Fields findByName(String name) { 42990 return byName.get(name); 42991 } 42992 42993 private final short _thriftId; 42994 private final String _fieldName; 42995 42996 _Fields(short thriftId, String fieldName) { 42997 _thriftId = thriftId; 42998 _fieldName = fieldName; 42999 } 43000 43001 public short getThriftFieldId() { 43002 return _thriftId; 43003 } 43004 43005 public String getFieldName() { 43006 return _fieldName; 43007 } 43008 } 43009 43010 // isset id assignments 43011 private static final int __SUCCESS_ISSET_ID = 0; 43012 private BitSet __isset_bit_vector = new BitSet(1); 43013 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 43014 static { 43015 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 43016 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 43017 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 43018 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 43019 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 43020 metaDataMap = Collections.unmodifiableMap(tmpMap); 43021 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_result.class, metaDataMap); 43022 } 43023 43024 public scannerOpen_result() { 43025 } 43026 43027 public scannerOpen_result( 43028 int success, 43029 IOError io) 43030 { 43031 this(); 43032 this.success = success; 43033 setSuccessIsSet(true); 43034 this.io = io; 43035 } 43036 43037 /** 43038 * Performs a deep copy on <i>other</i>. 43039 */ 43040 public scannerOpen_result(scannerOpen_result other) { 43041 __isset_bit_vector.clear(); 43042 __isset_bit_vector.or(other.__isset_bit_vector); 43043 this.success = other.success; 43044 if (other.isSetIo()) { 43045 this.io = new IOError(other.io); 43046 } 43047 } 43048 43049 public scannerOpen_result deepCopy() { 43050 return new scannerOpen_result(this); 43051 } 43052 43053 @Override 43054 public void clear() { 43055 setSuccessIsSet(false); 43056 this.success = 0; 43057 this.io = null; 43058 } 43059 43060 public int getSuccess() { 43061 return this.success; 43062 } 43063 43064 public scannerOpen_result setSuccess(int success) { 43065 this.success = success; 43066 setSuccessIsSet(true); 43067 return this; 43068 } 43069 43070 public void unsetSuccess() { 43071 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 43072 } 43073 43074 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 43075 public boolean isSetSuccess() { 43076 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 43077 } 43078 43079 public void setSuccessIsSet(boolean value) { 43080 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 43081 } 43082 43083 public IOError getIo() { 43084 return this.io; 43085 } 43086 43087 public scannerOpen_result setIo(IOError io) { 43088 this.io = io; 43089 return this; 43090 } 43091 43092 public void unsetIo() { 43093 this.io = null; 43094 } 43095 43096 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 43097 public boolean isSetIo() { 43098 return this.io != null; 43099 } 43100 43101 public void setIoIsSet(boolean value) { 43102 if (!value) { 43103 this.io = null; 43104 } 43105 } 43106 43107 public void setFieldValue(_Fields field, Object value) { 43108 switch (field) { 43109 case SUCCESS: 43110 if (value == null) { 43111 unsetSuccess(); 43112 } else { 43113 setSuccess((Integer)value); 43114 } 43115 break; 43116 43117 case IO: 43118 if (value == null) { 43119 unsetIo(); 43120 } else { 43121 setIo((IOError)value); 43122 } 43123 break; 43124 43125 } 43126 } 43127 43128 public Object getFieldValue(_Fields field) { 43129 switch (field) { 43130 case SUCCESS: 43131 return Integer.valueOf(getSuccess()); 43132 43133 case IO: 43134 return getIo(); 43135 43136 } 43137 throw new IllegalStateException(); 43138 } 43139 43140 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 43141 public boolean isSet(_Fields field) { 43142 if (field == null) { 43143 throw new IllegalArgumentException(); 43144 } 43145 43146 switch (field) { 43147 case SUCCESS: 43148 return isSetSuccess(); 43149 case IO: 43150 return isSetIo(); 43151 } 43152 throw new IllegalStateException(); 43153 } 43154 43155 @Override 43156 public boolean equals(Object that) { 43157 if (that == null) 43158 return false; 43159 if (that instanceof scannerOpen_result) 43160 return this.equals((scannerOpen_result)that); 43161 return false; 43162 } 43163 43164 public boolean equals(scannerOpen_result that) { 43165 if (that == null) 43166 return false; 43167 43168 boolean this_present_success = true; 43169 boolean that_present_success = true; 43170 if (this_present_success || that_present_success) { 43171 if (!(this_present_success && that_present_success)) 43172 return false; 43173 if (this.success != that.success) 43174 return false; 43175 } 43176 43177 boolean this_present_io = true && this.isSetIo(); 43178 boolean that_present_io = true && that.isSetIo(); 43179 if (this_present_io || that_present_io) { 43180 if (!(this_present_io && that_present_io)) 43181 return false; 43182 if (!this.io.equals(that.io)) 43183 return false; 43184 } 43185 43186 return true; 43187 } 43188 43189 @Override 43190 public int hashCode() { 43191 HashCodeBuilder builder = new HashCodeBuilder(); 43192 43193 boolean present_success = true; 43194 builder.append(present_success); 43195 if (present_success) 43196 builder.append(success); 43197 43198 boolean present_io = true && (isSetIo()); 43199 builder.append(present_io); 43200 if (present_io) 43201 builder.append(io); 43202 43203 return builder.toHashCode(); 43204 } 43205 43206 public int compareTo(scannerOpen_result other) { 43207 if (!getClass().equals(other.getClass())) { 43208 return getClass().getName().compareTo(other.getClass().getName()); 43209 } 43210 43211 int lastComparison = 0; 43212 scannerOpen_result typedOther = (scannerOpen_result)other; 43213 43214 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 43215 if (lastComparison != 0) { 43216 return lastComparison; 43217 } 43218 if (isSetSuccess()) { 43219 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 43220 if (lastComparison != 0) { 43221 return lastComparison; 43222 } 43223 } 43224 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 43225 if (lastComparison != 0) { 43226 return lastComparison; 43227 } 43228 if (isSetIo()) { 43229 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 43230 if (lastComparison != 0) { 43231 return lastComparison; 43232 } 43233 } 43234 return 0; 43235 } 43236 43237 public _Fields fieldForId(int fieldId) { 43238 return _Fields.findByThriftId(fieldId); 43239 } 43240 43241 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 43242 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 43243 } 43244 43245 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 43246 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 43247 } 43248 43249 @Override 43250 public String toString() { 43251 StringBuilder sb = new StringBuilder("scannerOpen_result("); 43252 boolean first = true; 43253 43254 sb.append("success:"); 43255 sb.append(this.success); 43256 first = false; 43257 if (!first) sb.append(", "); 43258 sb.append("io:"); 43259 if (this.io == null) { 43260 sb.append("null"); 43261 } else { 43262 sb.append(this.io); 43263 } 43264 first = false; 43265 sb.append(")"); 43266 return sb.toString(); 43267 } 43268 43269 public void validate() throws org.apache.thrift.TException { 43270 // check for required fields 43271 } 43272 43273 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 43274 try { 43275 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 43276 } catch (org.apache.thrift.TException te) { 43277 throw new java.io.IOException(te); 43278 } 43279 } 43280 43281 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 43282 try { 43283 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 43284 } catch (org.apache.thrift.TException te) { 43285 throw new java.io.IOException(te); 43286 } 43287 } 43288 43289 private static class scannerOpen_resultStandardSchemeFactory implements SchemeFactory { 43290 public scannerOpen_resultStandardScheme getScheme() { 43291 return new scannerOpen_resultStandardScheme(); 43292 } 43293 } 43294 43295 private static class scannerOpen_resultStandardScheme extends StandardScheme<scannerOpen_result> { 43296 43297 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_result struct) throws org.apache.thrift.TException { 43298 org.apache.thrift.protocol.TField schemeField; 43299 iprot.readStructBegin(); 43300 while (true) 43301 { 43302 schemeField = iprot.readFieldBegin(); 43303 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 43304 break; 43305 } 43306 switch (schemeField.id) { 43307 case 0: // SUCCESS 43308 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 43309 struct.success = iprot.readI32(); 43310 struct.setSuccessIsSet(true); 43311 } else { 43312 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 43313 } 43314 break; 43315 case 1: // IO 43316 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 43317 struct.io = new IOError(); 43318 struct.io.read(iprot); 43319 struct.setIoIsSet(true); 43320 } else { 43321 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 43322 } 43323 break; 43324 default: 43325 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 43326 } 43327 iprot.readFieldEnd(); 43328 } 43329 iprot.readStructEnd(); 43330 43331 // check for required fields of primitive type, which can't be checked in the validate method 43332 struct.validate(); 43333 } 43334 43335 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_result struct) throws org.apache.thrift.TException { 43336 struct.validate(); 43337 43338 oprot.writeStructBegin(STRUCT_DESC); 43339 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 43340 oprot.writeI32(struct.success); 43341 oprot.writeFieldEnd(); 43342 if (struct.io != null) { 43343 oprot.writeFieldBegin(IO_FIELD_DESC); 43344 struct.io.write(oprot); 43345 oprot.writeFieldEnd(); 43346 } 43347 oprot.writeFieldStop(); 43348 oprot.writeStructEnd(); 43349 } 43350 43351 } 43352 43353 private static class scannerOpen_resultTupleSchemeFactory implements SchemeFactory { 43354 public scannerOpen_resultTupleScheme getScheme() { 43355 return new scannerOpen_resultTupleScheme(); 43356 } 43357 } 43358 43359 private static class scannerOpen_resultTupleScheme extends TupleScheme<scannerOpen_result> { 43360 43361 @Override 43362 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException { 43363 TTupleProtocol oprot = (TTupleProtocol) prot; 43364 BitSet optionals = new BitSet(); 43365 if (struct.isSetSuccess()) { 43366 optionals.set(0); 43367 } 43368 if (struct.isSetIo()) { 43369 optionals.set(1); 43370 } 43371 oprot.writeBitSet(optionals, 2); 43372 if (struct.isSetSuccess()) { 43373 oprot.writeI32(struct.success); 43374 } 43375 if (struct.isSetIo()) { 43376 struct.io.write(oprot); 43377 } 43378 } 43379 43380 @Override 43381 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException { 43382 TTupleProtocol iprot = (TTupleProtocol) prot; 43383 BitSet incoming = iprot.readBitSet(2); 43384 if (incoming.get(0)) { 43385 struct.success = iprot.readI32(); 43386 struct.setSuccessIsSet(true); 43387 } 43388 if (incoming.get(1)) { 43389 struct.io = new IOError(); 43390 struct.io.read(iprot); 43391 struct.setIoIsSet(true); 43392 } 43393 } 43394 } 43395 43396 } 43397 43398 public static class scannerOpenWithStop_args implements org.apache.thrift.TBase<scannerOpenWithStop_args, scannerOpenWithStop_args._Fields>, java.io.Serializable, Cloneable { 43399 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_args"); 43400 43401 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 43402 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2); 43403 private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3); 43404 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4); 43405 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 43406 43407 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 43408 static { 43409 schemes.put(StandardScheme.class, new scannerOpenWithStop_argsStandardSchemeFactory()); 43410 schemes.put(TupleScheme.class, new scannerOpenWithStop_argsTupleSchemeFactory()); 43411 } 43412 43413 /** 43414 * name of table 43415 */ 43416 public ByteBuffer tableName; // required 43417 /** 43418 * Starting row in table to scan. 43419 * Send "" (empty string) to start at the first row. 43420 */ 43421 public ByteBuffer startRow; // required 43422 /** 43423 * row to stop scanning on. This row is *not* included in the 43424 * scanner's results 43425 */ 43426 public ByteBuffer stopRow; // required 43427 /** 43428 * columns to scan. If column name is a column family, all 43429 * columns of the specified column family are returned. It's also possible 43430 * to pass a regex in the column qualifier. 43431 */ 43432 public List<ByteBuffer> columns; // required 43433 /** 43434 * Scan attributes 43435 */ 43436 public Map<ByteBuffer,ByteBuffer> attributes; // required 43437 43438 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 43439 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 43440 /** 43441 * name of table 43442 */ 43443 TABLE_NAME((short)1, "tableName"), 43444 /** 43445 * Starting row in table to scan. 43446 * Send "" (empty string) to start at the first row. 43447 */ 43448 START_ROW((short)2, "startRow"), 43449 /** 43450 * row to stop scanning on. This row is *not* included in the 43451 * scanner's results 43452 */ 43453 STOP_ROW((short)3, "stopRow"), 43454 /** 43455 * columns to scan. If column name is a column family, all 43456 * columns of the specified column family are returned. It's also possible 43457 * to pass a regex in the column qualifier. 43458 */ 43459 COLUMNS((short)4, "columns"), 43460 /** 43461 * Scan attributes 43462 */ 43463 ATTRIBUTES((short)5, "attributes"); 43464 43465 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 43466 43467 static { 43468 for (_Fields field : EnumSet.allOf(_Fields.class)) { 43469 byName.put(field.getFieldName(), field); 43470 } 43471 } 43472 43473 /** 43474 * Find the _Fields constant that matches fieldId, or null if its not found. 43475 */ 43476 public static _Fields findByThriftId(int fieldId) { 43477 switch(fieldId) { 43478 case 1: // TABLE_NAME 43479 return TABLE_NAME; 43480 case 2: // START_ROW 43481 return START_ROW; 43482 case 3: // STOP_ROW 43483 return STOP_ROW; 43484 case 4: // COLUMNS 43485 return COLUMNS; 43486 case 5: // ATTRIBUTES 43487 return ATTRIBUTES; 43488 default: 43489 return null; 43490 } 43491 } 43492 43493 /** 43494 * Find the _Fields constant that matches fieldId, throwing an exception 43495 * if it is not found. 43496 */ 43497 public static _Fields findByThriftIdOrThrow(int fieldId) { 43498 _Fields fields = findByThriftId(fieldId); 43499 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 43500 return fields; 43501 } 43502 43503 /** 43504 * Find the _Fields constant that matches name, or null if its not found. 43505 */ 43506 public static _Fields findByName(String name) { 43507 return byName.get(name); 43508 } 43509 43510 private final short _thriftId; 43511 private final String _fieldName; 43512 43513 _Fields(short thriftId, String fieldName) { 43514 _thriftId = thriftId; 43515 _fieldName = fieldName; 43516 } 43517 43518 public short getThriftFieldId() { 43519 return _thriftId; 43520 } 43521 43522 public String getFieldName() { 43523 return _fieldName; 43524 } 43525 } 43526 43527 // isset id assignments 43528 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 43529 static { 43530 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 43531 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 43532 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 43533 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 43534 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 43535 tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 43536 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 43537 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 43538 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 43539 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 43540 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 43541 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 43542 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 43543 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 43544 metaDataMap = Collections.unmodifiableMap(tmpMap); 43545 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_args.class, metaDataMap); 43546 } 43547 43548 public scannerOpenWithStop_args() { 43549 } 43550 43551 public scannerOpenWithStop_args( 43552 ByteBuffer tableName, 43553 ByteBuffer startRow, 43554 ByteBuffer stopRow, 43555 List<ByteBuffer> columns, 43556 Map<ByteBuffer,ByteBuffer> attributes) 43557 { 43558 this(); 43559 this.tableName = tableName; 43560 this.startRow = startRow; 43561 this.stopRow = stopRow; 43562 this.columns = columns; 43563 this.attributes = attributes; 43564 } 43565 43566 /** 43567 * Performs a deep copy on <i>other</i>. 43568 */ 43569 public scannerOpenWithStop_args(scannerOpenWithStop_args other) { 43570 if (other.isSetTableName()) { 43571 this.tableName = other.tableName; 43572 } 43573 if (other.isSetStartRow()) { 43574 this.startRow = other.startRow; 43575 } 43576 if (other.isSetStopRow()) { 43577 this.stopRow = other.stopRow; 43578 } 43579 if (other.isSetColumns()) { 43580 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 43581 for (ByteBuffer other_element : other.columns) { 43582 __this__columns.add(other_element); 43583 } 43584 this.columns = __this__columns; 43585 } 43586 if (other.isSetAttributes()) { 43587 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 43588 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 43589 43590 ByteBuffer other_element_key = other_element.getKey(); 43591 ByteBuffer other_element_value = other_element.getValue(); 43592 43593 ByteBuffer __this__attributes_copy_key = other_element_key; 43594 43595 ByteBuffer __this__attributes_copy_value = other_element_value; 43596 43597 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 43598 } 43599 this.attributes = __this__attributes; 43600 } 43601 } 43602 43603 public scannerOpenWithStop_args deepCopy() { 43604 return new scannerOpenWithStop_args(this); 43605 } 43606 43607 @Override 43608 public void clear() { 43609 this.tableName = null; 43610 this.startRow = null; 43611 this.stopRow = null; 43612 this.columns = null; 43613 this.attributes = null; 43614 } 43615 43616 /** 43617 * name of table 43618 */ 43619 public byte[] getTableName() { 43620 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 43621 return tableName == null ? null : tableName.array(); 43622 } 43623 43624 public ByteBuffer bufferForTableName() { 43625 return tableName; 43626 } 43627 43628 /** 43629 * name of table 43630 */ 43631 public scannerOpenWithStop_args setTableName(byte[] tableName) { 43632 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 43633 return this; 43634 } 43635 43636 public scannerOpenWithStop_args setTableName(ByteBuffer tableName) { 43637 this.tableName = tableName; 43638 return this; 43639 } 43640 43641 public void unsetTableName() { 43642 this.tableName = null; 43643 } 43644 43645 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 43646 public boolean isSetTableName() { 43647 return this.tableName != null; 43648 } 43649 43650 public void setTableNameIsSet(boolean value) { 43651 if (!value) { 43652 this.tableName = null; 43653 } 43654 } 43655 43656 /** 43657 * Starting row in table to scan. 43658 * Send "" (empty string) to start at the first row. 43659 */ 43660 public byte[] getStartRow() { 43661 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow)); 43662 return startRow == null ? null : startRow.array(); 43663 } 43664 43665 public ByteBuffer bufferForStartRow() { 43666 return startRow; 43667 } 43668 43669 /** 43670 * Starting row in table to scan. 43671 * Send "" (empty string) to start at the first row. 43672 */ 43673 public scannerOpenWithStop_args setStartRow(byte[] startRow) { 43674 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); 43675 return this; 43676 } 43677 43678 public scannerOpenWithStop_args setStartRow(ByteBuffer startRow) { 43679 this.startRow = startRow; 43680 return this; 43681 } 43682 43683 public void unsetStartRow() { 43684 this.startRow = null; 43685 } 43686 43687 /** Returns true if field startRow is set (has been assigned a value) and false otherwise */ 43688 public boolean isSetStartRow() { 43689 return this.startRow != null; 43690 } 43691 43692 public void setStartRowIsSet(boolean value) { 43693 if (!value) { 43694 this.startRow = null; 43695 } 43696 } 43697 43698 /** 43699 * row to stop scanning on. This row is *not* included in the 43700 * scanner's results 43701 */ 43702 public byte[] getStopRow() { 43703 setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow)); 43704 return stopRow == null ? null : stopRow.array(); 43705 } 43706 43707 public ByteBuffer bufferForStopRow() { 43708 return stopRow; 43709 } 43710 43711 /** 43712 * row to stop scanning on. This row is *not* included in the 43713 * scanner's results 43714 */ 43715 public scannerOpenWithStop_args setStopRow(byte[] stopRow) { 43716 setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); 43717 return this; 43718 } 43719 43720 public scannerOpenWithStop_args setStopRow(ByteBuffer stopRow) { 43721 this.stopRow = stopRow; 43722 return this; 43723 } 43724 43725 public void unsetStopRow() { 43726 this.stopRow = null; 43727 } 43728 43729 /** Returns true if field stopRow is set (has been assigned a value) and false otherwise */ 43730 public boolean isSetStopRow() { 43731 return this.stopRow != null; 43732 } 43733 43734 public void setStopRowIsSet(boolean value) { 43735 if (!value) { 43736 this.stopRow = null; 43737 } 43738 } 43739 43740 public int getColumnsSize() { 43741 return (this.columns == null) ? 0 : this.columns.size(); 43742 } 43743 43744 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 43745 return (this.columns == null) ? null : this.columns.iterator(); 43746 } 43747 43748 public void addToColumns(ByteBuffer elem) { 43749 if (this.columns == null) { 43750 this.columns = new ArrayList<ByteBuffer>(); 43751 } 43752 this.columns.add(elem); 43753 } 43754 43755 /** 43756 * columns to scan. If column name is a column family, all 43757 * columns of the specified column family are returned. It's also possible 43758 * to pass a regex in the column qualifier. 43759 */ 43760 public List<ByteBuffer> getColumns() { 43761 return this.columns; 43762 } 43763 43764 /** 43765 * columns to scan. If column name is a column family, all 43766 * columns of the specified column family are returned. It's also possible 43767 * to pass a regex in the column qualifier. 43768 */ 43769 public scannerOpenWithStop_args setColumns(List<ByteBuffer> columns) { 43770 this.columns = columns; 43771 return this; 43772 } 43773 43774 public void unsetColumns() { 43775 this.columns = null; 43776 } 43777 43778 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 43779 public boolean isSetColumns() { 43780 return this.columns != null; 43781 } 43782 43783 public void setColumnsIsSet(boolean value) { 43784 if (!value) { 43785 this.columns = null; 43786 } 43787 } 43788 43789 public int getAttributesSize() { 43790 return (this.attributes == null) ? 0 : this.attributes.size(); 43791 } 43792 43793 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 43794 if (this.attributes == null) { 43795 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 43796 } 43797 this.attributes.put(key, val); 43798 } 43799 43800 /** 43801 * Scan attributes 43802 */ 43803 public Map<ByteBuffer,ByteBuffer> getAttributes() { 43804 return this.attributes; 43805 } 43806 43807 /** 43808 * Scan attributes 43809 */ 43810 public scannerOpenWithStop_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 43811 this.attributes = attributes; 43812 return this; 43813 } 43814 43815 public void unsetAttributes() { 43816 this.attributes = null; 43817 } 43818 43819 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 43820 public boolean isSetAttributes() { 43821 return this.attributes != null; 43822 } 43823 43824 public void setAttributesIsSet(boolean value) { 43825 if (!value) { 43826 this.attributes = null; 43827 } 43828 } 43829 43830 public void setFieldValue(_Fields field, Object value) { 43831 switch (field) { 43832 case TABLE_NAME: 43833 if (value == null) { 43834 unsetTableName(); 43835 } else { 43836 setTableName((ByteBuffer)value); 43837 } 43838 break; 43839 43840 case START_ROW: 43841 if (value == null) { 43842 unsetStartRow(); 43843 } else { 43844 setStartRow((ByteBuffer)value); 43845 } 43846 break; 43847 43848 case STOP_ROW: 43849 if (value == null) { 43850 unsetStopRow(); 43851 } else { 43852 setStopRow((ByteBuffer)value); 43853 } 43854 break; 43855 43856 case COLUMNS: 43857 if (value == null) { 43858 unsetColumns(); 43859 } else { 43860 setColumns((List<ByteBuffer>)value); 43861 } 43862 break; 43863 43864 case ATTRIBUTES: 43865 if (value == null) { 43866 unsetAttributes(); 43867 } else { 43868 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 43869 } 43870 break; 43871 43872 } 43873 } 43874 43875 public Object getFieldValue(_Fields field) { 43876 switch (field) { 43877 case TABLE_NAME: 43878 return getTableName(); 43879 43880 case START_ROW: 43881 return getStartRow(); 43882 43883 case STOP_ROW: 43884 return getStopRow(); 43885 43886 case COLUMNS: 43887 return getColumns(); 43888 43889 case ATTRIBUTES: 43890 return getAttributes(); 43891 43892 } 43893 throw new IllegalStateException(); 43894 } 43895 43896 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 43897 public boolean isSet(_Fields field) { 43898 if (field == null) { 43899 throw new IllegalArgumentException(); 43900 } 43901 43902 switch (field) { 43903 case TABLE_NAME: 43904 return isSetTableName(); 43905 case START_ROW: 43906 return isSetStartRow(); 43907 case STOP_ROW: 43908 return isSetStopRow(); 43909 case COLUMNS: 43910 return isSetColumns(); 43911 case ATTRIBUTES: 43912 return isSetAttributes(); 43913 } 43914 throw new IllegalStateException(); 43915 } 43916 43917 @Override 43918 public boolean equals(Object that) { 43919 if (that == null) 43920 return false; 43921 if (that instanceof scannerOpenWithStop_args) 43922 return this.equals((scannerOpenWithStop_args)that); 43923 return false; 43924 } 43925 43926 public boolean equals(scannerOpenWithStop_args that) { 43927 if (that == null) 43928 return false; 43929 43930 boolean this_present_tableName = true && this.isSetTableName(); 43931 boolean that_present_tableName = true && that.isSetTableName(); 43932 if (this_present_tableName || that_present_tableName) { 43933 if (!(this_present_tableName && that_present_tableName)) 43934 return false; 43935 if (!this.tableName.equals(that.tableName)) 43936 return false; 43937 } 43938 43939 boolean this_present_startRow = true && this.isSetStartRow(); 43940 boolean that_present_startRow = true && that.isSetStartRow(); 43941 if (this_present_startRow || that_present_startRow) { 43942 if (!(this_present_startRow && that_present_startRow)) 43943 return false; 43944 if (!this.startRow.equals(that.startRow)) 43945 return false; 43946 } 43947 43948 boolean this_present_stopRow = true && this.isSetStopRow(); 43949 boolean that_present_stopRow = true && that.isSetStopRow(); 43950 if (this_present_stopRow || that_present_stopRow) { 43951 if (!(this_present_stopRow && that_present_stopRow)) 43952 return false; 43953 if (!this.stopRow.equals(that.stopRow)) 43954 return false; 43955 } 43956 43957 boolean this_present_columns = true && this.isSetColumns(); 43958 boolean that_present_columns = true && that.isSetColumns(); 43959 if (this_present_columns || that_present_columns) { 43960 if (!(this_present_columns && that_present_columns)) 43961 return false; 43962 if (!this.columns.equals(that.columns)) 43963 return false; 43964 } 43965 43966 boolean this_present_attributes = true && this.isSetAttributes(); 43967 boolean that_present_attributes = true && that.isSetAttributes(); 43968 if (this_present_attributes || that_present_attributes) { 43969 if (!(this_present_attributes && that_present_attributes)) 43970 return false; 43971 if (!this.attributes.equals(that.attributes)) 43972 return false; 43973 } 43974 43975 return true; 43976 } 43977 43978 @Override 43979 public int hashCode() { 43980 HashCodeBuilder builder = new HashCodeBuilder(); 43981 43982 boolean present_tableName = true && (isSetTableName()); 43983 builder.append(present_tableName); 43984 if (present_tableName) 43985 builder.append(tableName); 43986 43987 boolean present_startRow = true && (isSetStartRow()); 43988 builder.append(present_startRow); 43989 if (present_startRow) 43990 builder.append(startRow); 43991 43992 boolean present_stopRow = true && (isSetStopRow()); 43993 builder.append(present_stopRow); 43994 if (present_stopRow) 43995 builder.append(stopRow); 43996 43997 boolean present_columns = true && (isSetColumns()); 43998 builder.append(present_columns); 43999 if (present_columns) 44000 builder.append(columns); 44001 44002 boolean present_attributes = true && (isSetAttributes()); 44003 builder.append(present_attributes); 44004 if (present_attributes) 44005 builder.append(attributes); 44006 44007 return builder.toHashCode(); 44008 } 44009 44010 public int compareTo(scannerOpenWithStop_args other) { 44011 if (!getClass().equals(other.getClass())) { 44012 return getClass().getName().compareTo(other.getClass().getName()); 44013 } 44014 44015 int lastComparison = 0; 44016 scannerOpenWithStop_args typedOther = (scannerOpenWithStop_args)other; 44017 44018 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 44019 if (lastComparison != 0) { 44020 return lastComparison; 44021 } 44022 if (isSetTableName()) { 44023 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 44024 if (lastComparison != 0) { 44025 return lastComparison; 44026 } 44027 } 44028 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); 44029 if (lastComparison != 0) { 44030 return lastComparison; 44031 } 44032 if (isSetStartRow()) { 44033 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); 44034 if (lastComparison != 0) { 44035 return lastComparison; 44036 } 44037 } 44038 lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); 44039 if (lastComparison != 0) { 44040 return lastComparison; 44041 } 44042 if (isSetStopRow()) { 44043 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); 44044 if (lastComparison != 0) { 44045 return lastComparison; 44046 } 44047 } 44048 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 44049 if (lastComparison != 0) { 44050 return lastComparison; 44051 } 44052 if (isSetColumns()) { 44053 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 44054 if (lastComparison != 0) { 44055 return lastComparison; 44056 } 44057 } 44058 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 44059 if (lastComparison != 0) { 44060 return lastComparison; 44061 } 44062 if (isSetAttributes()) { 44063 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 44064 if (lastComparison != 0) { 44065 return lastComparison; 44066 } 44067 } 44068 return 0; 44069 } 44070 44071 public _Fields fieldForId(int fieldId) { 44072 return _Fields.findByThriftId(fieldId); 44073 } 44074 44075 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 44076 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 44077 } 44078 44079 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 44080 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 44081 } 44082 44083 @Override 44084 public String toString() { 44085 StringBuilder sb = new StringBuilder("scannerOpenWithStop_args("); 44086 boolean first = true; 44087 44088 sb.append("tableName:"); 44089 if (this.tableName == null) { 44090 sb.append("null"); 44091 } else { 44092 sb.append(this.tableName); 44093 } 44094 first = false; 44095 if (!first) sb.append(", "); 44096 sb.append("startRow:"); 44097 if (this.startRow == null) { 44098 sb.append("null"); 44099 } else { 44100 sb.append(this.startRow); 44101 } 44102 first = false; 44103 if (!first) sb.append(", "); 44104 sb.append("stopRow:"); 44105 if (this.stopRow == null) { 44106 sb.append("null"); 44107 } else { 44108 sb.append(this.stopRow); 44109 } 44110 first = false; 44111 if (!first) sb.append(", "); 44112 sb.append("columns:"); 44113 if (this.columns == null) { 44114 sb.append("null"); 44115 } else { 44116 sb.append(this.columns); 44117 } 44118 first = false; 44119 if (!first) sb.append(", "); 44120 sb.append("attributes:"); 44121 if (this.attributes == null) { 44122 sb.append("null"); 44123 } else { 44124 sb.append(this.attributes); 44125 } 44126 first = false; 44127 sb.append(")"); 44128 return sb.toString(); 44129 } 44130 44131 public void validate() throws org.apache.thrift.TException { 44132 // check for required fields 44133 } 44134 44135 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 44136 try { 44137 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 44138 } catch (org.apache.thrift.TException te) { 44139 throw new java.io.IOException(te); 44140 } 44141 } 44142 44143 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 44144 try { 44145 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 44146 } catch (org.apache.thrift.TException te) { 44147 throw new java.io.IOException(te); 44148 } 44149 } 44150 44151 private static class scannerOpenWithStop_argsStandardSchemeFactory implements SchemeFactory { 44152 public scannerOpenWithStop_argsStandardScheme getScheme() { 44153 return new scannerOpenWithStop_argsStandardScheme(); 44154 } 44155 } 44156 44157 private static class scannerOpenWithStop_argsStandardScheme extends StandardScheme<scannerOpenWithStop_args> { 44158 44159 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { 44160 org.apache.thrift.protocol.TField schemeField; 44161 iprot.readStructBegin(); 44162 while (true) 44163 { 44164 schemeField = iprot.readFieldBegin(); 44165 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 44166 break; 44167 } 44168 switch (schemeField.id) { 44169 case 1: // TABLE_NAME 44170 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 44171 struct.tableName = iprot.readBinary(); 44172 struct.setTableNameIsSet(true); 44173 } else { 44174 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44175 } 44176 break; 44177 case 2: // START_ROW 44178 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 44179 struct.startRow = iprot.readBinary(); 44180 struct.setStartRowIsSet(true); 44181 } else { 44182 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44183 } 44184 break; 44185 case 3: // STOP_ROW 44186 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 44187 struct.stopRow = iprot.readBinary(); 44188 struct.setStopRowIsSet(true); 44189 } else { 44190 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44191 } 44192 break; 44193 case 4: // COLUMNS 44194 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 44195 { 44196 org.apache.thrift.protocol.TList _list478 = iprot.readListBegin(); 44197 struct.columns = new ArrayList<ByteBuffer>(_list478.size); 44198 for (int _i479 = 0; _i479 < _list478.size; ++_i479) 44199 { 44200 ByteBuffer _elem480; // required 44201 _elem480 = iprot.readBinary(); 44202 struct.columns.add(_elem480); 44203 } 44204 iprot.readListEnd(); 44205 } 44206 struct.setColumnsIsSet(true); 44207 } else { 44208 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44209 } 44210 break; 44211 case 5: // ATTRIBUTES 44212 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 44213 { 44214 org.apache.thrift.protocol.TMap _map481 = iprot.readMapBegin(); 44215 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map481.size); 44216 for (int _i482 = 0; _i482 < _map481.size; ++_i482) 44217 { 44218 ByteBuffer _key483; // required 44219 ByteBuffer _val484; // required 44220 _key483 = iprot.readBinary(); 44221 _val484 = iprot.readBinary(); 44222 struct.attributes.put(_key483, _val484); 44223 } 44224 iprot.readMapEnd(); 44225 } 44226 struct.setAttributesIsSet(true); 44227 } else { 44228 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44229 } 44230 break; 44231 default: 44232 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44233 } 44234 iprot.readFieldEnd(); 44235 } 44236 iprot.readStructEnd(); 44237 44238 // check for required fields of primitive type, which can't be checked in the validate method 44239 struct.validate(); 44240 } 44241 44242 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { 44243 struct.validate(); 44244 44245 oprot.writeStructBegin(STRUCT_DESC); 44246 if (struct.tableName != null) { 44247 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 44248 oprot.writeBinary(struct.tableName); 44249 oprot.writeFieldEnd(); 44250 } 44251 if (struct.startRow != null) { 44252 oprot.writeFieldBegin(START_ROW_FIELD_DESC); 44253 oprot.writeBinary(struct.startRow); 44254 oprot.writeFieldEnd(); 44255 } 44256 if (struct.stopRow != null) { 44257 oprot.writeFieldBegin(STOP_ROW_FIELD_DESC); 44258 oprot.writeBinary(struct.stopRow); 44259 oprot.writeFieldEnd(); 44260 } 44261 if (struct.columns != null) { 44262 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 44263 { 44264 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 44265 for (ByteBuffer _iter485 : struct.columns) 44266 { 44267 oprot.writeBinary(_iter485); 44268 } 44269 oprot.writeListEnd(); 44270 } 44271 oprot.writeFieldEnd(); 44272 } 44273 if (struct.attributes != null) { 44274 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 44275 { 44276 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 44277 for (Map.Entry<ByteBuffer, ByteBuffer> _iter486 : struct.attributes.entrySet()) 44278 { 44279 oprot.writeBinary(_iter486.getKey()); 44280 oprot.writeBinary(_iter486.getValue()); 44281 } 44282 oprot.writeMapEnd(); 44283 } 44284 oprot.writeFieldEnd(); 44285 } 44286 oprot.writeFieldStop(); 44287 oprot.writeStructEnd(); 44288 } 44289 44290 } 44291 44292 private static class scannerOpenWithStop_argsTupleSchemeFactory implements SchemeFactory { 44293 public scannerOpenWithStop_argsTupleScheme getScheme() { 44294 return new scannerOpenWithStop_argsTupleScheme(); 44295 } 44296 } 44297 44298 private static class scannerOpenWithStop_argsTupleScheme extends TupleScheme<scannerOpenWithStop_args> { 44299 44300 @Override 44301 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { 44302 TTupleProtocol oprot = (TTupleProtocol) prot; 44303 BitSet optionals = new BitSet(); 44304 if (struct.isSetTableName()) { 44305 optionals.set(0); 44306 } 44307 if (struct.isSetStartRow()) { 44308 optionals.set(1); 44309 } 44310 if (struct.isSetStopRow()) { 44311 optionals.set(2); 44312 } 44313 if (struct.isSetColumns()) { 44314 optionals.set(3); 44315 } 44316 if (struct.isSetAttributes()) { 44317 optionals.set(4); 44318 } 44319 oprot.writeBitSet(optionals, 5); 44320 if (struct.isSetTableName()) { 44321 oprot.writeBinary(struct.tableName); 44322 } 44323 if (struct.isSetStartRow()) { 44324 oprot.writeBinary(struct.startRow); 44325 } 44326 if (struct.isSetStopRow()) { 44327 oprot.writeBinary(struct.stopRow); 44328 } 44329 if (struct.isSetColumns()) { 44330 { 44331 oprot.writeI32(struct.columns.size()); 44332 for (ByteBuffer _iter487 : struct.columns) 44333 { 44334 oprot.writeBinary(_iter487); 44335 } 44336 } 44337 } 44338 if (struct.isSetAttributes()) { 44339 { 44340 oprot.writeI32(struct.attributes.size()); 44341 for (Map.Entry<ByteBuffer, ByteBuffer> _iter488 : struct.attributes.entrySet()) 44342 { 44343 oprot.writeBinary(_iter488.getKey()); 44344 oprot.writeBinary(_iter488.getValue()); 44345 } 44346 } 44347 } 44348 } 44349 44350 @Override 44351 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException { 44352 TTupleProtocol iprot = (TTupleProtocol) prot; 44353 BitSet incoming = iprot.readBitSet(5); 44354 if (incoming.get(0)) { 44355 struct.tableName = iprot.readBinary(); 44356 struct.setTableNameIsSet(true); 44357 } 44358 if (incoming.get(1)) { 44359 struct.startRow = iprot.readBinary(); 44360 struct.setStartRowIsSet(true); 44361 } 44362 if (incoming.get(2)) { 44363 struct.stopRow = iprot.readBinary(); 44364 struct.setStopRowIsSet(true); 44365 } 44366 if (incoming.get(3)) { 44367 { 44368 org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 44369 struct.columns = new ArrayList<ByteBuffer>(_list489.size); 44370 for (int _i490 = 0; _i490 < _list489.size; ++_i490) 44371 { 44372 ByteBuffer _elem491; // required 44373 _elem491 = iprot.readBinary(); 44374 struct.columns.add(_elem491); 44375 } 44376 } 44377 struct.setColumnsIsSet(true); 44378 } 44379 if (incoming.get(4)) { 44380 { 44381 org.apache.thrift.protocol.TMap _map492 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 44382 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map492.size); 44383 for (int _i493 = 0; _i493 < _map492.size; ++_i493) 44384 { 44385 ByteBuffer _key494; // required 44386 ByteBuffer _val495; // required 44387 _key494 = iprot.readBinary(); 44388 _val495 = iprot.readBinary(); 44389 struct.attributes.put(_key494, _val495); 44390 } 44391 } 44392 struct.setAttributesIsSet(true); 44393 } 44394 } 44395 } 44396 44397 } 44398 44399 public static class scannerOpenWithStop_result implements org.apache.thrift.TBase<scannerOpenWithStop_result, scannerOpenWithStop_result._Fields>, java.io.Serializable, Cloneable { 44400 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_result"); 44401 44402 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 44403 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 44404 44405 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 44406 static { 44407 schemes.put(StandardScheme.class, new scannerOpenWithStop_resultStandardSchemeFactory()); 44408 schemes.put(TupleScheme.class, new scannerOpenWithStop_resultTupleSchemeFactory()); 44409 } 44410 44411 public int success; // required 44412 public IOError io; // required 44413 44414 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 44415 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 44416 SUCCESS((short)0, "success"), 44417 IO((short)1, "io"); 44418 44419 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 44420 44421 static { 44422 for (_Fields field : EnumSet.allOf(_Fields.class)) { 44423 byName.put(field.getFieldName(), field); 44424 } 44425 } 44426 44427 /** 44428 * Find the _Fields constant that matches fieldId, or null if its not found. 44429 */ 44430 public static _Fields findByThriftId(int fieldId) { 44431 switch(fieldId) { 44432 case 0: // SUCCESS 44433 return SUCCESS; 44434 case 1: // IO 44435 return IO; 44436 default: 44437 return null; 44438 } 44439 } 44440 44441 /** 44442 * Find the _Fields constant that matches fieldId, throwing an exception 44443 * if it is not found. 44444 */ 44445 public static _Fields findByThriftIdOrThrow(int fieldId) { 44446 _Fields fields = findByThriftId(fieldId); 44447 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 44448 return fields; 44449 } 44450 44451 /** 44452 * Find the _Fields constant that matches name, or null if its not found. 44453 */ 44454 public static _Fields findByName(String name) { 44455 return byName.get(name); 44456 } 44457 44458 private final short _thriftId; 44459 private final String _fieldName; 44460 44461 _Fields(short thriftId, String fieldName) { 44462 _thriftId = thriftId; 44463 _fieldName = fieldName; 44464 } 44465 44466 public short getThriftFieldId() { 44467 return _thriftId; 44468 } 44469 44470 public String getFieldName() { 44471 return _fieldName; 44472 } 44473 } 44474 44475 // isset id assignments 44476 private static final int __SUCCESS_ISSET_ID = 0; 44477 private BitSet __isset_bit_vector = new BitSet(1); 44478 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 44479 static { 44480 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 44481 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 44482 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 44483 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 44484 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 44485 metaDataMap = Collections.unmodifiableMap(tmpMap); 44486 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_result.class, metaDataMap); 44487 } 44488 44489 public scannerOpenWithStop_result() { 44490 } 44491 44492 public scannerOpenWithStop_result( 44493 int success, 44494 IOError io) 44495 { 44496 this(); 44497 this.success = success; 44498 setSuccessIsSet(true); 44499 this.io = io; 44500 } 44501 44502 /** 44503 * Performs a deep copy on <i>other</i>. 44504 */ 44505 public scannerOpenWithStop_result(scannerOpenWithStop_result other) { 44506 __isset_bit_vector.clear(); 44507 __isset_bit_vector.or(other.__isset_bit_vector); 44508 this.success = other.success; 44509 if (other.isSetIo()) { 44510 this.io = new IOError(other.io); 44511 } 44512 } 44513 44514 public scannerOpenWithStop_result deepCopy() { 44515 return new scannerOpenWithStop_result(this); 44516 } 44517 44518 @Override 44519 public void clear() { 44520 setSuccessIsSet(false); 44521 this.success = 0; 44522 this.io = null; 44523 } 44524 44525 public int getSuccess() { 44526 return this.success; 44527 } 44528 44529 public scannerOpenWithStop_result setSuccess(int success) { 44530 this.success = success; 44531 setSuccessIsSet(true); 44532 return this; 44533 } 44534 44535 public void unsetSuccess() { 44536 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 44537 } 44538 44539 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 44540 public boolean isSetSuccess() { 44541 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 44542 } 44543 44544 public void setSuccessIsSet(boolean value) { 44545 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 44546 } 44547 44548 public IOError getIo() { 44549 return this.io; 44550 } 44551 44552 public scannerOpenWithStop_result setIo(IOError io) { 44553 this.io = io; 44554 return this; 44555 } 44556 44557 public void unsetIo() { 44558 this.io = null; 44559 } 44560 44561 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 44562 public boolean isSetIo() { 44563 return this.io != null; 44564 } 44565 44566 public void setIoIsSet(boolean value) { 44567 if (!value) { 44568 this.io = null; 44569 } 44570 } 44571 44572 public void setFieldValue(_Fields field, Object value) { 44573 switch (field) { 44574 case SUCCESS: 44575 if (value == null) { 44576 unsetSuccess(); 44577 } else { 44578 setSuccess((Integer)value); 44579 } 44580 break; 44581 44582 case IO: 44583 if (value == null) { 44584 unsetIo(); 44585 } else { 44586 setIo((IOError)value); 44587 } 44588 break; 44589 44590 } 44591 } 44592 44593 public Object getFieldValue(_Fields field) { 44594 switch (field) { 44595 case SUCCESS: 44596 return Integer.valueOf(getSuccess()); 44597 44598 case IO: 44599 return getIo(); 44600 44601 } 44602 throw new IllegalStateException(); 44603 } 44604 44605 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 44606 public boolean isSet(_Fields field) { 44607 if (field == null) { 44608 throw new IllegalArgumentException(); 44609 } 44610 44611 switch (field) { 44612 case SUCCESS: 44613 return isSetSuccess(); 44614 case IO: 44615 return isSetIo(); 44616 } 44617 throw new IllegalStateException(); 44618 } 44619 44620 @Override 44621 public boolean equals(Object that) { 44622 if (that == null) 44623 return false; 44624 if (that instanceof scannerOpenWithStop_result) 44625 return this.equals((scannerOpenWithStop_result)that); 44626 return false; 44627 } 44628 44629 public boolean equals(scannerOpenWithStop_result that) { 44630 if (that == null) 44631 return false; 44632 44633 boolean this_present_success = true; 44634 boolean that_present_success = true; 44635 if (this_present_success || that_present_success) { 44636 if (!(this_present_success && that_present_success)) 44637 return false; 44638 if (this.success != that.success) 44639 return false; 44640 } 44641 44642 boolean this_present_io = true && this.isSetIo(); 44643 boolean that_present_io = true && that.isSetIo(); 44644 if (this_present_io || that_present_io) { 44645 if (!(this_present_io && that_present_io)) 44646 return false; 44647 if (!this.io.equals(that.io)) 44648 return false; 44649 } 44650 44651 return true; 44652 } 44653 44654 @Override 44655 public int hashCode() { 44656 HashCodeBuilder builder = new HashCodeBuilder(); 44657 44658 boolean present_success = true; 44659 builder.append(present_success); 44660 if (present_success) 44661 builder.append(success); 44662 44663 boolean present_io = true && (isSetIo()); 44664 builder.append(present_io); 44665 if (present_io) 44666 builder.append(io); 44667 44668 return builder.toHashCode(); 44669 } 44670 44671 public int compareTo(scannerOpenWithStop_result other) { 44672 if (!getClass().equals(other.getClass())) { 44673 return getClass().getName().compareTo(other.getClass().getName()); 44674 } 44675 44676 int lastComparison = 0; 44677 scannerOpenWithStop_result typedOther = (scannerOpenWithStop_result)other; 44678 44679 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 44680 if (lastComparison != 0) { 44681 return lastComparison; 44682 } 44683 if (isSetSuccess()) { 44684 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 44685 if (lastComparison != 0) { 44686 return lastComparison; 44687 } 44688 } 44689 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 44690 if (lastComparison != 0) { 44691 return lastComparison; 44692 } 44693 if (isSetIo()) { 44694 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 44695 if (lastComparison != 0) { 44696 return lastComparison; 44697 } 44698 } 44699 return 0; 44700 } 44701 44702 public _Fields fieldForId(int fieldId) { 44703 return _Fields.findByThriftId(fieldId); 44704 } 44705 44706 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 44707 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 44708 } 44709 44710 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 44711 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 44712 } 44713 44714 @Override 44715 public String toString() { 44716 StringBuilder sb = new StringBuilder("scannerOpenWithStop_result("); 44717 boolean first = true; 44718 44719 sb.append("success:"); 44720 sb.append(this.success); 44721 first = false; 44722 if (!first) sb.append(", "); 44723 sb.append("io:"); 44724 if (this.io == null) { 44725 sb.append("null"); 44726 } else { 44727 sb.append(this.io); 44728 } 44729 first = false; 44730 sb.append(")"); 44731 return sb.toString(); 44732 } 44733 44734 public void validate() throws org.apache.thrift.TException { 44735 // check for required fields 44736 } 44737 44738 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 44739 try { 44740 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 44741 } catch (org.apache.thrift.TException te) { 44742 throw new java.io.IOException(te); 44743 } 44744 } 44745 44746 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 44747 try { 44748 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 44749 } catch (org.apache.thrift.TException te) { 44750 throw new java.io.IOException(te); 44751 } 44752 } 44753 44754 private static class scannerOpenWithStop_resultStandardSchemeFactory implements SchemeFactory { 44755 public scannerOpenWithStop_resultStandardScheme getScheme() { 44756 return new scannerOpenWithStop_resultStandardScheme(); 44757 } 44758 } 44759 44760 private static class scannerOpenWithStop_resultStandardScheme extends StandardScheme<scannerOpenWithStop_result> { 44761 44762 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { 44763 org.apache.thrift.protocol.TField schemeField; 44764 iprot.readStructBegin(); 44765 while (true) 44766 { 44767 schemeField = iprot.readFieldBegin(); 44768 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 44769 break; 44770 } 44771 switch (schemeField.id) { 44772 case 0: // SUCCESS 44773 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 44774 struct.success = iprot.readI32(); 44775 struct.setSuccessIsSet(true); 44776 } else { 44777 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44778 } 44779 break; 44780 case 1: // IO 44781 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 44782 struct.io = new IOError(); 44783 struct.io.read(iprot); 44784 struct.setIoIsSet(true); 44785 } else { 44786 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44787 } 44788 break; 44789 default: 44790 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 44791 } 44792 iprot.readFieldEnd(); 44793 } 44794 iprot.readStructEnd(); 44795 44796 // check for required fields of primitive type, which can't be checked in the validate method 44797 struct.validate(); 44798 } 44799 44800 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { 44801 struct.validate(); 44802 44803 oprot.writeStructBegin(STRUCT_DESC); 44804 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 44805 oprot.writeI32(struct.success); 44806 oprot.writeFieldEnd(); 44807 if (struct.io != null) { 44808 oprot.writeFieldBegin(IO_FIELD_DESC); 44809 struct.io.write(oprot); 44810 oprot.writeFieldEnd(); 44811 } 44812 oprot.writeFieldStop(); 44813 oprot.writeStructEnd(); 44814 } 44815 44816 } 44817 44818 private static class scannerOpenWithStop_resultTupleSchemeFactory implements SchemeFactory { 44819 public scannerOpenWithStop_resultTupleScheme getScheme() { 44820 return new scannerOpenWithStop_resultTupleScheme(); 44821 } 44822 } 44823 44824 private static class scannerOpenWithStop_resultTupleScheme extends TupleScheme<scannerOpenWithStop_result> { 44825 44826 @Override 44827 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { 44828 TTupleProtocol oprot = (TTupleProtocol) prot; 44829 BitSet optionals = new BitSet(); 44830 if (struct.isSetSuccess()) { 44831 optionals.set(0); 44832 } 44833 if (struct.isSetIo()) { 44834 optionals.set(1); 44835 } 44836 oprot.writeBitSet(optionals, 2); 44837 if (struct.isSetSuccess()) { 44838 oprot.writeI32(struct.success); 44839 } 44840 if (struct.isSetIo()) { 44841 struct.io.write(oprot); 44842 } 44843 } 44844 44845 @Override 44846 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException { 44847 TTupleProtocol iprot = (TTupleProtocol) prot; 44848 BitSet incoming = iprot.readBitSet(2); 44849 if (incoming.get(0)) { 44850 struct.success = iprot.readI32(); 44851 struct.setSuccessIsSet(true); 44852 } 44853 if (incoming.get(1)) { 44854 struct.io = new IOError(); 44855 struct.io.read(iprot); 44856 struct.setIoIsSet(true); 44857 } 44858 } 44859 } 44860 44861 } 44862 44863 public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase<scannerOpenWithPrefix_args, scannerOpenWithPrefix_args._Fields>, java.io.Serializable, Cloneable { 44864 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_args"); 44865 44866 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 44867 private static final org.apache.thrift.protocol.TField START_AND_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("startAndPrefix", org.apache.thrift.protocol.TType.STRING, (short)2); 44868 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 44869 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4); 44870 44871 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 44872 static { 44873 schemes.put(StandardScheme.class, new scannerOpenWithPrefix_argsStandardSchemeFactory()); 44874 schemes.put(TupleScheme.class, new scannerOpenWithPrefix_argsTupleSchemeFactory()); 44875 } 44876 44877 /** 44878 * name of table 44879 */ 44880 public ByteBuffer tableName; // required 44881 /** 44882 * the prefix (and thus start row) of the keys you want 44883 */ 44884 public ByteBuffer startAndPrefix; // required 44885 /** 44886 * the columns you want returned 44887 */ 44888 public List<ByteBuffer> columns; // required 44889 /** 44890 * Scan attributes 44891 */ 44892 public Map<ByteBuffer,ByteBuffer> attributes; // required 44893 44894 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 44895 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 44896 /** 44897 * name of table 44898 */ 44899 TABLE_NAME((short)1, "tableName"), 44900 /** 44901 * the prefix (and thus start row) of the keys you want 44902 */ 44903 START_AND_PREFIX((short)2, "startAndPrefix"), 44904 /** 44905 * the columns you want returned 44906 */ 44907 COLUMNS((short)3, "columns"), 44908 /** 44909 * Scan attributes 44910 */ 44911 ATTRIBUTES((short)4, "attributes"); 44912 44913 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 44914 44915 static { 44916 for (_Fields field : EnumSet.allOf(_Fields.class)) { 44917 byName.put(field.getFieldName(), field); 44918 } 44919 } 44920 44921 /** 44922 * Find the _Fields constant that matches fieldId, or null if its not found. 44923 */ 44924 public static _Fields findByThriftId(int fieldId) { 44925 switch(fieldId) { 44926 case 1: // TABLE_NAME 44927 return TABLE_NAME; 44928 case 2: // START_AND_PREFIX 44929 return START_AND_PREFIX; 44930 case 3: // COLUMNS 44931 return COLUMNS; 44932 case 4: // ATTRIBUTES 44933 return ATTRIBUTES; 44934 default: 44935 return null; 44936 } 44937 } 44938 44939 /** 44940 * Find the _Fields constant that matches fieldId, throwing an exception 44941 * if it is not found. 44942 */ 44943 public static _Fields findByThriftIdOrThrow(int fieldId) { 44944 _Fields fields = findByThriftId(fieldId); 44945 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 44946 return fields; 44947 } 44948 44949 /** 44950 * Find the _Fields constant that matches name, or null if its not found. 44951 */ 44952 public static _Fields findByName(String name) { 44953 return byName.get(name); 44954 } 44955 44956 private final short _thriftId; 44957 private final String _fieldName; 44958 44959 _Fields(short thriftId, String fieldName) { 44960 _thriftId = thriftId; 44961 _fieldName = fieldName; 44962 } 44963 44964 public short getThriftFieldId() { 44965 return _thriftId; 44966 } 44967 44968 public String getFieldName() { 44969 return _fieldName; 44970 } 44971 } 44972 44973 // isset id assignments 44974 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 44975 static { 44976 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 44977 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 44978 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 44979 tmpMap.put(_Fields.START_AND_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("startAndPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT, 44980 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 44981 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 44982 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 44983 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 44984 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 44985 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 44986 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 44987 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 44988 metaDataMap = Collections.unmodifiableMap(tmpMap); 44989 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_args.class, metaDataMap); 44990 } 44991 44992 public scannerOpenWithPrefix_args() { 44993 } 44994 44995 public scannerOpenWithPrefix_args( 44996 ByteBuffer tableName, 44997 ByteBuffer startAndPrefix, 44998 List<ByteBuffer> columns, 44999 Map<ByteBuffer,ByteBuffer> attributes) 45000 { 45001 this(); 45002 this.tableName = tableName; 45003 this.startAndPrefix = startAndPrefix; 45004 this.columns = columns; 45005 this.attributes = attributes; 45006 } 45007 45008 /** 45009 * Performs a deep copy on <i>other</i>. 45010 */ 45011 public scannerOpenWithPrefix_args(scannerOpenWithPrefix_args other) { 45012 if (other.isSetTableName()) { 45013 this.tableName = other.tableName; 45014 } 45015 if (other.isSetStartAndPrefix()) { 45016 this.startAndPrefix = other.startAndPrefix; 45017 } 45018 if (other.isSetColumns()) { 45019 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 45020 for (ByteBuffer other_element : other.columns) { 45021 __this__columns.add(other_element); 45022 } 45023 this.columns = __this__columns; 45024 } 45025 if (other.isSetAttributes()) { 45026 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 45027 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 45028 45029 ByteBuffer other_element_key = other_element.getKey(); 45030 ByteBuffer other_element_value = other_element.getValue(); 45031 45032 ByteBuffer __this__attributes_copy_key = other_element_key; 45033 45034 ByteBuffer __this__attributes_copy_value = other_element_value; 45035 45036 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 45037 } 45038 this.attributes = __this__attributes; 45039 } 45040 } 45041 45042 public scannerOpenWithPrefix_args deepCopy() { 45043 return new scannerOpenWithPrefix_args(this); 45044 } 45045 45046 @Override 45047 public void clear() { 45048 this.tableName = null; 45049 this.startAndPrefix = null; 45050 this.columns = null; 45051 this.attributes = null; 45052 } 45053 45054 /** 45055 * name of table 45056 */ 45057 public byte[] getTableName() { 45058 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 45059 return tableName == null ? null : tableName.array(); 45060 } 45061 45062 public ByteBuffer bufferForTableName() { 45063 return tableName; 45064 } 45065 45066 /** 45067 * name of table 45068 */ 45069 public scannerOpenWithPrefix_args setTableName(byte[] tableName) { 45070 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 45071 return this; 45072 } 45073 45074 public scannerOpenWithPrefix_args setTableName(ByteBuffer tableName) { 45075 this.tableName = tableName; 45076 return this; 45077 } 45078 45079 public void unsetTableName() { 45080 this.tableName = null; 45081 } 45082 45083 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 45084 public boolean isSetTableName() { 45085 return this.tableName != null; 45086 } 45087 45088 public void setTableNameIsSet(boolean value) { 45089 if (!value) { 45090 this.tableName = null; 45091 } 45092 } 45093 45094 /** 45095 * the prefix (and thus start row) of the keys you want 45096 */ 45097 public byte[] getStartAndPrefix() { 45098 setStartAndPrefix(org.apache.thrift.TBaseHelper.rightSize(startAndPrefix)); 45099 return startAndPrefix == null ? null : startAndPrefix.array(); 45100 } 45101 45102 public ByteBuffer bufferForStartAndPrefix() { 45103 return startAndPrefix; 45104 } 45105 45106 /** 45107 * the prefix (and thus start row) of the keys you want 45108 */ 45109 public scannerOpenWithPrefix_args setStartAndPrefix(byte[] startAndPrefix) { 45110 setStartAndPrefix(startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(startAndPrefix)); 45111 return this; 45112 } 45113 45114 public scannerOpenWithPrefix_args setStartAndPrefix(ByteBuffer startAndPrefix) { 45115 this.startAndPrefix = startAndPrefix; 45116 return this; 45117 } 45118 45119 public void unsetStartAndPrefix() { 45120 this.startAndPrefix = null; 45121 } 45122 45123 /** Returns true if field startAndPrefix is set (has been assigned a value) and false otherwise */ 45124 public boolean isSetStartAndPrefix() { 45125 return this.startAndPrefix != null; 45126 } 45127 45128 public void setStartAndPrefixIsSet(boolean value) { 45129 if (!value) { 45130 this.startAndPrefix = null; 45131 } 45132 } 45133 45134 public int getColumnsSize() { 45135 return (this.columns == null) ? 0 : this.columns.size(); 45136 } 45137 45138 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 45139 return (this.columns == null) ? null : this.columns.iterator(); 45140 } 45141 45142 public void addToColumns(ByteBuffer elem) { 45143 if (this.columns == null) { 45144 this.columns = new ArrayList<ByteBuffer>(); 45145 } 45146 this.columns.add(elem); 45147 } 45148 45149 /** 45150 * the columns you want returned 45151 */ 45152 public List<ByteBuffer> getColumns() { 45153 return this.columns; 45154 } 45155 45156 /** 45157 * the columns you want returned 45158 */ 45159 public scannerOpenWithPrefix_args setColumns(List<ByteBuffer> columns) { 45160 this.columns = columns; 45161 return this; 45162 } 45163 45164 public void unsetColumns() { 45165 this.columns = null; 45166 } 45167 45168 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 45169 public boolean isSetColumns() { 45170 return this.columns != null; 45171 } 45172 45173 public void setColumnsIsSet(boolean value) { 45174 if (!value) { 45175 this.columns = null; 45176 } 45177 } 45178 45179 public int getAttributesSize() { 45180 return (this.attributes == null) ? 0 : this.attributes.size(); 45181 } 45182 45183 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 45184 if (this.attributes == null) { 45185 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 45186 } 45187 this.attributes.put(key, val); 45188 } 45189 45190 /** 45191 * Scan attributes 45192 */ 45193 public Map<ByteBuffer,ByteBuffer> getAttributes() { 45194 return this.attributes; 45195 } 45196 45197 /** 45198 * Scan attributes 45199 */ 45200 public scannerOpenWithPrefix_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 45201 this.attributes = attributes; 45202 return this; 45203 } 45204 45205 public void unsetAttributes() { 45206 this.attributes = null; 45207 } 45208 45209 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 45210 public boolean isSetAttributes() { 45211 return this.attributes != null; 45212 } 45213 45214 public void setAttributesIsSet(boolean value) { 45215 if (!value) { 45216 this.attributes = null; 45217 } 45218 } 45219 45220 public void setFieldValue(_Fields field, Object value) { 45221 switch (field) { 45222 case TABLE_NAME: 45223 if (value == null) { 45224 unsetTableName(); 45225 } else { 45226 setTableName((ByteBuffer)value); 45227 } 45228 break; 45229 45230 case START_AND_PREFIX: 45231 if (value == null) { 45232 unsetStartAndPrefix(); 45233 } else { 45234 setStartAndPrefix((ByteBuffer)value); 45235 } 45236 break; 45237 45238 case COLUMNS: 45239 if (value == null) { 45240 unsetColumns(); 45241 } else { 45242 setColumns((List<ByteBuffer>)value); 45243 } 45244 break; 45245 45246 case ATTRIBUTES: 45247 if (value == null) { 45248 unsetAttributes(); 45249 } else { 45250 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 45251 } 45252 break; 45253 45254 } 45255 } 45256 45257 public Object getFieldValue(_Fields field) { 45258 switch (field) { 45259 case TABLE_NAME: 45260 return getTableName(); 45261 45262 case START_AND_PREFIX: 45263 return getStartAndPrefix(); 45264 45265 case COLUMNS: 45266 return getColumns(); 45267 45268 case ATTRIBUTES: 45269 return getAttributes(); 45270 45271 } 45272 throw new IllegalStateException(); 45273 } 45274 45275 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 45276 public boolean isSet(_Fields field) { 45277 if (field == null) { 45278 throw new IllegalArgumentException(); 45279 } 45280 45281 switch (field) { 45282 case TABLE_NAME: 45283 return isSetTableName(); 45284 case START_AND_PREFIX: 45285 return isSetStartAndPrefix(); 45286 case COLUMNS: 45287 return isSetColumns(); 45288 case ATTRIBUTES: 45289 return isSetAttributes(); 45290 } 45291 throw new IllegalStateException(); 45292 } 45293 45294 @Override 45295 public boolean equals(Object that) { 45296 if (that == null) 45297 return false; 45298 if (that instanceof scannerOpenWithPrefix_args) 45299 return this.equals((scannerOpenWithPrefix_args)that); 45300 return false; 45301 } 45302 45303 public boolean equals(scannerOpenWithPrefix_args that) { 45304 if (that == null) 45305 return false; 45306 45307 boolean this_present_tableName = true && this.isSetTableName(); 45308 boolean that_present_tableName = true && that.isSetTableName(); 45309 if (this_present_tableName || that_present_tableName) { 45310 if (!(this_present_tableName && that_present_tableName)) 45311 return false; 45312 if (!this.tableName.equals(that.tableName)) 45313 return false; 45314 } 45315 45316 boolean this_present_startAndPrefix = true && this.isSetStartAndPrefix(); 45317 boolean that_present_startAndPrefix = true && that.isSetStartAndPrefix(); 45318 if (this_present_startAndPrefix || that_present_startAndPrefix) { 45319 if (!(this_present_startAndPrefix && that_present_startAndPrefix)) 45320 return false; 45321 if (!this.startAndPrefix.equals(that.startAndPrefix)) 45322 return false; 45323 } 45324 45325 boolean this_present_columns = true && this.isSetColumns(); 45326 boolean that_present_columns = true && that.isSetColumns(); 45327 if (this_present_columns || that_present_columns) { 45328 if (!(this_present_columns && that_present_columns)) 45329 return false; 45330 if (!this.columns.equals(that.columns)) 45331 return false; 45332 } 45333 45334 boolean this_present_attributes = true && this.isSetAttributes(); 45335 boolean that_present_attributes = true && that.isSetAttributes(); 45336 if (this_present_attributes || that_present_attributes) { 45337 if (!(this_present_attributes && that_present_attributes)) 45338 return false; 45339 if (!this.attributes.equals(that.attributes)) 45340 return false; 45341 } 45342 45343 return true; 45344 } 45345 45346 @Override 45347 public int hashCode() { 45348 HashCodeBuilder builder = new HashCodeBuilder(); 45349 45350 boolean present_tableName = true && (isSetTableName()); 45351 builder.append(present_tableName); 45352 if (present_tableName) 45353 builder.append(tableName); 45354 45355 boolean present_startAndPrefix = true && (isSetStartAndPrefix()); 45356 builder.append(present_startAndPrefix); 45357 if (present_startAndPrefix) 45358 builder.append(startAndPrefix); 45359 45360 boolean present_columns = true && (isSetColumns()); 45361 builder.append(present_columns); 45362 if (present_columns) 45363 builder.append(columns); 45364 45365 boolean present_attributes = true && (isSetAttributes()); 45366 builder.append(present_attributes); 45367 if (present_attributes) 45368 builder.append(attributes); 45369 45370 return builder.toHashCode(); 45371 } 45372 45373 public int compareTo(scannerOpenWithPrefix_args other) { 45374 if (!getClass().equals(other.getClass())) { 45375 return getClass().getName().compareTo(other.getClass().getName()); 45376 } 45377 45378 int lastComparison = 0; 45379 scannerOpenWithPrefix_args typedOther = (scannerOpenWithPrefix_args)other; 45380 45381 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 45382 if (lastComparison != 0) { 45383 return lastComparison; 45384 } 45385 if (isSetTableName()) { 45386 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 45387 if (lastComparison != 0) { 45388 return lastComparison; 45389 } 45390 } 45391 lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(typedOther.isSetStartAndPrefix()); 45392 if (lastComparison != 0) { 45393 return lastComparison; 45394 } 45395 if (isSetStartAndPrefix()) { 45396 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startAndPrefix, typedOther.startAndPrefix); 45397 if (lastComparison != 0) { 45398 return lastComparison; 45399 } 45400 } 45401 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 45402 if (lastComparison != 0) { 45403 return lastComparison; 45404 } 45405 if (isSetColumns()) { 45406 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 45407 if (lastComparison != 0) { 45408 return lastComparison; 45409 } 45410 } 45411 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 45412 if (lastComparison != 0) { 45413 return lastComparison; 45414 } 45415 if (isSetAttributes()) { 45416 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 45417 if (lastComparison != 0) { 45418 return lastComparison; 45419 } 45420 } 45421 return 0; 45422 } 45423 45424 public _Fields fieldForId(int fieldId) { 45425 return _Fields.findByThriftId(fieldId); 45426 } 45427 45428 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 45429 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 45430 } 45431 45432 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 45433 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 45434 } 45435 45436 @Override 45437 public String toString() { 45438 StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_args("); 45439 boolean first = true; 45440 45441 sb.append("tableName:"); 45442 if (this.tableName == null) { 45443 sb.append("null"); 45444 } else { 45445 sb.append(this.tableName); 45446 } 45447 first = false; 45448 if (!first) sb.append(", "); 45449 sb.append("startAndPrefix:"); 45450 if (this.startAndPrefix == null) { 45451 sb.append("null"); 45452 } else { 45453 sb.append(this.startAndPrefix); 45454 } 45455 first = false; 45456 if (!first) sb.append(", "); 45457 sb.append("columns:"); 45458 if (this.columns == null) { 45459 sb.append("null"); 45460 } else { 45461 sb.append(this.columns); 45462 } 45463 first = false; 45464 if (!first) sb.append(", "); 45465 sb.append("attributes:"); 45466 if (this.attributes == null) { 45467 sb.append("null"); 45468 } else { 45469 sb.append(this.attributes); 45470 } 45471 first = false; 45472 sb.append(")"); 45473 return sb.toString(); 45474 } 45475 45476 public void validate() throws org.apache.thrift.TException { 45477 // check for required fields 45478 } 45479 45480 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 45481 try { 45482 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 45483 } catch (org.apache.thrift.TException te) { 45484 throw new java.io.IOException(te); 45485 } 45486 } 45487 45488 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 45489 try { 45490 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 45491 } catch (org.apache.thrift.TException te) { 45492 throw new java.io.IOException(te); 45493 } 45494 } 45495 45496 private static class scannerOpenWithPrefix_argsStandardSchemeFactory implements SchemeFactory { 45497 public scannerOpenWithPrefix_argsStandardScheme getScheme() { 45498 return new scannerOpenWithPrefix_argsStandardScheme(); 45499 } 45500 } 45501 45502 private static class scannerOpenWithPrefix_argsStandardScheme extends StandardScheme<scannerOpenWithPrefix_args> { 45503 45504 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { 45505 org.apache.thrift.protocol.TField schemeField; 45506 iprot.readStructBegin(); 45507 while (true) 45508 { 45509 schemeField = iprot.readFieldBegin(); 45510 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 45511 break; 45512 } 45513 switch (schemeField.id) { 45514 case 1: // TABLE_NAME 45515 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 45516 struct.tableName = iprot.readBinary(); 45517 struct.setTableNameIsSet(true); 45518 } else { 45519 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 45520 } 45521 break; 45522 case 2: // START_AND_PREFIX 45523 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 45524 struct.startAndPrefix = iprot.readBinary(); 45525 struct.setStartAndPrefixIsSet(true); 45526 } else { 45527 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 45528 } 45529 break; 45530 case 3: // COLUMNS 45531 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 45532 { 45533 org.apache.thrift.protocol.TList _list496 = iprot.readListBegin(); 45534 struct.columns = new ArrayList<ByteBuffer>(_list496.size); 45535 for (int _i497 = 0; _i497 < _list496.size; ++_i497) 45536 { 45537 ByteBuffer _elem498; // required 45538 _elem498 = iprot.readBinary(); 45539 struct.columns.add(_elem498); 45540 } 45541 iprot.readListEnd(); 45542 } 45543 struct.setColumnsIsSet(true); 45544 } else { 45545 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 45546 } 45547 break; 45548 case 4: // ATTRIBUTES 45549 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 45550 { 45551 org.apache.thrift.protocol.TMap _map499 = iprot.readMapBegin(); 45552 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map499.size); 45553 for (int _i500 = 0; _i500 < _map499.size; ++_i500) 45554 { 45555 ByteBuffer _key501; // required 45556 ByteBuffer _val502; // required 45557 _key501 = iprot.readBinary(); 45558 _val502 = iprot.readBinary(); 45559 struct.attributes.put(_key501, _val502); 45560 } 45561 iprot.readMapEnd(); 45562 } 45563 struct.setAttributesIsSet(true); 45564 } else { 45565 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 45566 } 45567 break; 45568 default: 45569 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 45570 } 45571 iprot.readFieldEnd(); 45572 } 45573 iprot.readStructEnd(); 45574 45575 // check for required fields of primitive type, which can't be checked in the validate method 45576 struct.validate(); 45577 } 45578 45579 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { 45580 struct.validate(); 45581 45582 oprot.writeStructBegin(STRUCT_DESC); 45583 if (struct.tableName != null) { 45584 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 45585 oprot.writeBinary(struct.tableName); 45586 oprot.writeFieldEnd(); 45587 } 45588 if (struct.startAndPrefix != null) { 45589 oprot.writeFieldBegin(START_AND_PREFIX_FIELD_DESC); 45590 oprot.writeBinary(struct.startAndPrefix); 45591 oprot.writeFieldEnd(); 45592 } 45593 if (struct.columns != null) { 45594 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 45595 { 45596 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 45597 for (ByteBuffer _iter503 : struct.columns) 45598 { 45599 oprot.writeBinary(_iter503); 45600 } 45601 oprot.writeListEnd(); 45602 } 45603 oprot.writeFieldEnd(); 45604 } 45605 if (struct.attributes != null) { 45606 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 45607 { 45608 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 45609 for (Map.Entry<ByteBuffer, ByteBuffer> _iter504 : struct.attributes.entrySet()) 45610 { 45611 oprot.writeBinary(_iter504.getKey()); 45612 oprot.writeBinary(_iter504.getValue()); 45613 } 45614 oprot.writeMapEnd(); 45615 } 45616 oprot.writeFieldEnd(); 45617 } 45618 oprot.writeFieldStop(); 45619 oprot.writeStructEnd(); 45620 } 45621 45622 } 45623 45624 private static class scannerOpenWithPrefix_argsTupleSchemeFactory implements SchemeFactory { 45625 public scannerOpenWithPrefix_argsTupleScheme getScheme() { 45626 return new scannerOpenWithPrefix_argsTupleScheme(); 45627 } 45628 } 45629 45630 private static class scannerOpenWithPrefix_argsTupleScheme extends TupleScheme<scannerOpenWithPrefix_args> { 45631 45632 @Override 45633 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { 45634 TTupleProtocol oprot = (TTupleProtocol) prot; 45635 BitSet optionals = new BitSet(); 45636 if (struct.isSetTableName()) { 45637 optionals.set(0); 45638 } 45639 if (struct.isSetStartAndPrefix()) { 45640 optionals.set(1); 45641 } 45642 if (struct.isSetColumns()) { 45643 optionals.set(2); 45644 } 45645 if (struct.isSetAttributes()) { 45646 optionals.set(3); 45647 } 45648 oprot.writeBitSet(optionals, 4); 45649 if (struct.isSetTableName()) { 45650 oprot.writeBinary(struct.tableName); 45651 } 45652 if (struct.isSetStartAndPrefix()) { 45653 oprot.writeBinary(struct.startAndPrefix); 45654 } 45655 if (struct.isSetColumns()) { 45656 { 45657 oprot.writeI32(struct.columns.size()); 45658 for (ByteBuffer _iter505 : struct.columns) 45659 { 45660 oprot.writeBinary(_iter505); 45661 } 45662 } 45663 } 45664 if (struct.isSetAttributes()) { 45665 { 45666 oprot.writeI32(struct.attributes.size()); 45667 for (Map.Entry<ByteBuffer, ByteBuffer> _iter506 : struct.attributes.entrySet()) 45668 { 45669 oprot.writeBinary(_iter506.getKey()); 45670 oprot.writeBinary(_iter506.getValue()); 45671 } 45672 } 45673 } 45674 } 45675 45676 @Override 45677 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException { 45678 TTupleProtocol iprot = (TTupleProtocol) prot; 45679 BitSet incoming = iprot.readBitSet(4); 45680 if (incoming.get(0)) { 45681 struct.tableName = iprot.readBinary(); 45682 struct.setTableNameIsSet(true); 45683 } 45684 if (incoming.get(1)) { 45685 struct.startAndPrefix = iprot.readBinary(); 45686 struct.setStartAndPrefixIsSet(true); 45687 } 45688 if (incoming.get(2)) { 45689 { 45690 org.apache.thrift.protocol.TList _list507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 45691 struct.columns = new ArrayList<ByteBuffer>(_list507.size); 45692 for (int _i508 = 0; _i508 < _list507.size; ++_i508) 45693 { 45694 ByteBuffer _elem509; // required 45695 _elem509 = iprot.readBinary(); 45696 struct.columns.add(_elem509); 45697 } 45698 } 45699 struct.setColumnsIsSet(true); 45700 } 45701 if (incoming.get(3)) { 45702 { 45703 org.apache.thrift.protocol.TMap _map510 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 45704 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map510.size); 45705 for (int _i511 = 0; _i511 < _map510.size; ++_i511) 45706 { 45707 ByteBuffer _key512; // required 45708 ByteBuffer _val513; // required 45709 _key512 = iprot.readBinary(); 45710 _val513 = iprot.readBinary(); 45711 struct.attributes.put(_key512, _val513); 45712 } 45713 } 45714 struct.setAttributesIsSet(true); 45715 } 45716 } 45717 } 45718 45719 } 45720 45721 public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase<scannerOpenWithPrefix_result, scannerOpenWithPrefix_result._Fields>, java.io.Serializable, Cloneable { 45722 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_result"); 45723 45724 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 45725 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 45726 45727 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 45728 static { 45729 schemes.put(StandardScheme.class, new scannerOpenWithPrefix_resultStandardSchemeFactory()); 45730 schemes.put(TupleScheme.class, new scannerOpenWithPrefix_resultTupleSchemeFactory()); 45731 } 45732 45733 public int success; // required 45734 public IOError io; // required 45735 45736 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 45737 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 45738 SUCCESS((short)0, "success"), 45739 IO((short)1, "io"); 45740 45741 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 45742 45743 static { 45744 for (_Fields field : EnumSet.allOf(_Fields.class)) { 45745 byName.put(field.getFieldName(), field); 45746 } 45747 } 45748 45749 /** 45750 * Find the _Fields constant that matches fieldId, or null if its not found. 45751 */ 45752 public static _Fields findByThriftId(int fieldId) { 45753 switch(fieldId) { 45754 case 0: // SUCCESS 45755 return SUCCESS; 45756 case 1: // IO 45757 return IO; 45758 default: 45759 return null; 45760 } 45761 } 45762 45763 /** 45764 * Find the _Fields constant that matches fieldId, throwing an exception 45765 * if it is not found. 45766 */ 45767 public static _Fields findByThriftIdOrThrow(int fieldId) { 45768 _Fields fields = findByThriftId(fieldId); 45769 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 45770 return fields; 45771 } 45772 45773 /** 45774 * Find the _Fields constant that matches name, or null if its not found. 45775 */ 45776 public static _Fields findByName(String name) { 45777 return byName.get(name); 45778 } 45779 45780 private final short _thriftId; 45781 private final String _fieldName; 45782 45783 _Fields(short thriftId, String fieldName) { 45784 _thriftId = thriftId; 45785 _fieldName = fieldName; 45786 } 45787 45788 public short getThriftFieldId() { 45789 return _thriftId; 45790 } 45791 45792 public String getFieldName() { 45793 return _fieldName; 45794 } 45795 } 45796 45797 // isset id assignments 45798 private static final int __SUCCESS_ISSET_ID = 0; 45799 private BitSet __isset_bit_vector = new BitSet(1); 45800 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 45801 static { 45802 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 45803 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 45804 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 45805 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 45806 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 45807 metaDataMap = Collections.unmodifiableMap(tmpMap); 45808 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_result.class, metaDataMap); 45809 } 45810 45811 public scannerOpenWithPrefix_result() { 45812 } 45813 45814 public scannerOpenWithPrefix_result( 45815 int success, 45816 IOError io) 45817 { 45818 this(); 45819 this.success = success; 45820 setSuccessIsSet(true); 45821 this.io = io; 45822 } 45823 45824 /** 45825 * Performs a deep copy on <i>other</i>. 45826 */ 45827 public scannerOpenWithPrefix_result(scannerOpenWithPrefix_result other) { 45828 __isset_bit_vector.clear(); 45829 __isset_bit_vector.or(other.__isset_bit_vector); 45830 this.success = other.success; 45831 if (other.isSetIo()) { 45832 this.io = new IOError(other.io); 45833 } 45834 } 45835 45836 public scannerOpenWithPrefix_result deepCopy() { 45837 return new scannerOpenWithPrefix_result(this); 45838 } 45839 45840 @Override 45841 public void clear() { 45842 setSuccessIsSet(false); 45843 this.success = 0; 45844 this.io = null; 45845 } 45846 45847 public int getSuccess() { 45848 return this.success; 45849 } 45850 45851 public scannerOpenWithPrefix_result setSuccess(int success) { 45852 this.success = success; 45853 setSuccessIsSet(true); 45854 return this; 45855 } 45856 45857 public void unsetSuccess() { 45858 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 45859 } 45860 45861 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 45862 public boolean isSetSuccess() { 45863 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 45864 } 45865 45866 public void setSuccessIsSet(boolean value) { 45867 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 45868 } 45869 45870 public IOError getIo() { 45871 return this.io; 45872 } 45873 45874 public scannerOpenWithPrefix_result setIo(IOError io) { 45875 this.io = io; 45876 return this; 45877 } 45878 45879 public void unsetIo() { 45880 this.io = null; 45881 } 45882 45883 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 45884 public boolean isSetIo() { 45885 return this.io != null; 45886 } 45887 45888 public void setIoIsSet(boolean value) { 45889 if (!value) { 45890 this.io = null; 45891 } 45892 } 45893 45894 public void setFieldValue(_Fields field, Object value) { 45895 switch (field) { 45896 case SUCCESS: 45897 if (value == null) { 45898 unsetSuccess(); 45899 } else { 45900 setSuccess((Integer)value); 45901 } 45902 break; 45903 45904 case IO: 45905 if (value == null) { 45906 unsetIo(); 45907 } else { 45908 setIo((IOError)value); 45909 } 45910 break; 45911 45912 } 45913 } 45914 45915 public Object getFieldValue(_Fields field) { 45916 switch (field) { 45917 case SUCCESS: 45918 return Integer.valueOf(getSuccess()); 45919 45920 case IO: 45921 return getIo(); 45922 45923 } 45924 throw new IllegalStateException(); 45925 } 45926 45927 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 45928 public boolean isSet(_Fields field) { 45929 if (field == null) { 45930 throw new IllegalArgumentException(); 45931 } 45932 45933 switch (field) { 45934 case SUCCESS: 45935 return isSetSuccess(); 45936 case IO: 45937 return isSetIo(); 45938 } 45939 throw new IllegalStateException(); 45940 } 45941 45942 @Override 45943 public boolean equals(Object that) { 45944 if (that == null) 45945 return false; 45946 if (that instanceof scannerOpenWithPrefix_result) 45947 return this.equals((scannerOpenWithPrefix_result)that); 45948 return false; 45949 } 45950 45951 public boolean equals(scannerOpenWithPrefix_result that) { 45952 if (that == null) 45953 return false; 45954 45955 boolean this_present_success = true; 45956 boolean that_present_success = true; 45957 if (this_present_success || that_present_success) { 45958 if (!(this_present_success && that_present_success)) 45959 return false; 45960 if (this.success != that.success) 45961 return false; 45962 } 45963 45964 boolean this_present_io = true && this.isSetIo(); 45965 boolean that_present_io = true && that.isSetIo(); 45966 if (this_present_io || that_present_io) { 45967 if (!(this_present_io && that_present_io)) 45968 return false; 45969 if (!this.io.equals(that.io)) 45970 return false; 45971 } 45972 45973 return true; 45974 } 45975 45976 @Override 45977 public int hashCode() { 45978 HashCodeBuilder builder = new HashCodeBuilder(); 45979 45980 boolean present_success = true; 45981 builder.append(present_success); 45982 if (present_success) 45983 builder.append(success); 45984 45985 boolean present_io = true && (isSetIo()); 45986 builder.append(present_io); 45987 if (present_io) 45988 builder.append(io); 45989 45990 return builder.toHashCode(); 45991 } 45992 45993 public int compareTo(scannerOpenWithPrefix_result other) { 45994 if (!getClass().equals(other.getClass())) { 45995 return getClass().getName().compareTo(other.getClass().getName()); 45996 } 45997 45998 int lastComparison = 0; 45999 scannerOpenWithPrefix_result typedOther = (scannerOpenWithPrefix_result)other; 46000 46001 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 46002 if (lastComparison != 0) { 46003 return lastComparison; 46004 } 46005 if (isSetSuccess()) { 46006 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 46007 if (lastComparison != 0) { 46008 return lastComparison; 46009 } 46010 } 46011 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 46012 if (lastComparison != 0) { 46013 return lastComparison; 46014 } 46015 if (isSetIo()) { 46016 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 46017 if (lastComparison != 0) { 46018 return lastComparison; 46019 } 46020 } 46021 return 0; 46022 } 46023 46024 public _Fields fieldForId(int fieldId) { 46025 return _Fields.findByThriftId(fieldId); 46026 } 46027 46028 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 46029 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 46030 } 46031 46032 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 46033 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 46034 } 46035 46036 @Override 46037 public String toString() { 46038 StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_result("); 46039 boolean first = true; 46040 46041 sb.append("success:"); 46042 sb.append(this.success); 46043 first = false; 46044 if (!first) sb.append(", "); 46045 sb.append("io:"); 46046 if (this.io == null) { 46047 sb.append("null"); 46048 } else { 46049 sb.append(this.io); 46050 } 46051 first = false; 46052 sb.append(")"); 46053 return sb.toString(); 46054 } 46055 46056 public void validate() throws org.apache.thrift.TException { 46057 // check for required fields 46058 } 46059 46060 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 46061 try { 46062 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 46063 } catch (org.apache.thrift.TException te) { 46064 throw new java.io.IOException(te); 46065 } 46066 } 46067 46068 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 46069 try { 46070 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 46071 } catch (org.apache.thrift.TException te) { 46072 throw new java.io.IOException(te); 46073 } 46074 } 46075 46076 private static class scannerOpenWithPrefix_resultStandardSchemeFactory implements SchemeFactory { 46077 public scannerOpenWithPrefix_resultStandardScheme getScheme() { 46078 return new scannerOpenWithPrefix_resultStandardScheme(); 46079 } 46080 } 46081 46082 private static class scannerOpenWithPrefix_resultStandardScheme extends StandardScheme<scannerOpenWithPrefix_result> { 46083 46084 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { 46085 org.apache.thrift.protocol.TField schemeField; 46086 iprot.readStructBegin(); 46087 while (true) 46088 { 46089 schemeField = iprot.readFieldBegin(); 46090 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 46091 break; 46092 } 46093 switch (schemeField.id) { 46094 case 0: // SUCCESS 46095 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 46096 struct.success = iprot.readI32(); 46097 struct.setSuccessIsSet(true); 46098 } else { 46099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46100 } 46101 break; 46102 case 1: // IO 46103 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 46104 struct.io = new IOError(); 46105 struct.io.read(iprot); 46106 struct.setIoIsSet(true); 46107 } else { 46108 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46109 } 46110 break; 46111 default: 46112 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46113 } 46114 iprot.readFieldEnd(); 46115 } 46116 iprot.readStructEnd(); 46117 46118 // check for required fields of primitive type, which can't be checked in the validate method 46119 struct.validate(); 46120 } 46121 46122 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { 46123 struct.validate(); 46124 46125 oprot.writeStructBegin(STRUCT_DESC); 46126 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 46127 oprot.writeI32(struct.success); 46128 oprot.writeFieldEnd(); 46129 if (struct.io != null) { 46130 oprot.writeFieldBegin(IO_FIELD_DESC); 46131 struct.io.write(oprot); 46132 oprot.writeFieldEnd(); 46133 } 46134 oprot.writeFieldStop(); 46135 oprot.writeStructEnd(); 46136 } 46137 46138 } 46139 46140 private static class scannerOpenWithPrefix_resultTupleSchemeFactory implements SchemeFactory { 46141 public scannerOpenWithPrefix_resultTupleScheme getScheme() { 46142 return new scannerOpenWithPrefix_resultTupleScheme(); 46143 } 46144 } 46145 46146 private static class scannerOpenWithPrefix_resultTupleScheme extends TupleScheme<scannerOpenWithPrefix_result> { 46147 46148 @Override 46149 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { 46150 TTupleProtocol oprot = (TTupleProtocol) prot; 46151 BitSet optionals = new BitSet(); 46152 if (struct.isSetSuccess()) { 46153 optionals.set(0); 46154 } 46155 if (struct.isSetIo()) { 46156 optionals.set(1); 46157 } 46158 oprot.writeBitSet(optionals, 2); 46159 if (struct.isSetSuccess()) { 46160 oprot.writeI32(struct.success); 46161 } 46162 if (struct.isSetIo()) { 46163 struct.io.write(oprot); 46164 } 46165 } 46166 46167 @Override 46168 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException { 46169 TTupleProtocol iprot = (TTupleProtocol) prot; 46170 BitSet incoming = iprot.readBitSet(2); 46171 if (incoming.get(0)) { 46172 struct.success = iprot.readI32(); 46173 struct.setSuccessIsSet(true); 46174 } 46175 if (incoming.get(1)) { 46176 struct.io = new IOError(); 46177 struct.io.read(iprot); 46178 struct.setIoIsSet(true); 46179 } 46180 } 46181 } 46182 46183 } 46184 46185 public static class scannerOpenTs_args implements org.apache.thrift.TBase<scannerOpenTs_args, scannerOpenTs_args._Fields>, java.io.Serializable, Cloneable { 46186 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_args"); 46187 46188 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 46189 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2); 46190 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3); 46191 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4); 46192 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5); 46193 46194 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 46195 static { 46196 schemes.put(StandardScheme.class, new scannerOpenTs_argsStandardSchemeFactory()); 46197 schemes.put(TupleScheme.class, new scannerOpenTs_argsTupleSchemeFactory()); 46198 } 46199 46200 /** 46201 * name of table 46202 */ 46203 public ByteBuffer tableName; // required 46204 /** 46205 * Starting row in table to scan. 46206 * Send "" (empty string) to start at the first row. 46207 */ 46208 public ByteBuffer startRow; // required 46209 /** 46210 * columns to scan. If column name is a column family, all 46211 * columns of the specified column family are returned. It's also possible 46212 * to pass a regex in the column qualifier. 46213 */ 46214 public List<ByteBuffer> columns; // required 46215 /** 46216 * timestamp 46217 */ 46218 public long timestamp; // required 46219 /** 46220 * Scan attributes 46221 */ 46222 public Map<ByteBuffer,ByteBuffer> attributes; // required 46223 46224 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 46225 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 46226 /** 46227 * name of table 46228 */ 46229 TABLE_NAME((short)1, "tableName"), 46230 /** 46231 * Starting row in table to scan. 46232 * Send "" (empty string) to start at the first row. 46233 */ 46234 START_ROW((short)2, "startRow"), 46235 /** 46236 * columns to scan. If column name is a column family, all 46237 * columns of the specified column family are returned. It's also possible 46238 * to pass a regex in the column qualifier. 46239 */ 46240 COLUMNS((short)3, "columns"), 46241 /** 46242 * timestamp 46243 */ 46244 TIMESTAMP((short)4, "timestamp"), 46245 /** 46246 * Scan attributes 46247 */ 46248 ATTRIBUTES((short)5, "attributes"); 46249 46250 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 46251 46252 static { 46253 for (_Fields field : EnumSet.allOf(_Fields.class)) { 46254 byName.put(field.getFieldName(), field); 46255 } 46256 } 46257 46258 /** 46259 * Find the _Fields constant that matches fieldId, or null if its not found. 46260 */ 46261 public static _Fields findByThriftId(int fieldId) { 46262 switch(fieldId) { 46263 case 1: // TABLE_NAME 46264 return TABLE_NAME; 46265 case 2: // START_ROW 46266 return START_ROW; 46267 case 3: // COLUMNS 46268 return COLUMNS; 46269 case 4: // TIMESTAMP 46270 return TIMESTAMP; 46271 case 5: // ATTRIBUTES 46272 return ATTRIBUTES; 46273 default: 46274 return null; 46275 } 46276 } 46277 46278 /** 46279 * Find the _Fields constant that matches fieldId, throwing an exception 46280 * if it is not found. 46281 */ 46282 public static _Fields findByThriftIdOrThrow(int fieldId) { 46283 _Fields fields = findByThriftId(fieldId); 46284 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 46285 return fields; 46286 } 46287 46288 /** 46289 * Find the _Fields constant that matches name, or null if its not found. 46290 */ 46291 public static _Fields findByName(String name) { 46292 return byName.get(name); 46293 } 46294 46295 private final short _thriftId; 46296 private final String _fieldName; 46297 46298 _Fields(short thriftId, String fieldName) { 46299 _thriftId = thriftId; 46300 _fieldName = fieldName; 46301 } 46302 46303 public short getThriftFieldId() { 46304 return _thriftId; 46305 } 46306 46307 public String getFieldName() { 46308 return _fieldName; 46309 } 46310 } 46311 46312 // isset id assignments 46313 private static final int __TIMESTAMP_ISSET_ID = 0; 46314 private BitSet __isset_bit_vector = new BitSet(1); 46315 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 46316 static { 46317 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 46318 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 46319 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 46320 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 46321 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 46322 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 46323 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 46324 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 46325 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 46326 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 46327 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 46328 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 46329 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 46330 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 46331 metaDataMap = Collections.unmodifiableMap(tmpMap); 46332 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_args.class, metaDataMap); 46333 } 46334 46335 public scannerOpenTs_args() { 46336 } 46337 46338 public scannerOpenTs_args( 46339 ByteBuffer tableName, 46340 ByteBuffer startRow, 46341 List<ByteBuffer> columns, 46342 long timestamp, 46343 Map<ByteBuffer,ByteBuffer> attributes) 46344 { 46345 this(); 46346 this.tableName = tableName; 46347 this.startRow = startRow; 46348 this.columns = columns; 46349 this.timestamp = timestamp; 46350 setTimestampIsSet(true); 46351 this.attributes = attributes; 46352 } 46353 46354 /** 46355 * Performs a deep copy on <i>other</i>. 46356 */ 46357 public scannerOpenTs_args(scannerOpenTs_args other) { 46358 __isset_bit_vector.clear(); 46359 __isset_bit_vector.or(other.__isset_bit_vector); 46360 if (other.isSetTableName()) { 46361 this.tableName = other.tableName; 46362 } 46363 if (other.isSetStartRow()) { 46364 this.startRow = other.startRow; 46365 } 46366 if (other.isSetColumns()) { 46367 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 46368 for (ByteBuffer other_element : other.columns) { 46369 __this__columns.add(other_element); 46370 } 46371 this.columns = __this__columns; 46372 } 46373 this.timestamp = other.timestamp; 46374 if (other.isSetAttributes()) { 46375 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 46376 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 46377 46378 ByteBuffer other_element_key = other_element.getKey(); 46379 ByteBuffer other_element_value = other_element.getValue(); 46380 46381 ByteBuffer __this__attributes_copy_key = other_element_key; 46382 46383 ByteBuffer __this__attributes_copy_value = other_element_value; 46384 46385 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 46386 } 46387 this.attributes = __this__attributes; 46388 } 46389 } 46390 46391 public scannerOpenTs_args deepCopy() { 46392 return new scannerOpenTs_args(this); 46393 } 46394 46395 @Override 46396 public void clear() { 46397 this.tableName = null; 46398 this.startRow = null; 46399 this.columns = null; 46400 setTimestampIsSet(false); 46401 this.timestamp = 0; 46402 this.attributes = null; 46403 } 46404 46405 /** 46406 * name of table 46407 */ 46408 public byte[] getTableName() { 46409 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 46410 return tableName == null ? null : tableName.array(); 46411 } 46412 46413 public ByteBuffer bufferForTableName() { 46414 return tableName; 46415 } 46416 46417 /** 46418 * name of table 46419 */ 46420 public scannerOpenTs_args setTableName(byte[] tableName) { 46421 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 46422 return this; 46423 } 46424 46425 public scannerOpenTs_args setTableName(ByteBuffer tableName) { 46426 this.tableName = tableName; 46427 return this; 46428 } 46429 46430 public void unsetTableName() { 46431 this.tableName = null; 46432 } 46433 46434 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 46435 public boolean isSetTableName() { 46436 return this.tableName != null; 46437 } 46438 46439 public void setTableNameIsSet(boolean value) { 46440 if (!value) { 46441 this.tableName = null; 46442 } 46443 } 46444 46445 /** 46446 * Starting row in table to scan. 46447 * Send "" (empty string) to start at the first row. 46448 */ 46449 public byte[] getStartRow() { 46450 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow)); 46451 return startRow == null ? null : startRow.array(); 46452 } 46453 46454 public ByteBuffer bufferForStartRow() { 46455 return startRow; 46456 } 46457 46458 /** 46459 * Starting row in table to scan. 46460 * Send "" (empty string) to start at the first row. 46461 */ 46462 public scannerOpenTs_args setStartRow(byte[] startRow) { 46463 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); 46464 return this; 46465 } 46466 46467 public scannerOpenTs_args setStartRow(ByteBuffer startRow) { 46468 this.startRow = startRow; 46469 return this; 46470 } 46471 46472 public void unsetStartRow() { 46473 this.startRow = null; 46474 } 46475 46476 /** Returns true if field startRow is set (has been assigned a value) and false otherwise */ 46477 public boolean isSetStartRow() { 46478 return this.startRow != null; 46479 } 46480 46481 public void setStartRowIsSet(boolean value) { 46482 if (!value) { 46483 this.startRow = null; 46484 } 46485 } 46486 46487 public int getColumnsSize() { 46488 return (this.columns == null) ? 0 : this.columns.size(); 46489 } 46490 46491 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 46492 return (this.columns == null) ? null : this.columns.iterator(); 46493 } 46494 46495 public void addToColumns(ByteBuffer elem) { 46496 if (this.columns == null) { 46497 this.columns = new ArrayList<ByteBuffer>(); 46498 } 46499 this.columns.add(elem); 46500 } 46501 46502 /** 46503 * columns to scan. If column name is a column family, all 46504 * columns of the specified column family are returned. It's also possible 46505 * to pass a regex in the column qualifier. 46506 */ 46507 public List<ByteBuffer> getColumns() { 46508 return this.columns; 46509 } 46510 46511 /** 46512 * columns to scan. If column name is a column family, all 46513 * columns of the specified column family are returned. It's also possible 46514 * to pass a regex in the column qualifier. 46515 */ 46516 public scannerOpenTs_args setColumns(List<ByteBuffer> columns) { 46517 this.columns = columns; 46518 return this; 46519 } 46520 46521 public void unsetColumns() { 46522 this.columns = null; 46523 } 46524 46525 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 46526 public boolean isSetColumns() { 46527 return this.columns != null; 46528 } 46529 46530 public void setColumnsIsSet(boolean value) { 46531 if (!value) { 46532 this.columns = null; 46533 } 46534 } 46535 46536 /** 46537 * timestamp 46538 */ 46539 public long getTimestamp() { 46540 return this.timestamp; 46541 } 46542 46543 /** 46544 * timestamp 46545 */ 46546 public scannerOpenTs_args setTimestamp(long timestamp) { 46547 this.timestamp = timestamp; 46548 setTimestampIsSet(true); 46549 return this; 46550 } 46551 46552 public void unsetTimestamp() { 46553 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 46554 } 46555 46556 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 46557 public boolean isSetTimestamp() { 46558 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 46559 } 46560 46561 public void setTimestampIsSet(boolean value) { 46562 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 46563 } 46564 46565 public int getAttributesSize() { 46566 return (this.attributes == null) ? 0 : this.attributes.size(); 46567 } 46568 46569 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 46570 if (this.attributes == null) { 46571 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 46572 } 46573 this.attributes.put(key, val); 46574 } 46575 46576 /** 46577 * Scan attributes 46578 */ 46579 public Map<ByteBuffer,ByteBuffer> getAttributes() { 46580 return this.attributes; 46581 } 46582 46583 /** 46584 * Scan attributes 46585 */ 46586 public scannerOpenTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 46587 this.attributes = attributes; 46588 return this; 46589 } 46590 46591 public void unsetAttributes() { 46592 this.attributes = null; 46593 } 46594 46595 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 46596 public boolean isSetAttributes() { 46597 return this.attributes != null; 46598 } 46599 46600 public void setAttributesIsSet(boolean value) { 46601 if (!value) { 46602 this.attributes = null; 46603 } 46604 } 46605 46606 public void setFieldValue(_Fields field, Object value) { 46607 switch (field) { 46608 case TABLE_NAME: 46609 if (value == null) { 46610 unsetTableName(); 46611 } else { 46612 setTableName((ByteBuffer)value); 46613 } 46614 break; 46615 46616 case START_ROW: 46617 if (value == null) { 46618 unsetStartRow(); 46619 } else { 46620 setStartRow((ByteBuffer)value); 46621 } 46622 break; 46623 46624 case COLUMNS: 46625 if (value == null) { 46626 unsetColumns(); 46627 } else { 46628 setColumns((List<ByteBuffer>)value); 46629 } 46630 break; 46631 46632 case TIMESTAMP: 46633 if (value == null) { 46634 unsetTimestamp(); 46635 } else { 46636 setTimestamp((Long)value); 46637 } 46638 break; 46639 46640 case ATTRIBUTES: 46641 if (value == null) { 46642 unsetAttributes(); 46643 } else { 46644 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 46645 } 46646 break; 46647 46648 } 46649 } 46650 46651 public Object getFieldValue(_Fields field) { 46652 switch (field) { 46653 case TABLE_NAME: 46654 return getTableName(); 46655 46656 case START_ROW: 46657 return getStartRow(); 46658 46659 case COLUMNS: 46660 return getColumns(); 46661 46662 case TIMESTAMP: 46663 return Long.valueOf(getTimestamp()); 46664 46665 case ATTRIBUTES: 46666 return getAttributes(); 46667 46668 } 46669 throw new IllegalStateException(); 46670 } 46671 46672 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 46673 public boolean isSet(_Fields field) { 46674 if (field == null) { 46675 throw new IllegalArgumentException(); 46676 } 46677 46678 switch (field) { 46679 case TABLE_NAME: 46680 return isSetTableName(); 46681 case START_ROW: 46682 return isSetStartRow(); 46683 case COLUMNS: 46684 return isSetColumns(); 46685 case TIMESTAMP: 46686 return isSetTimestamp(); 46687 case ATTRIBUTES: 46688 return isSetAttributes(); 46689 } 46690 throw new IllegalStateException(); 46691 } 46692 46693 @Override 46694 public boolean equals(Object that) { 46695 if (that == null) 46696 return false; 46697 if (that instanceof scannerOpenTs_args) 46698 return this.equals((scannerOpenTs_args)that); 46699 return false; 46700 } 46701 46702 public boolean equals(scannerOpenTs_args that) { 46703 if (that == null) 46704 return false; 46705 46706 boolean this_present_tableName = true && this.isSetTableName(); 46707 boolean that_present_tableName = true && that.isSetTableName(); 46708 if (this_present_tableName || that_present_tableName) { 46709 if (!(this_present_tableName && that_present_tableName)) 46710 return false; 46711 if (!this.tableName.equals(that.tableName)) 46712 return false; 46713 } 46714 46715 boolean this_present_startRow = true && this.isSetStartRow(); 46716 boolean that_present_startRow = true && that.isSetStartRow(); 46717 if (this_present_startRow || that_present_startRow) { 46718 if (!(this_present_startRow && that_present_startRow)) 46719 return false; 46720 if (!this.startRow.equals(that.startRow)) 46721 return false; 46722 } 46723 46724 boolean this_present_columns = true && this.isSetColumns(); 46725 boolean that_present_columns = true && that.isSetColumns(); 46726 if (this_present_columns || that_present_columns) { 46727 if (!(this_present_columns && that_present_columns)) 46728 return false; 46729 if (!this.columns.equals(that.columns)) 46730 return false; 46731 } 46732 46733 boolean this_present_timestamp = true; 46734 boolean that_present_timestamp = true; 46735 if (this_present_timestamp || that_present_timestamp) { 46736 if (!(this_present_timestamp && that_present_timestamp)) 46737 return false; 46738 if (this.timestamp != that.timestamp) 46739 return false; 46740 } 46741 46742 boolean this_present_attributes = true && this.isSetAttributes(); 46743 boolean that_present_attributes = true && that.isSetAttributes(); 46744 if (this_present_attributes || that_present_attributes) { 46745 if (!(this_present_attributes && that_present_attributes)) 46746 return false; 46747 if (!this.attributes.equals(that.attributes)) 46748 return false; 46749 } 46750 46751 return true; 46752 } 46753 46754 @Override 46755 public int hashCode() { 46756 HashCodeBuilder builder = new HashCodeBuilder(); 46757 46758 boolean present_tableName = true && (isSetTableName()); 46759 builder.append(present_tableName); 46760 if (present_tableName) 46761 builder.append(tableName); 46762 46763 boolean present_startRow = true && (isSetStartRow()); 46764 builder.append(present_startRow); 46765 if (present_startRow) 46766 builder.append(startRow); 46767 46768 boolean present_columns = true && (isSetColumns()); 46769 builder.append(present_columns); 46770 if (present_columns) 46771 builder.append(columns); 46772 46773 boolean present_timestamp = true; 46774 builder.append(present_timestamp); 46775 if (present_timestamp) 46776 builder.append(timestamp); 46777 46778 boolean present_attributes = true && (isSetAttributes()); 46779 builder.append(present_attributes); 46780 if (present_attributes) 46781 builder.append(attributes); 46782 46783 return builder.toHashCode(); 46784 } 46785 46786 public int compareTo(scannerOpenTs_args other) { 46787 if (!getClass().equals(other.getClass())) { 46788 return getClass().getName().compareTo(other.getClass().getName()); 46789 } 46790 46791 int lastComparison = 0; 46792 scannerOpenTs_args typedOther = (scannerOpenTs_args)other; 46793 46794 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 46795 if (lastComparison != 0) { 46796 return lastComparison; 46797 } 46798 if (isSetTableName()) { 46799 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 46800 if (lastComparison != 0) { 46801 return lastComparison; 46802 } 46803 } 46804 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); 46805 if (lastComparison != 0) { 46806 return lastComparison; 46807 } 46808 if (isSetStartRow()) { 46809 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); 46810 if (lastComparison != 0) { 46811 return lastComparison; 46812 } 46813 } 46814 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 46815 if (lastComparison != 0) { 46816 return lastComparison; 46817 } 46818 if (isSetColumns()) { 46819 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 46820 if (lastComparison != 0) { 46821 return lastComparison; 46822 } 46823 } 46824 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 46825 if (lastComparison != 0) { 46826 return lastComparison; 46827 } 46828 if (isSetTimestamp()) { 46829 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 46830 if (lastComparison != 0) { 46831 return lastComparison; 46832 } 46833 } 46834 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 46835 if (lastComparison != 0) { 46836 return lastComparison; 46837 } 46838 if (isSetAttributes()) { 46839 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 46840 if (lastComparison != 0) { 46841 return lastComparison; 46842 } 46843 } 46844 return 0; 46845 } 46846 46847 public _Fields fieldForId(int fieldId) { 46848 return _Fields.findByThriftId(fieldId); 46849 } 46850 46851 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 46852 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 46853 } 46854 46855 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 46856 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 46857 } 46858 46859 @Override 46860 public String toString() { 46861 StringBuilder sb = new StringBuilder("scannerOpenTs_args("); 46862 boolean first = true; 46863 46864 sb.append("tableName:"); 46865 if (this.tableName == null) { 46866 sb.append("null"); 46867 } else { 46868 sb.append(this.tableName); 46869 } 46870 first = false; 46871 if (!first) sb.append(", "); 46872 sb.append("startRow:"); 46873 if (this.startRow == null) { 46874 sb.append("null"); 46875 } else { 46876 sb.append(this.startRow); 46877 } 46878 first = false; 46879 if (!first) sb.append(", "); 46880 sb.append("columns:"); 46881 if (this.columns == null) { 46882 sb.append("null"); 46883 } else { 46884 sb.append(this.columns); 46885 } 46886 first = false; 46887 if (!first) sb.append(", "); 46888 sb.append("timestamp:"); 46889 sb.append(this.timestamp); 46890 first = false; 46891 if (!first) sb.append(", "); 46892 sb.append("attributes:"); 46893 if (this.attributes == null) { 46894 sb.append("null"); 46895 } else { 46896 sb.append(this.attributes); 46897 } 46898 first = false; 46899 sb.append(")"); 46900 return sb.toString(); 46901 } 46902 46903 public void validate() throws org.apache.thrift.TException { 46904 // check for required fields 46905 } 46906 46907 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 46908 try { 46909 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 46910 } catch (org.apache.thrift.TException te) { 46911 throw new java.io.IOException(te); 46912 } 46913 } 46914 46915 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 46916 try { 46917 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 46918 __isset_bit_vector = new BitSet(1); 46919 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 46920 } catch (org.apache.thrift.TException te) { 46921 throw new java.io.IOException(te); 46922 } 46923 } 46924 46925 private static class scannerOpenTs_argsStandardSchemeFactory implements SchemeFactory { 46926 public scannerOpenTs_argsStandardScheme getScheme() { 46927 return new scannerOpenTs_argsStandardScheme(); 46928 } 46929 } 46930 46931 private static class scannerOpenTs_argsStandardScheme extends StandardScheme<scannerOpenTs_args> { 46932 46933 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_args struct) throws org.apache.thrift.TException { 46934 org.apache.thrift.protocol.TField schemeField; 46935 iprot.readStructBegin(); 46936 while (true) 46937 { 46938 schemeField = iprot.readFieldBegin(); 46939 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 46940 break; 46941 } 46942 switch (schemeField.id) { 46943 case 1: // TABLE_NAME 46944 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 46945 struct.tableName = iprot.readBinary(); 46946 struct.setTableNameIsSet(true); 46947 } else { 46948 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46949 } 46950 break; 46951 case 2: // START_ROW 46952 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 46953 struct.startRow = iprot.readBinary(); 46954 struct.setStartRowIsSet(true); 46955 } else { 46956 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46957 } 46958 break; 46959 case 3: // COLUMNS 46960 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 46961 { 46962 org.apache.thrift.protocol.TList _list514 = iprot.readListBegin(); 46963 struct.columns = new ArrayList<ByteBuffer>(_list514.size); 46964 for (int _i515 = 0; _i515 < _list514.size; ++_i515) 46965 { 46966 ByteBuffer _elem516; // required 46967 _elem516 = iprot.readBinary(); 46968 struct.columns.add(_elem516); 46969 } 46970 iprot.readListEnd(); 46971 } 46972 struct.setColumnsIsSet(true); 46973 } else { 46974 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46975 } 46976 break; 46977 case 4: // TIMESTAMP 46978 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 46979 struct.timestamp = iprot.readI64(); 46980 struct.setTimestampIsSet(true); 46981 } else { 46982 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 46983 } 46984 break; 46985 case 5: // ATTRIBUTES 46986 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 46987 { 46988 org.apache.thrift.protocol.TMap _map517 = iprot.readMapBegin(); 46989 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map517.size); 46990 for (int _i518 = 0; _i518 < _map517.size; ++_i518) 46991 { 46992 ByteBuffer _key519; // required 46993 ByteBuffer _val520; // required 46994 _key519 = iprot.readBinary(); 46995 _val520 = iprot.readBinary(); 46996 struct.attributes.put(_key519, _val520); 46997 } 46998 iprot.readMapEnd(); 46999 } 47000 struct.setAttributesIsSet(true); 47001 } else { 47002 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 47003 } 47004 break; 47005 default: 47006 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 47007 } 47008 iprot.readFieldEnd(); 47009 } 47010 iprot.readStructEnd(); 47011 47012 // check for required fields of primitive type, which can't be checked in the validate method 47013 struct.validate(); 47014 } 47015 47016 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_args struct) throws org.apache.thrift.TException { 47017 struct.validate(); 47018 47019 oprot.writeStructBegin(STRUCT_DESC); 47020 if (struct.tableName != null) { 47021 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 47022 oprot.writeBinary(struct.tableName); 47023 oprot.writeFieldEnd(); 47024 } 47025 if (struct.startRow != null) { 47026 oprot.writeFieldBegin(START_ROW_FIELD_DESC); 47027 oprot.writeBinary(struct.startRow); 47028 oprot.writeFieldEnd(); 47029 } 47030 if (struct.columns != null) { 47031 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 47032 { 47033 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 47034 for (ByteBuffer _iter521 : struct.columns) 47035 { 47036 oprot.writeBinary(_iter521); 47037 } 47038 oprot.writeListEnd(); 47039 } 47040 oprot.writeFieldEnd(); 47041 } 47042 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 47043 oprot.writeI64(struct.timestamp); 47044 oprot.writeFieldEnd(); 47045 if (struct.attributes != null) { 47046 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 47047 { 47048 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 47049 for (Map.Entry<ByteBuffer, ByteBuffer> _iter522 : struct.attributes.entrySet()) 47050 { 47051 oprot.writeBinary(_iter522.getKey()); 47052 oprot.writeBinary(_iter522.getValue()); 47053 } 47054 oprot.writeMapEnd(); 47055 } 47056 oprot.writeFieldEnd(); 47057 } 47058 oprot.writeFieldStop(); 47059 oprot.writeStructEnd(); 47060 } 47061 47062 } 47063 47064 private static class scannerOpenTs_argsTupleSchemeFactory implements SchemeFactory { 47065 public scannerOpenTs_argsTupleScheme getScheme() { 47066 return new scannerOpenTs_argsTupleScheme(); 47067 } 47068 } 47069 47070 private static class scannerOpenTs_argsTupleScheme extends TupleScheme<scannerOpenTs_args> { 47071 47072 @Override 47073 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException { 47074 TTupleProtocol oprot = (TTupleProtocol) prot; 47075 BitSet optionals = new BitSet(); 47076 if (struct.isSetTableName()) { 47077 optionals.set(0); 47078 } 47079 if (struct.isSetStartRow()) { 47080 optionals.set(1); 47081 } 47082 if (struct.isSetColumns()) { 47083 optionals.set(2); 47084 } 47085 if (struct.isSetTimestamp()) { 47086 optionals.set(3); 47087 } 47088 if (struct.isSetAttributes()) { 47089 optionals.set(4); 47090 } 47091 oprot.writeBitSet(optionals, 5); 47092 if (struct.isSetTableName()) { 47093 oprot.writeBinary(struct.tableName); 47094 } 47095 if (struct.isSetStartRow()) { 47096 oprot.writeBinary(struct.startRow); 47097 } 47098 if (struct.isSetColumns()) { 47099 { 47100 oprot.writeI32(struct.columns.size()); 47101 for (ByteBuffer _iter523 : struct.columns) 47102 { 47103 oprot.writeBinary(_iter523); 47104 } 47105 } 47106 } 47107 if (struct.isSetTimestamp()) { 47108 oprot.writeI64(struct.timestamp); 47109 } 47110 if (struct.isSetAttributes()) { 47111 { 47112 oprot.writeI32(struct.attributes.size()); 47113 for (Map.Entry<ByteBuffer, ByteBuffer> _iter524 : struct.attributes.entrySet()) 47114 { 47115 oprot.writeBinary(_iter524.getKey()); 47116 oprot.writeBinary(_iter524.getValue()); 47117 } 47118 } 47119 } 47120 } 47121 47122 @Override 47123 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException { 47124 TTupleProtocol iprot = (TTupleProtocol) prot; 47125 BitSet incoming = iprot.readBitSet(5); 47126 if (incoming.get(0)) { 47127 struct.tableName = iprot.readBinary(); 47128 struct.setTableNameIsSet(true); 47129 } 47130 if (incoming.get(1)) { 47131 struct.startRow = iprot.readBinary(); 47132 struct.setStartRowIsSet(true); 47133 } 47134 if (incoming.get(2)) { 47135 { 47136 org.apache.thrift.protocol.TList _list525 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 47137 struct.columns = new ArrayList<ByteBuffer>(_list525.size); 47138 for (int _i526 = 0; _i526 < _list525.size; ++_i526) 47139 { 47140 ByteBuffer _elem527; // required 47141 _elem527 = iprot.readBinary(); 47142 struct.columns.add(_elem527); 47143 } 47144 } 47145 struct.setColumnsIsSet(true); 47146 } 47147 if (incoming.get(3)) { 47148 struct.timestamp = iprot.readI64(); 47149 struct.setTimestampIsSet(true); 47150 } 47151 if (incoming.get(4)) { 47152 { 47153 org.apache.thrift.protocol.TMap _map528 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 47154 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map528.size); 47155 for (int _i529 = 0; _i529 < _map528.size; ++_i529) 47156 { 47157 ByteBuffer _key530; // required 47158 ByteBuffer _val531; // required 47159 _key530 = iprot.readBinary(); 47160 _val531 = iprot.readBinary(); 47161 struct.attributes.put(_key530, _val531); 47162 } 47163 } 47164 struct.setAttributesIsSet(true); 47165 } 47166 } 47167 } 47168 47169 } 47170 47171 public static class scannerOpenTs_result implements org.apache.thrift.TBase<scannerOpenTs_result, scannerOpenTs_result._Fields>, java.io.Serializable, Cloneable { 47172 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_result"); 47173 47174 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 47175 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 47176 47177 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 47178 static { 47179 schemes.put(StandardScheme.class, new scannerOpenTs_resultStandardSchemeFactory()); 47180 schemes.put(TupleScheme.class, new scannerOpenTs_resultTupleSchemeFactory()); 47181 } 47182 47183 public int success; // required 47184 public IOError io; // required 47185 47186 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 47187 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 47188 SUCCESS((short)0, "success"), 47189 IO((short)1, "io"); 47190 47191 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 47192 47193 static { 47194 for (_Fields field : EnumSet.allOf(_Fields.class)) { 47195 byName.put(field.getFieldName(), field); 47196 } 47197 } 47198 47199 /** 47200 * Find the _Fields constant that matches fieldId, or null if its not found. 47201 */ 47202 public static _Fields findByThriftId(int fieldId) { 47203 switch(fieldId) { 47204 case 0: // SUCCESS 47205 return SUCCESS; 47206 case 1: // IO 47207 return IO; 47208 default: 47209 return null; 47210 } 47211 } 47212 47213 /** 47214 * Find the _Fields constant that matches fieldId, throwing an exception 47215 * if it is not found. 47216 */ 47217 public static _Fields findByThriftIdOrThrow(int fieldId) { 47218 _Fields fields = findByThriftId(fieldId); 47219 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 47220 return fields; 47221 } 47222 47223 /** 47224 * Find the _Fields constant that matches name, or null if its not found. 47225 */ 47226 public static _Fields findByName(String name) { 47227 return byName.get(name); 47228 } 47229 47230 private final short _thriftId; 47231 private final String _fieldName; 47232 47233 _Fields(short thriftId, String fieldName) { 47234 _thriftId = thriftId; 47235 _fieldName = fieldName; 47236 } 47237 47238 public short getThriftFieldId() { 47239 return _thriftId; 47240 } 47241 47242 public String getFieldName() { 47243 return _fieldName; 47244 } 47245 } 47246 47247 // isset id assignments 47248 private static final int __SUCCESS_ISSET_ID = 0; 47249 private BitSet __isset_bit_vector = new BitSet(1); 47250 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 47251 static { 47252 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 47253 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 47254 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 47255 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 47256 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 47257 metaDataMap = Collections.unmodifiableMap(tmpMap); 47258 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_result.class, metaDataMap); 47259 } 47260 47261 public scannerOpenTs_result() { 47262 } 47263 47264 public scannerOpenTs_result( 47265 int success, 47266 IOError io) 47267 { 47268 this(); 47269 this.success = success; 47270 setSuccessIsSet(true); 47271 this.io = io; 47272 } 47273 47274 /** 47275 * Performs a deep copy on <i>other</i>. 47276 */ 47277 public scannerOpenTs_result(scannerOpenTs_result other) { 47278 __isset_bit_vector.clear(); 47279 __isset_bit_vector.or(other.__isset_bit_vector); 47280 this.success = other.success; 47281 if (other.isSetIo()) { 47282 this.io = new IOError(other.io); 47283 } 47284 } 47285 47286 public scannerOpenTs_result deepCopy() { 47287 return new scannerOpenTs_result(this); 47288 } 47289 47290 @Override 47291 public void clear() { 47292 setSuccessIsSet(false); 47293 this.success = 0; 47294 this.io = null; 47295 } 47296 47297 public int getSuccess() { 47298 return this.success; 47299 } 47300 47301 public scannerOpenTs_result setSuccess(int success) { 47302 this.success = success; 47303 setSuccessIsSet(true); 47304 return this; 47305 } 47306 47307 public void unsetSuccess() { 47308 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 47309 } 47310 47311 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 47312 public boolean isSetSuccess() { 47313 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 47314 } 47315 47316 public void setSuccessIsSet(boolean value) { 47317 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 47318 } 47319 47320 public IOError getIo() { 47321 return this.io; 47322 } 47323 47324 public scannerOpenTs_result setIo(IOError io) { 47325 this.io = io; 47326 return this; 47327 } 47328 47329 public void unsetIo() { 47330 this.io = null; 47331 } 47332 47333 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 47334 public boolean isSetIo() { 47335 return this.io != null; 47336 } 47337 47338 public void setIoIsSet(boolean value) { 47339 if (!value) { 47340 this.io = null; 47341 } 47342 } 47343 47344 public void setFieldValue(_Fields field, Object value) { 47345 switch (field) { 47346 case SUCCESS: 47347 if (value == null) { 47348 unsetSuccess(); 47349 } else { 47350 setSuccess((Integer)value); 47351 } 47352 break; 47353 47354 case IO: 47355 if (value == null) { 47356 unsetIo(); 47357 } else { 47358 setIo((IOError)value); 47359 } 47360 break; 47361 47362 } 47363 } 47364 47365 public Object getFieldValue(_Fields field) { 47366 switch (field) { 47367 case SUCCESS: 47368 return Integer.valueOf(getSuccess()); 47369 47370 case IO: 47371 return getIo(); 47372 47373 } 47374 throw new IllegalStateException(); 47375 } 47376 47377 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 47378 public boolean isSet(_Fields field) { 47379 if (field == null) { 47380 throw new IllegalArgumentException(); 47381 } 47382 47383 switch (field) { 47384 case SUCCESS: 47385 return isSetSuccess(); 47386 case IO: 47387 return isSetIo(); 47388 } 47389 throw new IllegalStateException(); 47390 } 47391 47392 @Override 47393 public boolean equals(Object that) { 47394 if (that == null) 47395 return false; 47396 if (that instanceof scannerOpenTs_result) 47397 return this.equals((scannerOpenTs_result)that); 47398 return false; 47399 } 47400 47401 public boolean equals(scannerOpenTs_result that) { 47402 if (that == null) 47403 return false; 47404 47405 boolean this_present_success = true; 47406 boolean that_present_success = true; 47407 if (this_present_success || that_present_success) { 47408 if (!(this_present_success && that_present_success)) 47409 return false; 47410 if (this.success != that.success) 47411 return false; 47412 } 47413 47414 boolean this_present_io = true && this.isSetIo(); 47415 boolean that_present_io = true && that.isSetIo(); 47416 if (this_present_io || that_present_io) { 47417 if (!(this_present_io && that_present_io)) 47418 return false; 47419 if (!this.io.equals(that.io)) 47420 return false; 47421 } 47422 47423 return true; 47424 } 47425 47426 @Override 47427 public int hashCode() { 47428 HashCodeBuilder builder = new HashCodeBuilder(); 47429 47430 boolean present_success = true; 47431 builder.append(present_success); 47432 if (present_success) 47433 builder.append(success); 47434 47435 boolean present_io = true && (isSetIo()); 47436 builder.append(present_io); 47437 if (present_io) 47438 builder.append(io); 47439 47440 return builder.toHashCode(); 47441 } 47442 47443 public int compareTo(scannerOpenTs_result other) { 47444 if (!getClass().equals(other.getClass())) { 47445 return getClass().getName().compareTo(other.getClass().getName()); 47446 } 47447 47448 int lastComparison = 0; 47449 scannerOpenTs_result typedOther = (scannerOpenTs_result)other; 47450 47451 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 47452 if (lastComparison != 0) { 47453 return lastComparison; 47454 } 47455 if (isSetSuccess()) { 47456 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 47457 if (lastComparison != 0) { 47458 return lastComparison; 47459 } 47460 } 47461 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 47462 if (lastComparison != 0) { 47463 return lastComparison; 47464 } 47465 if (isSetIo()) { 47466 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 47467 if (lastComparison != 0) { 47468 return lastComparison; 47469 } 47470 } 47471 return 0; 47472 } 47473 47474 public _Fields fieldForId(int fieldId) { 47475 return _Fields.findByThriftId(fieldId); 47476 } 47477 47478 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 47479 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 47480 } 47481 47482 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 47483 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 47484 } 47485 47486 @Override 47487 public String toString() { 47488 StringBuilder sb = new StringBuilder("scannerOpenTs_result("); 47489 boolean first = true; 47490 47491 sb.append("success:"); 47492 sb.append(this.success); 47493 first = false; 47494 if (!first) sb.append(", "); 47495 sb.append("io:"); 47496 if (this.io == null) { 47497 sb.append("null"); 47498 } else { 47499 sb.append(this.io); 47500 } 47501 first = false; 47502 sb.append(")"); 47503 return sb.toString(); 47504 } 47505 47506 public void validate() throws org.apache.thrift.TException { 47507 // check for required fields 47508 } 47509 47510 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 47511 try { 47512 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 47513 } catch (org.apache.thrift.TException te) { 47514 throw new java.io.IOException(te); 47515 } 47516 } 47517 47518 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 47519 try { 47520 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 47521 } catch (org.apache.thrift.TException te) { 47522 throw new java.io.IOException(te); 47523 } 47524 } 47525 47526 private static class scannerOpenTs_resultStandardSchemeFactory implements SchemeFactory { 47527 public scannerOpenTs_resultStandardScheme getScheme() { 47528 return new scannerOpenTs_resultStandardScheme(); 47529 } 47530 } 47531 47532 private static class scannerOpenTs_resultStandardScheme extends StandardScheme<scannerOpenTs_result> { 47533 47534 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_result struct) throws org.apache.thrift.TException { 47535 org.apache.thrift.protocol.TField schemeField; 47536 iprot.readStructBegin(); 47537 while (true) 47538 { 47539 schemeField = iprot.readFieldBegin(); 47540 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 47541 break; 47542 } 47543 switch (schemeField.id) { 47544 case 0: // SUCCESS 47545 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 47546 struct.success = iprot.readI32(); 47547 struct.setSuccessIsSet(true); 47548 } else { 47549 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 47550 } 47551 break; 47552 case 1: // IO 47553 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 47554 struct.io = new IOError(); 47555 struct.io.read(iprot); 47556 struct.setIoIsSet(true); 47557 } else { 47558 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 47559 } 47560 break; 47561 default: 47562 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 47563 } 47564 iprot.readFieldEnd(); 47565 } 47566 iprot.readStructEnd(); 47567 47568 // check for required fields of primitive type, which can't be checked in the validate method 47569 struct.validate(); 47570 } 47571 47572 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_result struct) throws org.apache.thrift.TException { 47573 struct.validate(); 47574 47575 oprot.writeStructBegin(STRUCT_DESC); 47576 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 47577 oprot.writeI32(struct.success); 47578 oprot.writeFieldEnd(); 47579 if (struct.io != null) { 47580 oprot.writeFieldBegin(IO_FIELD_DESC); 47581 struct.io.write(oprot); 47582 oprot.writeFieldEnd(); 47583 } 47584 oprot.writeFieldStop(); 47585 oprot.writeStructEnd(); 47586 } 47587 47588 } 47589 47590 private static class scannerOpenTs_resultTupleSchemeFactory implements SchemeFactory { 47591 public scannerOpenTs_resultTupleScheme getScheme() { 47592 return new scannerOpenTs_resultTupleScheme(); 47593 } 47594 } 47595 47596 private static class scannerOpenTs_resultTupleScheme extends TupleScheme<scannerOpenTs_result> { 47597 47598 @Override 47599 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException { 47600 TTupleProtocol oprot = (TTupleProtocol) prot; 47601 BitSet optionals = new BitSet(); 47602 if (struct.isSetSuccess()) { 47603 optionals.set(0); 47604 } 47605 if (struct.isSetIo()) { 47606 optionals.set(1); 47607 } 47608 oprot.writeBitSet(optionals, 2); 47609 if (struct.isSetSuccess()) { 47610 oprot.writeI32(struct.success); 47611 } 47612 if (struct.isSetIo()) { 47613 struct.io.write(oprot); 47614 } 47615 } 47616 47617 @Override 47618 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException { 47619 TTupleProtocol iprot = (TTupleProtocol) prot; 47620 BitSet incoming = iprot.readBitSet(2); 47621 if (incoming.get(0)) { 47622 struct.success = iprot.readI32(); 47623 struct.setSuccessIsSet(true); 47624 } 47625 if (incoming.get(1)) { 47626 struct.io = new IOError(); 47627 struct.io.read(iprot); 47628 struct.setIoIsSet(true); 47629 } 47630 } 47631 } 47632 47633 } 47634 47635 public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase<scannerOpenWithStopTs_args, scannerOpenWithStopTs_args._Fields>, java.io.Serializable, Cloneable { 47636 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_args"); 47637 47638 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 47639 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2); 47640 private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3); 47641 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4); 47642 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5); 47643 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6); 47644 47645 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 47646 static { 47647 schemes.put(StandardScheme.class, new scannerOpenWithStopTs_argsStandardSchemeFactory()); 47648 schemes.put(TupleScheme.class, new scannerOpenWithStopTs_argsTupleSchemeFactory()); 47649 } 47650 47651 /** 47652 * name of table 47653 */ 47654 public ByteBuffer tableName; // required 47655 /** 47656 * Starting row in table to scan. 47657 * Send "" (empty string) to start at the first row. 47658 */ 47659 public ByteBuffer startRow; // required 47660 /** 47661 * row to stop scanning on. This row is *not* included in the 47662 * scanner's results 47663 */ 47664 public ByteBuffer stopRow; // required 47665 /** 47666 * columns to scan. If column name is a column family, all 47667 * columns of the specified column family are returned. It's also possible 47668 * to pass a regex in the column qualifier. 47669 */ 47670 public List<ByteBuffer> columns; // required 47671 /** 47672 * timestamp 47673 */ 47674 public long timestamp; // required 47675 /** 47676 * Scan attributes 47677 */ 47678 public Map<ByteBuffer,ByteBuffer> attributes; // required 47679 47680 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 47681 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 47682 /** 47683 * name of table 47684 */ 47685 TABLE_NAME((short)1, "tableName"), 47686 /** 47687 * Starting row in table to scan. 47688 * Send "" (empty string) to start at the first row. 47689 */ 47690 START_ROW((short)2, "startRow"), 47691 /** 47692 * row to stop scanning on. This row is *not* included in the 47693 * scanner's results 47694 */ 47695 STOP_ROW((short)3, "stopRow"), 47696 /** 47697 * columns to scan. If column name is a column family, all 47698 * columns of the specified column family are returned. It's also possible 47699 * to pass a regex in the column qualifier. 47700 */ 47701 COLUMNS((short)4, "columns"), 47702 /** 47703 * timestamp 47704 */ 47705 TIMESTAMP((short)5, "timestamp"), 47706 /** 47707 * Scan attributes 47708 */ 47709 ATTRIBUTES((short)6, "attributes"); 47710 47711 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 47712 47713 static { 47714 for (_Fields field : EnumSet.allOf(_Fields.class)) { 47715 byName.put(field.getFieldName(), field); 47716 } 47717 } 47718 47719 /** 47720 * Find the _Fields constant that matches fieldId, or null if its not found. 47721 */ 47722 public static _Fields findByThriftId(int fieldId) { 47723 switch(fieldId) { 47724 case 1: // TABLE_NAME 47725 return TABLE_NAME; 47726 case 2: // START_ROW 47727 return START_ROW; 47728 case 3: // STOP_ROW 47729 return STOP_ROW; 47730 case 4: // COLUMNS 47731 return COLUMNS; 47732 case 5: // TIMESTAMP 47733 return TIMESTAMP; 47734 case 6: // ATTRIBUTES 47735 return ATTRIBUTES; 47736 default: 47737 return null; 47738 } 47739 } 47740 47741 /** 47742 * Find the _Fields constant that matches fieldId, throwing an exception 47743 * if it is not found. 47744 */ 47745 public static _Fields findByThriftIdOrThrow(int fieldId) { 47746 _Fields fields = findByThriftId(fieldId); 47747 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 47748 return fields; 47749 } 47750 47751 /** 47752 * Find the _Fields constant that matches name, or null if its not found. 47753 */ 47754 public static _Fields findByName(String name) { 47755 return byName.get(name); 47756 } 47757 47758 private final short _thriftId; 47759 private final String _fieldName; 47760 47761 _Fields(short thriftId, String fieldName) { 47762 _thriftId = thriftId; 47763 _fieldName = fieldName; 47764 } 47765 47766 public short getThriftFieldId() { 47767 return _thriftId; 47768 } 47769 47770 public String getFieldName() { 47771 return _fieldName; 47772 } 47773 } 47774 47775 // isset id assignments 47776 private static final int __TIMESTAMP_ISSET_ID = 0; 47777 private BitSet __isset_bit_vector = new BitSet(1); 47778 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 47779 static { 47780 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 47781 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 47782 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 47783 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 47784 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 47785 tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT, 47786 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 47787 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT, 47788 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 47789 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 47790 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 47791 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 47792 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 47793 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 47794 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"), 47795 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")))); 47796 metaDataMap = Collections.unmodifiableMap(tmpMap); 47797 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_args.class, metaDataMap); 47798 } 47799 47800 public scannerOpenWithStopTs_args() { 47801 } 47802 47803 public scannerOpenWithStopTs_args( 47804 ByteBuffer tableName, 47805 ByteBuffer startRow, 47806 ByteBuffer stopRow, 47807 List<ByteBuffer> columns, 47808 long timestamp, 47809 Map<ByteBuffer,ByteBuffer> attributes) 47810 { 47811 this(); 47812 this.tableName = tableName; 47813 this.startRow = startRow; 47814 this.stopRow = stopRow; 47815 this.columns = columns; 47816 this.timestamp = timestamp; 47817 setTimestampIsSet(true); 47818 this.attributes = attributes; 47819 } 47820 47821 /** 47822 * Performs a deep copy on <i>other</i>. 47823 */ 47824 public scannerOpenWithStopTs_args(scannerOpenWithStopTs_args other) { 47825 __isset_bit_vector.clear(); 47826 __isset_bit_vector.or(other.__isset_bit_vector); 47827 if (other.isSetTableName()) { 47828 this.tableName = other.tableName; 47829 } 47830 if (other.isSetStartRow()) { 47831 this.startRow = other.startRow; 47832 } 47833 if (other.isSetStopRow()) { 47834 this.stopRow = other.stopRow; 47835 } 47836 if (other.isSetColumns()) { 47837 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(); 47838 for (ByteBuffer other_element : other.columns) { 47839 __this__columns.add(other_element); 47840 } 47841 this.columns = __this__columns; 47842 } 47843 this.timestamp = other.timestamp; 47844 if (other.isSetAttributes()) { 47845 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>(); 47846 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) { 47847 47848 ByteBuffer other_element_key = other_element.getKey(); 47849 ByteBuffer other_element_value = other_element.getValue(); 47850 47851 ByteBuffer __this__attributes_copy_key = other_element_key; 47852 47853 ByteBuffer __this__attributes_copy_value = other_element_value; 47854 47855 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value); 47856 } 47857 this.attributes = __this__attributes; 47858 } 47859 } 47860 47861 public scannerOpenWithStopTs_args deepCopy() { 47862 return new scannerOpenWithStopTs_args(this); 47863 } 47864 47865 @Override 47866 public void clear() { 47867 this.tableName = null; 47868 this.startRow = null; 47869 this.stopRow = null; 47870 this.columns = null; 47871 setTimestampIsSet(false); 47872 this.timestamp = 0; 47873 this.attributes = null; 47874 } 47875 47876 /** 47877 * name of table 47878 */ 47879 public byte[] getTableName() { 47880 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 47881 return tableName == null ? null : tableName.array(); 47882 } 47883 47884 public ByteBuffer bufferForTableName() { 47885 return tableName; 47886 } 47887 47888 /** 47889 * name of table 47890 */ 47891 public scannerOpenWithStopTs_args setTableName(byte[] tableName) { 47892 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 47893 return this; 47894 } 47895 47896 public scannerOpenWithStopTs_args setTableName(ByteBuffer tableName) { 47897 this.tableName = tableName; 47898 return this; 47899 } 47900 47901 public void unsetTableName() { 47902 this.tableName = null; 47903 } 47904 47905 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 47906 public boolean isSetTableName() { 47907 return this.tableName != null; 47908 } 47909 47910 public void setTableNameIsSet(boolean value) { 47911 if (!value) { 47912 this.tableName = null; 47913 } 47914 } 47915 47916 /** 47917 * Starting row in table to scan. 47918 * Send "" (empty string) to start at the first row. 47919 */ 47920 public byte[] getStartRow() { 47921 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow)); 47922 return startRow == null ? null : startRow.array(); 47923 } 47924 47925 public ByteBuffer bufferForStartRow() { 47926 return startRow; 47927 } 47928 47929 /** 47930 * Starting row in table to scan. 47931 * Send "" (empty string) to start at the first row. 47932 */ 47933 public scannerOpenWithStopTs_args setStartRow(byte[] startRow) { 47934 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow)); 47935 return this; 47936 } 47937 47938 public scannerOpenWithStopTs_args setStartRow(ByteBuffer startRow) { 47939 this.startRow = startRow; 47940 return this; 47941 } 47942 47943 public void unsetStartRow() { 47944 this.startRow = null; 47945 } 47946 47947 /** Returns true if field startRow is set (has been assigned a value) and false otherwise */ 47948 public boolean isSetStartRow() { 47949 return this.startRow != null; 47950 } 47951 47952 public void setStartRowIsSet(boolean value) { 47953 if (!value) { 47954 this.startRow = null; 47955 } 47956 } 47957 47958 /** 47959 * row to stop scanning on. This row is *not* included in the 47960 * scanner's results 47961 */ 47962 public byte[] getStopRow() { 47963 setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow)); 47964 return stopRow == null ? null : stopRow.array(); 47965 } 47966 47967 public ByteBuffer bufferForStopRow() { 47968 return stopRow; 47969 } 47970 47971 /** 47972 * row to stop scanning on. This row is *not* included in the 47973 * scanner's results 47974 */ 47975 public scannerOpenWithStopTs_args setStopRow(byte[] stopRow) { 47976 setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow)); 47977 return this; 47978 } 47979 47980 public scannerOpenWithStopTs_args setStopRow(ByteBuffer stopRow) { 47981 this.stopRow = stopRow; 47982 return this; 47983 } 47984 47985 public void unsetStopRow() { 47986 this.stopRow = null; 47987 } 47988 47989 /** Returns true if field stopRow is set (has been assigned a value) and false otherwise */ 47990 public boolean isSetStopRow() { 47991 return this.stopRow != null; 47992 } 47993 47994 public void setStopRowIsSet(boolean value) { 47995 if (!value) { 47996 this.stopRow = null; 47997 } 47998 } 47999 48000 public int getColumnsSize() { 48001 return (this.columns == null) ? 0 : this.columns.size(); 48002 } 48003 48004 public java.util.Iterator<ByteBuffer> getColumnsIterator() { 48005 return (this.columns == null) ? null : this.columns.iterator(); 48006 } 48007 48008 public void addToColumns(ByteBuffer elem) { 48009 if (this.columns == null) { 48010 this.columns = new ArrayList<ByteBuffer>(); 48011 } 48012 this.columns.add(elem); 48013 } 48014 48015 /** 48016 * columns to scan. If column name is a column family, all 48017 * columns of the specified column family are returned. It's also possible 48018 * to pass a regex in the column qualifier. 48019 */ 48020 public List<ByteBuffer> getColumns() { 48021 return this.columns; 48022 } 48023 48024 /** 48025 * columns to scan. If column name is a column family, all 48026 * columns of the specified column family are returned. It's also possible 48027 * to pass a regex in the column qualifier. 48028 */ 48029 public scannerOpenWithStopTs_args setColumns(List<ByteBuffer> columns) { 48030 this.columns = columns; 48031 return this; 48032 } 48033 48034 public void unsetColumns() { 48035 this.columns = null; 48036 } 48037 48038 /** Returns true if field columns is set (has been assigned a value) and false otherwise */ 48039 public boolean isSetColumns() { 48040 return this.columns != null; 48041 } 48042 48043 public void setColumnsIsSet(boolean value) { 48044 if (!value) { 48045 this.columns = null; 48046 } 48047 } 48048 48049 /** 48050 * timestamp 48051 */ 48052 public long getTimestamp() { 48053 return this.timestamp; 48054 } 48055 48056 /** 48057 * timestamp 48058 */ 48059 public scannerOpenWithStopTs_args setTimestamp(long timestamp) { 48060 this.timestamp = timestamp; 48061 setTimestampIsSet(true); 48062 return this; 48063 } 48064 48065 public void unsetTimestamp() { 48066 __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID); 48067 } 48068 48069 /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */ 48070 public boolean isSetTimestamp() { 48071 return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID); 48072 } 48073 48074 public void setTimestampIsSet(boolean value) { 48075 __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value); 48076 } 48077 48078 public int getAttributesSize() { 48079 return (this.attributes == null) ? 0 : this.attributes.size(); 48080 } 48081 48082 public void putToAttributes(ByteBuffer key, ByteBuffer val) { 48083 if (this.attributes == null) { 48084 this.attributes = new HashMap<ByteBuffer,ByteBuffer>(); 48085 } 48086 this.attributes.put(key, val); 48087 } 48088 48089 /** 48090 * Scan attributes 48091 */ 48092 public Map<ByteBuffer,ByteBuffer> getAttributes() { 48093 return this.attributes; 48094 } 48095 48096 /** 48097 * Scan attributes 48098 */ 48099 public scannerOpenWithStopTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) { 48100 this.attributes = attributes; 48101 return this; 48102 } 48103 48104 public void unsetAttributes() { 48105 this.attributes = null; 48106 } 48107 48108 /** Returns true if field attributes is set (has been assigned a value) and false otherwise */ 48109 public boolean isSetAttributes() { 48110 return this.attributes != null; 48111 } 48112 48113 public void setAttributesIsSet(boolean value) { 48114 if (!value) { 48115 this.attributes = null; 48116 } 48117 } 48118 48119 public void setFieldValue(_Fields field, Object value) { 48120 switch (field) { 48121 case TABLE_NAME: 48122 if (value == null) { 48123 unsetTableName(); 48124 } else { 48125 setTableName((ByteBuffer)value); 48126 } 48127 break; 48128 48129 case START_ROW: 48130 if (value == null) { 48131 unsetStartRow(); 48132 } else { 48133 setStartRow((ByteBuffer)value); 48134 } 48135 break; 48136 48137 case STOP_ROW: 48138 if (value == null) { 48139 unsetStopRow(); 48140 } else { 48141 setStopRow((ByteBuffer)value); 48142 } 48143 break; 48144 48145 case COLUMNS: 48146 if (value == null) { 48147 unsetColumns(); 48148 } else { 48149 setColumns((List<ByteBuffer>)value); 48150 } 48151 break; 48152 48153 case TIMESTAMP: 48154 if (value == null) { 48155 unsetTimestamp(); 48156 } else { 48157 setTimestamp((Long)value); 48158 } 48159 break; 48160 48161 case ATTRIBUTES: 48162 if (value == null) { 48163 unsetAttributes(); 48164 } else { 48165 setAttributes((Map<ByteBuffer,ByteBuffer>)value); 48166 } 48167 break; 48168 48169 } 48170 } 48171 48172 public Object getFieldValue(_Fields field) { 48173 switch (field) { 48174 case TABLE_NAME: 48175 return getTableName(); 48176 48177 case START_ROW: 48178 return getStartRow(); 48179 48180 case STOP_ROW: 48181 return getStopRow(); 48182 48183 case COLUMNS: 48184 return getColumns(); 48185 48186 case TIMESTAMP: 48187 return Long.valueOf(getTimestamp()); 48188 48189 case ATTRIBUTES: 48190 return getAttributes(); 48191 48192 } 48193 throw new IllegalStateException(); 48194 } 48195 48196 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 48197 public boolean isSet(_Fields field) { 48198 if (field == null) { 48199 throw new IllegalArgumentException(); 48200 } 48201 48202 switch (field) { 48203 case TABLE_NAME: 48204 return isSetTableName(); 48205 case START_ROW: 48206 return isSetStartRow(); 48207 case STOP_ROW: 48208 return isSetStopRow(); 48209 case COLUMNS: 48210 return isSetColumns(); 48211 case TIMESTAMP: 48212 return isSetTimestamp(); 48213 case ATTRIBUTES: 48214 return isSetAttributes(); 48215 } 48216 throw new IllegalStateException(); 48217 } 48218 48219 @Override 48220 public boolean equals(Object that) { 48221 if (that == null) 48222 return false; 48223 if (that instanceof scannerOpenWithStopTs_args) 48224 return this.equals((scannerOpenWithStopTs_args)that); 48225 return false; 48226 } 48227 48228 public boolean equals(scannerOpenWithStopTs_args that) { 48229 if (that == null) 48230 return false; 48231 48232 boolean this_present_tableName = true && this.isSetTableName(); 48233 boolean that_present_tableName = true && that.isSetTableName(); 48234 if (this_present_tableName || that_present_tableName) { 48235 if (!(this_present_tableName && that_present_tableName)) 48236 return false; 48237 if (!this.tableName.equals(that.tableName)) 48238 return false; 48239 } 48240 48241 boolean this_present_startRow = true && this.isSetStartRow(); 48242 boolean that_present_startRow = true && that.isSetStartRow(); 48243 if (this_present_startRow || that_present_startRow) { 48244 if (!(this_present_startRow && that_present_startRow)) 48245 return false; 48246 if (!this.startRow.equals(that.startRow)) 48247 return false; 48248 } 48249 48250 boolean this_present_stopRow = true && this.isSetStopRow(); 48251 boolean that_present_stopRow = true && that.isSetStopRow(); 48252 if (this_present_stopRow || that_present_stopRow) { 48253 if (!(this_present_stopRow && that_present_stopRow)) 48254 return false; 48255 if (!this.stopRow.equals(that.stopRow)) 48256 return false; 48257 } 48258 48259 boolean this_present_columns = true && this.isSetColumns(); 48260 boolean that_present_columns = true && that.isSetColumns(); 48261 if (this_present_columns || that_present_columns) { 48262 if (!(this_present_columns && that_present_columns)) 48263 return false; 48264 if (!this.columns.equals(that.columns)) 48265 return false; 48266 } 48267 48268 boolean this_present_timestamp = true; 48269 boolean that_present_timestamp = true; 48270 if (this_present_timestamp || that_present_timestamp) { 48271 if (!(this_present_timestamp && that_present_timestamp)) 48272 return false; 48273 if (this.timestamp != that.timestamp) 48274 return false; 48275 } 48276 48277 boolean this_present_attributes = true && this.isSetAttributes(); 48278 boolean that_present_attributes = true && that.isSetAttributes(); 48279 if (this_present_attributes || that_present_attributes) { 48280 if (!(this_present_attributes && that_present_attributes)) 48281 return false; 48282 if (!this.attributes.equals(that.attributes)) 48283 return false; 48284 } 48285 48286 return true; 48287 } 48288 48289 @Override 48290 public int hashCode() { 48291 HashCodeBuilder builder = new HashCodeBuilder(); 48292 48293 boolean present_tableName = true && (isSetTableName()); 48294 builder.append(present_tableName); 48295 if (present_tableName) 48296 builder.append(tableName); 48297 48298 boolean present_startRow = true && (isSetStartRow()); 48299 builder.append(present_startRow); 48300 if (present_startRow) 48301 builder.append(startRow); 48302 48303 boolean present_stopRow = true && (isSetStopRow()); 48304 builder.append(present_stopRow); 48305 if (present_stopRow) 48306 builder.append(stopRow); 48307 48308 boolean present_columns = true && (isSetColumns()); 48309 builder.append(present_columns); 48310 if (present_columns) 48311 builder.append(columns); 48312 48313 boolean present_timestamp = true; 48314 builder.append(present_timestamp); 48315 if (present_timestamp) 48316 builder.append(timestamp); 48317 48318 boolean present_attributes = true && (isSetAttributes()); 48319 builder.append(present_attributes); 48320 if (present_attributes) 48321 builder.append(attributes); 48322 48323 return builder.toHashCode(); 48324 } 48325 48326 public int compareTo(scannerOpenWithStopTs_args other) { 48327 if (!getClass().equals(other.getClass())) { 48328 return getClass().getName().compareTo(other.getClass().getName()); 48329 } 48330 48331 int lastComparison = 0; 48332 scannerOpenWithStopTs_args typedOther = (scannerOpenWithStopTs_args)other; 48333 48334 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 48335 if (lastComparison != 0) { 48336 return lastComparison; 48337 } 48338 if (isSetTableName()) { 48339 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 48340 if (lastComparison != 0) { 48341 return lastComparison; 48342 } 48343 } 48344 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow()); 48345 if (lastComparison != 0) { 48346 return lastComparison; 48347 } 48348 if (isSetStartRow()) { 48349 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow); 48350 if (lastComparison != 0) { 48351 return lastComparison; 48352 } 48353 } 48354 lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow()); 48355 if (lastComparison != 0) { 48356 return lastComparison; 48357 } 48358 if (isSetStopRow()) { 48359 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow); 48360 if (lastComparison != 0) { 48361 return lastComparison; 48362 } 48363 } 48364 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); 48365 if (lastComparison != 0) { 48366 return lastComparison; 48367 } 48368 if (isSetColumns()) { 48369 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); 48370 if (lastComparison != 0) { 48371 return lastComparison; 48372 } 48373 } 48374 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp()); 48375 if (lastComparison != 0) { 48376 return lastComparison; 48377 } 48378 if (isSetTimestamp()) { 48379 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp); 48380 if (lastComparison != 0) { 48381 return lastComparison; 48382 } 48383 } 48384 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); 48385 if (lastComparison != 0) { 48386 return lastComparison; 48387 } 48388 if (isSetAttributes()) { 48389 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); 48390 if (lastComparison != 0) { 48391 return lastComparison; 48392 } 48393 } 48394 return 0; 48395 } 48396 48397 public _Fields fieldForId(int fieldId) { 48398 return _Fields.findByThriftId(fieldId); 48399 } 48400 48401 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 48402 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 48403 } 48404 48405 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 48406 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 48407 } 48408 48409 @Override 48410 public String toString() { 48411 StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_args("); 48412 boolean first = true; 48413 48414 sb.append("tableName:"); 48415 if (this.tableName == null) { 48416 sb.append("null"); 48417 } else { 48418 sb.append(this.tableName); 48419 } 48420 first = false; 48421 if (!first) sb.append(", "); 48422 sb.append("startRow:"); 48423 if (this.startRow == null) { 48424 sb.append("null"); 48425 } else { 48426 sb.append(this.startRow); 48427 } 48428 first = false; 48429 if (!first) sb.append(", "); 48430 sb.append("stopRow:"); 48431 if (this.stopRow == null) { 48432 sb.append("null"); 48433 } else { 48434 sb.append(this.stopRow); 48435 } 48436 first = false; 48437 if (!first) sb.append(", "); 48438 sb.append("columns:"); 48439 if (this.columns == null) { 48440 sb.append("null"); 48441 } else { 48442 sb.append(this.columns); 48443 } 48444 first = false; 48445 if (!first) sb.append(", "); 48446 sb.append("timestamp:"); 48447 sb.append(this.timestamp); 48448 first = false; 48449 if (!first) sb.append(", "); 48450 sb.append("attributes:"); 48451 if (this.attributes == null) { 48452 sb.append("null"); 48453 } else { 48454 sb.append(this.attributes); 48455 } 48456 first = false; 48457 sb.append(")"); 48458 return sb.toString(); 48459 } 48460 48461 public void validate() throws org.apache.thrift.TException { 48462 // check for required fields 48463 } 48464 48465 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 48466 try { 48467 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 48468 } catch (org.apache.thrift.TException te) { 48469 throw new java.io.IOException(te); 48470 } 48471 } 48472 48473 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 48474 try { 48475 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 48476 } catch (org.apache.thrift.TException te) { 48477 throw new java.io.IOException(te); 48478 } 48479 } 48480 48481 private static class scannerOpenWithStopTs_argsStandardSchemeFactory implements SchemeFactory { 48482 public scannerOpenWithStopTs_argsStandardScheme getScheme() { 48483 return new scannerOpenWithStopTs_argsStandardScheme(); 48484 } 48485 } 48486 48487 private static class scannerOpenWithStopTs_argsStandardScheme extends StandardScheme<scannerOpenWithStopTs_args> { 48488 48489 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { 48490 org.apache.thrift.protocol.TField schemeField; 48491 iprot.readStructBegin(); 48492 while (true) 48493 { 48494 schemeField = iprot.readFieldBegin(); 48495 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 48496 break; 48497 } 48498 switch (schemeField.id) { 48499 case 1: // TABLE_NAME 48500 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 48501 struct.tableName = iprot.readBinary(); 48502 struct.setTableNameIsSet(true); 48503 } else { 48504 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48505 } 48506 break; 48507 case 2: // START_ROW 48508 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 48509 struct.startRow = iprot.readBinary(); 48510 struct.setStartRowIsSet(true); 48511 } else { 48512 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48513 } 48514 break; 48515 case 3: // STOP_ROW 48516 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 48517 struct.stopRow = iprot.readBinary(); 48518 struct.setStopRowIsSet(true); 48519 } else { 48520 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48521 } 48522 break; 48523 case 4: // COLUMNS 48524 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 48525 { 48526 org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); 48527 struct.columns = new ArrayList<ByteBuffer>(_list532.size); 48528 for (int _i533 = 0; _i533 < _list532.size; ++_i533) 48529 { 48530 ByteBuffer _elem534; // required 48531 _elem534 = iprot.readBinary(); 48532 struct.columns.add(_elem534); 48533 } 48534 iprot.readListEnd(); 48535 } 48536 struct.setColumnsIsSet(true); 48537 } else { 48538 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48539 } 48540 break; 48541 case 5: // TIMESTAMP 48542 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 48543 struct.timestamp = iprot.readI64(); 48544 struct.setTimestampIsSet(true); 48545 } else { 48546 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48547 } 48548 break; 48549 case 6: // ATTRIBUTES 48550 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { 48551 { 48552 org.apache.thrift.protocol.TMap _map535 = iprot.readMapBegin(); 48553 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map535.size); 48554 for (int _i536 = 0; _i536 < _map535.size; ++_i536) 48555 { 48556 ByteBuffer _key537; // required 48557 ByteBuffer _val538; // required 48558 _key537 = iprot.readBinary(); 48559 _val538 = iprot.readBinary(); 48560 struct.attributes.put(_key537, _val538); 48561 } 48562 iprot.readMapEnd(); 48563 } 48564 struct.setAttributesIsSet(true); 48565 } else { 48566 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48567 } 48568 break; 48569 default: 48570 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 48571 } 48572 iprot.readFieldEnd(); 48573 } 48574 iprot.readStructEnd(); 48575 48576 // check for required fields of primitive type, which can't be checked in the validate method 48577 struct.validate(); 48578 } 48579 48580 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { 48581 struct.validate(); 48582 48583 oprot.writeStructBegin(STRUCT_DESC); 48584 if (struct.tableName != null) { 48585 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 48586 oprot.writeBinary(struct.tableName); 48587 oprot.writeFieldEnd(); 48588 } 48589 if (struct.startRow != null) { 48590 oprot.writeFieldBegin(START_ROW_FIELD_DESC); 48591 oprot.writeBinary(struct.startRow); 48592 oprot.writeFieldEnd(); 48593 } 48594 if (struct.stopRow != null) { 48595 oprot.writeFieldBegin(STOP_ROW_FIELD_DESC); 48596 oprot.writeBinary(struct.stopRow); 48597 oprot.writeFieldEnd(); 48598 } 48599 if (struct.columns != null) { 48600 oprot.writeFieldBegin(COLUMNS_FIELD_DESC); 48601 { 48602 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size())); 48603 for (ByteBuffer _iter539 : struct.columns) 48604 { 48605 oprot.writeBinary(_iter539); 48606 } 48607 oprot.writeListEnd(); 48608 } 48609 oprot.writeFieldEnd(); 48610 } 48611 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC); 48612 oprot.writeI64(struct.timestamp); 48613 oprot.writeFieldEnd(); 48614 if (struct.attributes != null) { 48615 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC); 48616 { 48617 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size())); 48618 for (Map.Entry<ByteBuffer, ByteBuffer> _iter540 : struct.attributes.entrySet()) 48619 { 48620 oprot.writeBinary(_iter540.getKey()); 48621 oprot.writeBinary(_iter540.getValue()); 48622 } 48623 oprot.writeMapEnd(); 48624 } 48625 oprot.writeFieldEnd(); 48626 } 48627 oprot.writeFieldStop(); 48628 oprot.writeStructEnd(); 48629 } 48630 48631 } 48632 48633 private static class scannerOpenWithStopTs_argsTupleSchemeFactory implements SchemeFactory { 48634 public scannerOpenWithStopTs_argsTupleScheme getScheme() { 48635 return new scannerOpenWithStopTs_argsTupleScheme(); 48636 } 48637 } 48638 48639 private static class scannerOpenWithStopTs_argsTupleScheme extends TupleScheme<scannerOpenWithStopTs_args> { 48640 48641 @Override 48642 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { 48643 TTupleProtocol oprot = (TTupleProtocol) prot; 48644 BitSet optionals = new BitSet(); 48645 if (struct.isSetTableName()) { 48646 optionals.set(0); 48647 } 48648 if (struct.isSetStartRow()) { 48649 optionals.set(1); 48650 } 48651 if (struct.isSetStopRow()) { 48652 optionals.set(2); 48653 } 48654 if (struct.isSetColumns()) { 48655 optionals.set(3); 48656 } 48657 if (struct.isSetTimestamp()) { 48658 optionals.set(4); 48659 } 48660 if (struct.isSetAttributes()) { 48661 optionals.set(5); 48662 } 48663 oprot.writeBitSet(optionals, 6); 48664 if (struct.isSetTableName()) { 48665 oprot.writeBinary(struct.tableName); 48666 } 48667 if (struct.isSetStartRow()) { 48668 oprot.writeBinary(struct.startRow); 48669 } 48670 if (struct.isSetStopRow()) { 48671 oprot.writeBinary(struct.stopRow); 48672 } 48673 if (struct.isSetColumns()) { 48674 { 48675 oprot.writeI32(struct.columns.size()); 48676 for (ByteBuffer _iter541 : struct.columns) 48677 { 48678 oprot.writeBinary(_iter541); 48679 } 48680 } 48681 } 48682 if (struct.isSetTimestamp()) { 48683 oprot.writeI64(struct.timestamp); 48684 } 48685 if (struct.isSetAttributes()) { 48686 { 48687 oprot.writeI32(struct.attributes.size()); 48688 for (Map.Entry<ByteBuffer, ByteBuffer> _iter542 : struct.attributes.entrySet()) 48689 { 48690 oprot.writeBinary(_iter542.getKey()); 48691 oprot.writeBinary(_iter542.getValue()); 48692 } 48693 } 48694 } 48695 } 48696 48697 @Override 48698 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException { 48699 TTupleProtocol iprot = (TTupleProtocol) prot; 48700 BitSet incoming = iprot.readBitSet(6); 48701 if (incoming.get(0)) { 48702 struct.tableName = iprot.readBinary(); 48703 struct.setTableNameIsSet(true); 48704 } 48705 if (incoming.get(1)) { 48706 struct.startRow = iprot.readBinary(); 48707 struct.setStartRowIsSet(true); 48708 } 48709 if (incoming.get(2)) { 48710 struct.stopRow = iprot.readBinary(); 48711 struct.setStopRowIsSet(true); 48712 } 48713 if (incoming.get(3)) { 48714 { 48715 org.apache.thrift.protocol.TList _list543 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 48716 struct.columns = new ArrayList<ByteBuffer>(_list543.size); 48717 for (int _i544 = 0; _i544 < _list543.size; ++_i544) 48718 { 48719 ByteBuffer _elem545; // required 48720 _elem545 = iprot.readBinary(); 48721 struct.columns.add(_elem545); 48722 } 48723 } 48724 struct.setColumnsIsSet(true); 48725 } 48726 if (incoming.get(4)) { 48727 struct.timestamp = iprot.readI64(); 48728 struct.setTimestampIsSet(true); 48729 } 48730 if (incoming.get(5)) { 48731 { 48732 org.apache.thrift.protocol.TMap _map546 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); 48733 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map546.size); 48734 for (int _i547 = 0; _i547 < _map546.size; ++_i547) 48735 { 48736 ByteBuffer _key548; // required 48737 ByteBuffer _val549; // required 48738 _key548 = iprot.readBinary(); 48739 _val549 = iprot.readBinary(); 48740 struct.attributes.put(_key548, _val549); 48741 } 48742 } 48743 struct.setAttributesIsSet(true); 48744 } 48745 } 48746 } 48747 48748 } 48749 48750 public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase<scannerOpenWithStopTs_result, scannerOpenWithStopTs_result._Fields>, java.io.Serializable, Cloneable { 48751 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_result"); 48752 48753 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); 48754 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 48755 48756 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 48757 static { 48758 schemes.put(StandardScheme.class, new scannerOpenWithStopTs_resultStandardSchemeFactory()); 48759 schemes.put(TupleScheme.class, new scannerOpenWithStopTs_resultTupleSchemeFactory()); 48760 } 48761 48762 public int success; // required 48763 public IOError io; // required 48764 48765 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 48766 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 48767 SUCCESS((short)0, "success"), 48768 IO((short)1, "io"); 48769 48770 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 48771 48772 static { 48773 for (_Fields field : EnumSet.allOf(_Fields.class)) { 48774 byName.put(field.getFieldName(), field); 48775 } 48776 } 48777 48778 /** 48779 * Find the _Fields constant that matches fieldId, or null if its not found. 48780 */ 48781 public static _Fields findByThriftId(int fieldId) { 48782 switch(fieldId) { 48783 case 0: // SUCCESS 48784 return SUCCESS; 48785 case 1: // IO 48786 return IO; 48787 default: 48788 return null; 48789 } 48790 } 48791 48792 /** 48793 * Find the _Fields constant that matches fieldId, throwing an exception 48794 * if it is not found. 48795 */ 48796 public static _Fields findByThriftIdOrThrow(int fieldId) { 48797 _Fields fields = findByThriftId(fieldId); 48798 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 48799 return fields; 48800 } 48801 48802 /** 48803 * Find the _Fields constant that matches name, or null if its not found. 48804 */ 48805 public static _Fields findByName(String name) { 48806 return byName.get(name); 48807 } 48808 48809 private final short _thriftId; 48810 private final String _fieldName; 48811 48812 _Fields(short thriftId, String fieldName) { 48813 _thriftId = thriftId; 48814 _fieldName = fieldName; 48815 } 48816 48817 public short getThriftFieldId() { 48818 return _thriftId; 48819 } 48820 48821 public String getFieldName() { 48822 return _fieldName; 48823 } 48824 } 48825 48826 // isset id assignments 48827 private static final int __SUCCESS_ISSET_ID = 0; 48828 private BitSet __isset_bit_vector = new BitSet(1); 48829 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 48830 static { 48831 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 48832 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 48833 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 48834 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 48835 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 48836 metaDataMap = Collections.unmodifiableMap(tmpMap); 48837 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_result.class, metaDataMap); 48838 } 48839 48840 public scannerOpenWithStopTs_result() { 48841 } 48842 48843 public scannerOpenWithStopTs_result( 48844 int success, 48845 IOError io) 48846 { 48847 this(); 48848 this.success = success; 48849 setSuccessIsSet(true); 48850 this.io = io; 48851 } 48852 48853 /** 48854 * Performs a deep copy on <i>other</i>. 48855 */ 48856 public scannerOpenWithStopTs_result(scannerOpenWithStopTs_result other) { 48857 __isset_bit_vector.clear(); 48858 __isset_bit_vector.or(other.__isset_bit_vector); 48859 this.success = other.success; 48860 if (other.isSetIo()) { 48861 this.io = new IOError(other.io); 48862 } 48863 } 48864 48865 public scannerOpenWithStopTs_result deepCopy() { 48866 return new scannerOpenWithStopTs_result(this); 48867 } 48868 48869 @Override 48870 public void clear() { 48871 setSuccessIsSet(false); 48872 this.success = 0; 48873 this.io = null; 48874 } 48875 48876 public int getSuccess() { 48877 return this.success; 48878 } 48879 48880 public scannerOpenWithStopTs_result setSuccess(int success) { 48881 this.success = success; 48882 setSuccessIsSet(true); 48883 return this; 48884 } 48885 48886 public void unsetSuccess() { 48887 __isset_bit_vector.clear(__SUCCESS_ISSET_ID); 48888 } 48889 48890 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 48891 public boolean isSetSuccess() { 48892 return __isset_bit_vector.get(__SUCCESS_ISSET_ID); 48893 } 48894 48895 public void setSuccessIsSet(boolean value) { 48896 __isset_bit_vector.set(__SUCCESS_ISSET_ID, value); 48897 } 48898 48899 public IOError getIo() { 48900 return this.io; 48901 } 48902 48903 public scannerOpenWithStopTs_result setIo(IOError io) { 48904 this.io = io; 48905 return this; 48906 } 48907 48908 public void unsetIo() { 48909 this.io = null; 48910 } 48911 48912 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 48913 public boolean isSetIo() { 48914 return this.io != null; 48915 } 48916 48917 public void setIoIsSet(boolean value) { 48918 if (!value) { 48919 this.io = null; 48920 } 48921 } 48922 48923 public void setFieldValue(_Fields field, Object value) { 48924 switch (field) { 48925 case SUCCESS: 48926 if (value == null) { 48927 unsetSuccess(); 48928 } else { 48929 setSuccess((Integer)value); 48930 } 48931 break; 48932 48933 case IO: 48934 if (value == null) { 48935 unsetIo(); 48936 } else { 48937 setIo((IOError)value); 48938 } 48939 break; 48940 48941 } 48942 } 48943 48944 public Object getFieldValue(_Fields field) { 48945 switch (field) { 48946 case SUCCESS: 48947 return Integer.valueOf(getSuccess()); 48948 48949 case IO: 48950 return getIo(); 48951 48952 } 48953 throw new IllegalStateException(); 48954 } 48955 48956 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 48957 public boolean isSet(_Fields field) { 48958 if (field == null) { 48959 throw new IllegalArgumentException(); 48960 } 48961 48962 switch (field) { 48963 case SUCCESS: 48964 return isSetSuccess(); 48965 case IO: 48966 return isSetIo(); 48967 } 48968 throw new IllegalStateException(); 48969 } 48970 48971 @Override 48972 public boolean equals(Object that) { 48973 if (that == null) 48974 return false; 48975 if (that instanceof scannerOpenWithStopTs_result) 48976 return this.equals((scannerOpenWithStopTs_result)that); 48977 return false; 48978 } 48979 48980 public boolean equals(scannerOpenWithStopTs_result that) { 48981 if (that == null) 48982 return false; 48983 48984 boolean this_present_success = true; 48985 boolean that_present_success = true; 48986 if (this_present_success || that_present_success) { 48987 if (!(this_present_success && that_present_success)) 48988 return false; 48989 if (this.success != that.success) 48990 return false; 48991 } 48992 48993 boolean this_present_io = true && this.isSetIo(); 48994 boolean that_present_io = true && that.isSetIo(); 48995 if (this_present_io || that_present_io) { 48996 if (!(this_present_io && that_present_io)) 48997 return false; 48998 if (!this.io.equals(that.io)) 48999 return false; 49000 } 49001 49002 return true; 49003 } 49004 49005 @Override 49006 public int hashCode() { 49007 HashCodeBuilder builder = new HashCodeBuilder(); 49008 49009 boolean present_success = true; 49010 builder.append(present_success); 49011 if (present_success) 49012 builder.append(success); 49013 49014 boolean present_io = true && (isSetIo()); 49015 builder.append(present_io); 49016 if (present_io) 49017 builder.append(io); 49018 49019 return builder.toHashCode(); 49020 } 49021 49022 public int compareTo(scannerOpenWithStopTs_result other) { 49023 if (!getClass().equals(other.getClass())) { 49024 return getClass().getName().compareTo(other.getClass().getName()); 49025 } 49026 49027 int lastComparison = 0; 49028 scannerOpenWithStopTs_result typedOther = (scannerOpenWithStopTs_result)other; 49029 49030 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 49031 if (lastComparison != 0) { 49032 return lastComparison; 49033 } 49034 if (isSetSuccess()) { 49035 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 49036 if (lastComparison != 0) { 49037 return lastComparison; 49038 } 49039 } 49040 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 49041 if (lastComparison != 0) { 49042 return lastComparison; 49043 } 49044 if (isSetIo()) { 49045 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 49046 if (lastComparison != 0) { 49047 return lastComparison; 49048 } 49049 } 49050 return 0; 49051 } 49052 49053 public _Fields fieldForId(int fieldId) { 49054 return _Fields.findByThriftId(fieldId); 49055 } 49056 49057 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 49058 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 49059 } 49060 49061 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 49062 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 49063 } 49064 49065 @Override 49066 public String toString() { 49067 StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_result("); 49068 boolean first = true; 49069 49070 sb.append("success:"); 49071 sb.append(this.success); 49072 first = false; 49073 if (!first) sb.append(", "); 49074 sb.append("io:"); 49075 if (this.io == null) { 49076 sb.append("null"); 49077 } else { 49078 sb.append(this.io); 49079 } 49080 first = false; 49081 sb.append(")"); 49082 return sb.toString(); 49083 } 49084 49085 public void validate() throws org.apache.thrift.TException { 49086 // check for required fields 49087 } 49088 49089 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 49090 try { 49091 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 49092 } catch (org.apache.thrift.TException te) { 49093 throw new java.io.IOException(te); 49094 } 49095 } 49096 49097 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 49098 try { 49099 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 49100 } catch (org.apache.thrift.TException te) { 49101 throw new java.io.IOException(te); 49102 } 49103 } 49104 49105 private static class scannerOpenWithStopTs_resultStandardSchemeFactory implements SchemeFactory { 49106 public scannerOpenWithStopTs_resultStandardScheme getScheme() { 49107 return new scannerOpenWithStopTs_resultStandardScheme(); 49108 } 49109 } 49110 49111 private static class scannerOpenWithStopTs_resultStandardScheme extends StandardScheme<scannerOpenWithStopTs_result> { 49112 49113 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { 49114 org.apache.thrift.protocol.TField schemeField; 49115 iprot.readStructBegin(); 49116 while (true) 49117 { 49118 schemeField = iprot.readFieldBegin(); 49119 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 49120 break; 49121 } 49122 switch (schemeField.id) { 49123 case 0: // SUCCESS 49124 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 49125 struct.success = iprot.readI32(); 49126 struct.setSuccessIsSet(true); 49127 } else { 49128 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 49129 } 49130 break; 49131 case 1: // IO 49132 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 49133 struct.io = new IOError(); 49134 struct.io.read(iprot); 49135 struct.setIoIsSet(true); 49136 } else { 49137 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 49138 } 49139 break; 49140 default: 49141 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 49142 } 49143 iprot.readFieldEnd(); 49144 } 49145 iprot.readStructEnd(); 49146 49147 // check for required fields of primitive type, which can't be checked in the validate method 49148 struct.validate(); 49149 } 49150 49151 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { 49152 struct.validate(); 49153 49154 oprot.writeStructBegin(STRUCT_DESC); 49155 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 49156 oprot.writeI32(struct.success); 49157 oprot.writeFieldEnd(); 49158 if (struct.io != null) { 49159 oprot.writeFieldBegin(IO_FIELD_DESC); 49160 struct.io.write(oprot); 49161 oprot.writeFieldEnd(); 49162 } 49163 oprot.writeFieldStop(); 49164 oprot.writeStructEnd(); 49165 } 49166 49167 } 49168 49169 private static class scannerOpenWithStopTs_resultTupleSchemeFactory implements SchemeFactory { 49170 public scannerOpenWithStopTs_resultTupleScheme getScheme() { 49171 return new scannerOpenWithStopTs_resultTupleScheme(); 49172 } 49173 } 49174 49175 private static class scannerOpenWithStopTs_resultTupleScheme extends TupleScheme<scannerOpenWithStopTs_result> { 49176 49177 @Override 49178 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { 49179 TTupleProtocol oprot = (TTupleProtocol) prot; 49180 BitSet optionals = new BitSet(); 49181 if (struct.isSetSuccess()) { 49182 optionals.set(0); 49183 } 49184 if (struct.isSetIo()) { 49185 optionals.set(1); 49186 } 49187 oprot.writeBitSet(optionals, 2); 49188 if (struct.isSetSuccess()) { 49189 oprot.writeI32(struct.success); 49190 } 49191 if (struct.isSetIo()) { 49192 struct.io.write(oprot); 49193 } 49194 } 49195 49196 @Override 49197 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException { 49198 TTupleProtocol iprot = (TTupleProtocol) prot; 49199 BitSet incoming = iprot.readBitSet(2); 49200 if (incoming.get(0)) { 49201 struct.success = iprot.readI32(); 49202 struct.setSuccessIsSet(true); 49203 } 49204 if (incoming.get(1)) { 49205 struct.io = new IOError(); 49206 struct.io.read(iprot); 49207 struct.setIoIsSet(true); 49208 } 49209 } 49210 } 49211 49212 } 49213 49214 public static class scannerGet_args implements org.apache.thrift.TBase<scannerGet_args, scannerGet_args._Fields>, java.io.Serializable, Cloneable { 49215 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_args"); 49216 49217 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); 49218 49219 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 49220 static { 49221 schemes.put(StandardScheme.class, new scannerGet_argsStandardSchemeFactory()); 49222 schemes.put(TupleScheme.class, new scannerGet_argsTupleSchemeFactory()); 49223 } 49224 49225 /** 49226 * id of a scanner returned by scannerOpen 49227 */ 49228 public int id; // required 49229 49230 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 49231 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 49232 /** 49233 * id of a scanner returned by scannerOpen 49234 */ 49235 ID((short)1, "id"); 49236 49237 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 49238 49239 static { 49240 for (_Fields field : EnumSet.allOf(_Fields.class)) { 49241 byName.put(field.getFieldName(), field); 49242 } 49243 } 49244 49245 /** 49246 * Find the _Fields constant that matches fieldId, or null if its not found. 49247 */ 49248 public static _Fields findByThriftId(int fieldId) { 49249 switch(fieldId) { 49250 case 1: // ID 49251 return ID; 49252 default: 49253 return null; 49254 } 49255 } 49256 49257 /** 49258 * Find the _Fields constant that matches fieldId, throwing an exception 49259 * if it is not found. 49260 */ 49261 public static _Fields findByThriftIdOrThrow(int fieldId) { 49262 _Fields fields = findByThriftId(fieldId); 49263 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 49264 return fields; 49265 } 49266 49267 /** 49268 * Find the _Fields constant that matches name, or null if its not found. 49269 */ 49270 public static _Fields findByName(String name) { 49271 return byName.get(name); 49272 } 49273 49274 private final short _thriftId; 49275 private final String _fieldName; 49276 49277 _Fields(short thriftId, String fieldName) { 49278 _thriftId = thriftId; 49279 _fieldName = fieldName; 49280 } 49281 49282 public short getThriftFieldId() { 49283 return _thriftId; 49284 } 49285 49286 public String getFieldName() { 49287 return _fieldName; 49288 } 49289 } 49290 49291 // isset id assignments 49292 private static final int __ID_ISSET_ID = 0; 49293 private BitSet __isset_bit_vector = new BitSet(1); 49294 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 49295 static { 49296 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 49297 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 49298 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 49299 metaDataMap = Collections.unmodifiableMap(tmpMap); 49300 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_args.class, metaDataMap); 49301 } 49302 49303 public scannerGet_args() { 49304 } 49305 49306 public scannerGet_args( 49307 int id) 49308 { 49309 this(); 49310 this.id = id; 49311 setIdIsSet(true); 49312 } 49313 49314 /** 49315 * Performs a deep copy on <i>other</i>. 49316 */ 49317 public scannerGet_args(scannerGet_args other) { 49318 __isset_bit_vector.clear(); 49319 __isset_bit_vector.or(other.__isset_bit_vector); 49320 this.id = other.id; 49321 } 49322 49323 public scannerGet_args deepCopy() { 49324 return new scannerGet_args(this); 49325 } 49326 49327 @Override 49328 public void clear() { 49329 setIdIsSet(false); 49330 this.id = 0; 49331 } 49332 49333 /** 49334 * id of a scanner returned by scannerOpen 49335 */ 49336 public int getId() { 49337 return this.id; 49338 } 49339 49340 /** 49341 * id of a scanner returned by scannerOpen 49342 */ 49343 public scannerGet_args setId(int id) { 49344 this.id = id; 49345 setIdIsSet(true); 49346 return this; 49347 } 49348 49349 public void unsetId() { 49350 __isset_bit_vector.clear(__ID_ISSET_ID); 49351 } 49352 49353 /** Returns true if field id is set (has been assigned a value) and false otherwise */ 49354 public boolean isSetId() { 49355 return __isset_bit_vector.get(__ID_ISSET_ID); 49356 } 49357 49358 public void setIdIsSet(boolean value) { 49359 __isset_bit_vector.set(__ID_ISSET_ID, value); 49360 } 49361 49362 public void setFieldValue(_Fields field, Object value) { 49363 switch (field) { 49364 case ID: 49365 if (value == null) { 49366 unsetId(); 49367 } else { 49368 setId((Integer)value); 49369 } 49370 break; 49371 49372 } 49373 } 49374 49375 public Object getFieldValue(_Fields field) { 49376 switch (field) { 49377 case ID: 49378 return Integer.valueOf(getId()); 49379 49380 } 49381 throw new IllegalStateException(); 49382 } 49383 49384 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 49385 public boolean isSet(_Fields field) { 49386 if (field == null) { 49387 throw new IllegalArgumentException(); 49388 } 49389 49390 switch (field) { 49391 case ID: 49392 return isSetId(); 49393 } 49394 throw new IllegalStateException(); 49395 } 49396 49397 @Override 49398 public boolean equals(Object that) { 49399 if (that == null) 49400 return false; 49401 if (that instanceof scannerGet_args) 49402 return this.equals((scannerGet_args)that); 49403 return false; 49404 } 49405 49406 public boolean equals(scannerGet_args that) { 49407 if (that == null) 49408 return false; 49409 49410 boolean this_present_id = true; 49411 boolean that_present_id = true; 49412 if (this_present_id || that_present_id) { 49413 if (!(this_present_id && that_present_id)) 49414 return false; 49415 if (this.id != that.id) 49416 return false; 49417 } 49418 49419 return true; 49420 } 49421 49422 @Override 49423 public int hashCode() { 49424 HashCodeBuilder builder = new HashCodeBuilder(); 49425 49426 boolean present_id = true; 49427 builder.append(present_id); 49428 if (present_id) 49429 builder.append(id); 49430 49431 return builder.toHashCode(); 49432 } 49433 49434 public int compareTo(scannerGet_args other) { 49435 if (!getClass().equals(other.getClass())) { 49436 return getClass().getName().compareTo(other.getClass().getName()); 49437 } 49438 49439 int lastComparison = 0; 49440 scannerGet_args typedOther = (scannerGet_args)other; 49441 49442 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); 49443 if (lastComparison != 0) { 49444 return lastComparison; 49445 } 49446 if (isSetId()) { 49447 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); 49448 if (lastComparison != 0) { 49449 return lastComparison; 49450 } 49451 } 49452 return 0; 49453 } 49454 49455 public _Fields fieldForId(int fieldId) { 49456 return _Fields.findByThriftId(fieldId); 49457 } 49458 49459 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 49460 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 49461 } 49462 49463 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 49464 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 49465 } 49466 49467 @Override 49468 public String toString() { 49469 StringBuilder sb = new StringBuilder("scannerGet_args("); 49470 boolean first = true; 49471 49472 sb.append("id:"); 49473 sb.append(this.id); 49474 first = false; 49475 sb.append(")"); 49476 return sb.toString(); 49477 } 49478 49479 public void validate() throws org.apache.thrift.TException { 49480 // check for required fields 49481 } 49482 49483 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 49484 try { 49485 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 49486 } catch (org.apache.thrift.TException te) { 49487 throw new java.io.IOException(te); 49488 } 49489 } 49490 49491 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 49492 try { 49493 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 49494 __isset_bit_vector = new BitSet(1); 49495 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 49496 } catch (org.apache.thrift.TException te) { 49497 throw new java.io.IOException(te); 49498 } 49499 } 49500 49501 private static class scannerGet_argsStandardSchemeFactory implements SchemeFactory { 49502 public scannerGet_argsStandardScheme getScheme() { 49503 return new scannerGet_argsStandardScheme(); 49504 } 49505 } 49506 49507 private static class scannerGet_argsStandardScheme extends StandardScheme<scannerGet_args> { 49508 49509 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_args struct) throws org.apache.thrift.TException { 49510 org.apache.thrift.protocol.TField schemeField; 49511 iprot.readStructBegin(); 49512 while (true) 49513 { 49514 schemeField = iprot.readFieldBegin(); 49515 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 49516 break; 49517 } 49518 switch (schemeField.id) { 49519 case 1: // ID 49520 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 49521 struct.id = iprot.readI32(); 49522 struct.setIdIsSet(true); 49523 } else { 49524 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 49525 } 49526 break; 49527 default: 49528 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 49529 } 49530 iprot.readFieldEnd(); 49531 } 49532 iprot.readStructEnd(); 49533 49534 // check for required fields of primitive type, which can't be checked in the validate method 49535 struct.validate(); 49536 } 49537 49538 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_args struct) throws org.apache.thrift.TException { 49539 struct.validate(); 49540 49541 oprot.writeStructBegin(STRUCT_DESC); 49542 oprot.writeFieldBegin(ID_FIELD_DESC); 49543 oprot.writeI32(struct.id); 49544 oprot.writeFieldEnd(); 49545 oprot.writeFieldStop(); 49546 oprot.writeStructEnd(); 49547 } 49548 49549 } 49550 49551 private static class scannerGet_argsTupleSchemeFactory implements SchemeFactory { 49552 public scannerGet_argsTupleScheme getScheme() { 49553 return new scannerGet_argsTupleScheme(); 49554 } 49555 } 49556 49557 private static class scannerGet_argsTupleScheme extends TupleScheme<scannerGet_args> { 49558 49559 @Override 49560 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException { 49561 TTupleProtocol oprot = (TTupleProtocol) prot; 49562 BitSet optionals = new BitSet(); 49563 if (struct.isSetId()) { 49564 optionals.set(0); 49565 } 49566 oprot.writeBitSet(optionals, 1); 49567 if (struct.isSetId()) { 49568 oprot.writeI32(struct.id); 49569 } 49570 } 49571 49572 @Override 49573 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException { 49574 TTupleProtocol iprot = (TTupleProtocol) prot; 49575 BitSet incoming = iprot.readBitSet(1); 49576 if (incoming.get(0)) { 49577 struct.id = iprot.readI32(); 49578 struct.setIdIsSet(true); 49579 } 49580 } 49581 } 49582 49583 } 49584 49585 public static class scannerGet_result implements org.apache.thrift.TBase<scannerGet_result, scannerGet_result._Fields>, java.io.Serializable, Cloneable { 49586 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_result"); 49587 49588 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 49589 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 49590 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 49591 49592 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 49593 static { 49594 schemes.put(StandardScheme.class, new scannerGet_resultStandardSchemeFactory()); 49595 schemes.put(TupleScheme.class, new scannerGet_resultTupleSchemeFactory()); 49596 } 49597 49598 public List<TRowResult> success; // required 49599 public IOError io; // required 49600 public IllegalArgument ia; // required 49601 49602 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 49603 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 49604 SUCCESS((short)0, "success"), 49605 IO((short)1, "io"), 49606 IA((short)2, "ia"); 49607 49608 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 49609 49610 static { 49611 for (_Fields field : EnumSet.allOf(_Fields.class)) { 49612 byName.put(field.getFieldName(), field); 49613 } 49614 } 49615 49616 /** 49617 * Find the _Fields constant that matches fieldId, or null if its not found. 49618 */ 49619 public static _Fields findByThriftId(int fieldId) { 49620 switch(fieldId) { 49621 case 0: // SUCCESS 49622 return SUCCESS; 49623 case 1: // IO 49624 return IO; 49625 case 2: // IA 49626 return IA; 49627 default: 49628 return null; 49629 } 49630 } 49631 49632 /** 49633 * Find the _Fields constant that matches fieldId, throwing an exception 49634 * if it is not found. 49635 */ 49636 public static _Fields findByThriftIdOrThrow(int fieldId) { 49637 _Fields fields = findByThriftId(fieldId); 49638 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 49639 return fields; 49640 } 49641 49642 /** 49643 * Find the _Fields constant that matches name, or null if its not found. 49644 */ 49645 public static _Fields findByName(String name) { 49646 return byName.get(name); 49647 } 49648 49649 private final short _thriftId; 49650 private final String _fieldName; 49651 49652 _Fields(short thriftId, String fieldName) { 49653 _thriftId = thriftId; 49654 _fieldName = fieldName; 49655 } 49656 49657 public short getThriftFieldId() { 49658 return _thriftId; 49659 } 49660 49661 public String getFieldName() { 49662 return _fieldName; 49663 } 49664 } 49665 49666 // isset id assignments 49667 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 49668 static { 49669 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 49670 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 49671 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 49672 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 49673 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 49674 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 49675 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 49676 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 49677 metaDataMap = Collections.unmodifiableMap(tmpMap); 49678 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_result.class, metaDataMap); 49679 } 49680 49681 public scannerGet_result() { 49682 } 49683 49684 public scannerGet_result( 49685 List<TRowResult> success, 49686 IOError io, 49687 IllegalArgument ia) 49688 { 49689 this(); 49690 this.success = success; 49691 this.io = io; 49692 this.ia = ia; 49693 } 49694 49695 /** 49696 * Performs a deep copy on <i>other</i>. 49697 */ 49698 public scannerGet_result(scannerGet_result other) { 49699 if (other.isSetSuccess()) { 49700 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 49701 for (TRowResult other_element : other.success) { 49702 __this__success.add(new TRowResult(other_element)); 49703 } 49704 this.success = __this__success; 49705 } 49706 if (other.isSetIo()) { 49707 this.io = new IOError(other.io); 49708 } 49709 if (other.isSetIa()) { 49710 this.ia = new IllegalArgument(other.ia); 49711 } 49712 } 49713 49714 public scannerGet_result deepCopy() { 49715 return new scannerGet_result(this); 49716 } 49717 49718 @Override 49719 public void clear() { 49720 this.success = null; 49721 this.io = null; 49722 this.ia = null; 49723 } 49724 49725 public int getSuccessSize() { 49726 return (this.success == null) ? 0 : this.success.size(); 49727 } 49728 49729 public java.util.Iterator<TRowResult> getSuccessIterator() { 49730 return (this.success == null) ? null : this.success.iterator(); 49731 } 49732 49733 public void addToSuccess(TRowResult elem) { 49734 if (this.success == null) { 49735 this.success = new ArrayList<TRowResult>(); 49736 } 49737 this.success.add(elem); 49738 } 49739 49740 public List<TRowResult> getSuccess() { 49741 return this.success; 49742 } 49743 49744 public scannerGet_result setSuccess(List<TRowResult> success) { 49745 this.success = success; 49746 return this; 49747 } 49748 49749 public void unsetSuccess() { 49750 this.success = null; 49751 } 49752 49753 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 49754 public boolean isSetSuccess() { 49755 return this.success != null; 49756 } 49757 49758 public void setSuccessIsSet(boolean value) { 49759 if (!value) { 49760 this.success = null; 49761 } 49762 } 49763 49764 public IOError getIo() { 49765 return this.io; 49766 } 49767 49768 public scannerGet_result setIo(IOError io) { 49769 this.io = io; 49770 return this; 49771 } 49772 49773 public void unsetIo() { 49774 this.io = null; 49775 } 49776 49777 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 49778 public boolean isSetIo() { 49779 return this.io != null; 49780 } 49781 49782 public void setIoIsSet(boolean value) { 49783 if (!value) { 49784 this.io = null; 49785 } 49786 } 49787 49788 public IllegalArgument getIa() { 49789 return this.ia; 49790 } 49791 49792 public scannerGet_result setIa(IllegalArgument ia) { 49793 this.ia = ia; 49794 return this; 49795 } 49796 49797 public void unsetIa() { 49798 this.ia = null; 49799 } 49800 49801 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 49802 public boolean isSetIa() { 49803 return this.ia != null; 49804 } 49805 49806 public void setIaIsSet(boolean value) { 49807 if (!value) { 49808 this.ia = null; 49809 } 49810 } 49811 49812 public void setFieldValue(_Fields field, Object value) { 49813 switch (field) { 49814 case SUCCESS: 49815 if (value == null) { 49816 unsetSuccess(); 49817 } else { 49818 setSuccess((List<TRowResult>)value); 49819 } 49820 break; 49821 49822 case IO: 49823 if (value == null) { 49824 unsetIo(); 49825 } else { 49826 setIo((IOError)value); 49827 } 49828 break; 49829 49830 case IA: 49831 if (value == null) { 49832 unsetIa(); 49833 } else { 49834 setIa((IllegalArgument)value); 49835 } 49836 break; 49837 49838 } 49839 } 49840 49841 public Object getFieldValue(_Fields field) { 49842 switch (field) { 49843 case SUCCESS: 49844 return getSuccess(); 49845 49846 case IO: 49847 return getIo(); 49848 49849 case IA: 49850 return getIa(); 49851 49852 } 49853 throw new IllegalStateException(); 49854 } 49855 49856 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 49857 public boolean isSet(_Fields field) { 49858 if (field == null) { 49859 throw new IllegalArgumentException(); 49860 } 49861 49862 switch (field) { 49863 case SUCCESS: 49864 return isSetSuccess(); 49865 case IO: 49866 return isSetIo(); 49867 case IA: 49868 return isSetIa(); 49869 } 49870 throw new IllegalStateException(); 49871 } 49872 49873 @Override 49874 public boolean equals(Object that) { 49875 if (that == null) 49876 return false; 49877 if (that instanceof scannerGet_result) 49878 return this.equals((scannerGet_result)that); 49879 return false; 49880 } 49881 49882 public boolean equals(scannerGet_result that) { 49883 if (that == null) 49884 return false; 49885 49886 boolean this_present_success = true && this.isSetSuccess(); 49887 boolean that_present_success = true && that.isSetSuccess(); 49888 if (this_present_success || that_present_success) { 49889 if (!(this_present_success && that_present_success)) 49890 return false; 49891 if (!this.success.equals(that.success)) 49892 return false; 49893 } 49894 49895 boolean this_present_io = true && this.isSetIo(); 49896 boolean that_present_io = true && that.isSetIo(); 49897 if (this_present_io || that_present_io) { 49898 if (!(this_present_io && that_present_io)) 49899 return false; 49900 if (!this.io.equals(that.io)) 49901 return false; 49902 } 49903 49904 boolean this_present_ia = true && this.isSetIa(); 49905 boolean that_present_ia = true && that.isSetIa(); 49906 if (this_present_ia || that_present_ia) { 49907 if (!(this_present_ia && that_present_ia)) 49908 return false; 49909 if (!this.ia.equals(that.ia)) 49910 return false; 49911 } 49912 49913 return true; 49914 } 49915 49916 @Override 49917 public int hashCode() { 49918 HashCodeBuilder builder = new HashCodeBuilder(); 49919 49920 boolean present_success = true && (isSetSuccess()); 49921 builder.append(present_success); 49922 if (present_success) 49923 builder.append(success); 49924 49925 boolean present_io = true && (isSetIo()); 49926 builder.append(present_io); 49927 if (present_io) 49928 builder.append(io); 49929 49930 boolean present_ia = true && (isSetIa()); 49931 builder.append(present_ia); 49932 if (present_ia) 49933 builder.append(ia); 49934 49935 return builder.toHashCode(); 49936 } 49937 49938 public int compareTo(scannerGet_result other) { 49939 if (!getClass().equals(other.getClass())) { 49940 return getClass().getName().compareTo(other.getClass().getName()); 49941 } 49942 49943 int lastComparison = 0; 49944 scannerGet_result typedOther = (scannerGet_result)other; 49945 49946 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 49947 if (lastComparison != 0) { 49948 return lastComparison; 49949 } 49950 if (isSetSuccess()) { 49951 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 49952 if (lastComparison != 0) { 49953 return lastComparison; 49954 } 49955 } 49956 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 49957 if (lastComparison != 0) { 49958 return lastComparison; 49959 } 49960 if (isSetIo()) { 49961 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 49962 if (lastComparison != 0) { 49963 return lastComparison; 49964 } 49965 } 49966 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 49967 if (lastComparison != 0) { 49968 return lastComparison; 49969 } 49970 if (isSetIa()) { 49971 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 49972 if (lastComparison != 0) { 49973 return lastComparison; 49974 } 49975 } 49976 return 0; 49977 } 49978 49979 public _Fields fieldForId(int fieldId) { 49980 return _Fields.findByThriftId(fieldId); 49981 } 49982 49983 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 49984 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 49985 } 49986 49987 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 49988 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 49989 } 49990 49991 @Override 49992 public String toString() { 49993 StringBuilder sb = new StringBuilder("scannerGet_result("); 49994 boolean first = true; 49995 49996 sb.append("success:"); 49997 if (this.success == null) { 49998 sb.append("null"); 49999 } else { 50000 sb.append(this.success); 50001 } 50002 first = false; 50003 if (!first) sb.append(", "); 50004 sb.append("io:"); 50005 if (this.io == null) { 50006 sb.append("null"); 50007 } else { 50008 sb.append(this.io); 50009 } 50010 first = false; 50011 if (!first) sb.append(", "); 50012 sb.append("ia:"); 50013 if (this.ia == null) { 50014 sb.append("null"); 50015 } else { 50016 sb.append(this.ia); 50017 } 50018 first = false; 50019 sb.append(")"); 50020 return sb.toString(); 50021 } 50022 50023 public void validate() throws org.apache.thrift.TException { 50024 // check for required fields 50025 } 50026 50027 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 50028 try { 50029 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 50030 } catch (org.apache.thrift.TException te) { 50031 throw new java.io.IOException(te); 50032 } 50033 } 50034 50035 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 50036 try { 50037 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 50038 } catch (org.apache.thrift.TException te) { 50039 throw new java.io.IOException(te); 50040 } 50041 } 50042 50043 private static class scannerGet_resultStandardSchemeFactory implements SchemeFactory { 50044 public scannerGet_resultStandardScheme getScheme() { 50045 return new scannerGet_resultStandardScheme(); 50046 } 50047 } 50048 50049 private static class scannerGet_resultStandardScheme extends StandardScheme<scannerGet_result> { 50050 50051 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_result struct) throws org.apache.thrift.TException { 50052 org.apache.thrift.protocol.TField schemeField; 50053 iprot.readStructBegin(); 50054 while (true) 50055 { 50056 schemeField = iprot.readFieldBegin(); 50057 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 50058 break; 50059 } 50060 switch (schemeField.id) { 50061 case 0: // SUCCESS 50062 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 50063 { 50064 org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); 50065 struct.success = new ArrayList<TRowResult>(_list550.size); 50066 for (int _i551 = 0; _i551 < _list550.size; ++_i551) 50067 { 50068 TRowResult _elem552; // required 50069 _elem552 = new TRowResult(); 50070 _elem552.read(iprot); 50071 struct.success.add(_elem552); 50072 } 50073 iprot.readListEnd(); 50074 } 50075 struct.setSuccessIsSet(true); 50076 } else { 50077 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50078 } 50079 break; 50080 case 1: // IO 50081 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 50082 struct.io = new IOError(); 50083 struct.io.read(iprot); 50084 struct.setIoIsSet(true); 50085 } else { 50086 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50087 } 50088 break; 50089 case 2: // IA 50090 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 50091 struct.ia = new IllegalArgument(); 50092 struct.ia.read(iprot); 50093 struct.setIaIsSet(true); 50094 } else { 50095 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50096 } 50097 break; 50098 default: 50099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50100 } 50101 iprot.readFieldEnd(); 50102 } 50103 iprot.readStructEnd(); 50104 50105 // check for required fields of primitive type, which can't be checked in the validate method 50106 struct.validate(); 50107 } 50108 50109 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_result struct) throws org.apache.thrift.TException { 50110 struct.validate(); 50111 50112 oprot.writeStructBegin(STRUCT_DESC); 50113 if (struct.success != null) { 50114 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 50115 { 50116 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 50117 for (TRowResult _iter553 : struct.success) 50118 { 50119 _iter553.write(oprot); 50120 } 50121 oprot.writeListEnd(); 50122 } 50123 oprot.writeFieldEnd(); 50124 } 50125 if (struct.io != null) { 50126 oprot.writeFieldBegin(IO_FIELD_DESC); 50127 struct.io.write(oprot); 50128 oprot.writeFieldEnd(); 50129 } 50130 if (struct.ia != null) { 50131 oprot.writeFieldBegin(IA_FIELD_DESC); 50132 struct.ia.write(oprot); 50133 oprot.writeFieldEnd(); 50134 } 50135 oprot.writeFieldStop(); 50136 oprot.writeStructEnd(); 50137 } 50138 50139 } 50140 50141 private static class scannerGet_resultTupleSchemeFactory implements SchemeFactory { 50142 public scannerGet_resultTupleScheme getScheme() { 50143 return new scannerGet_resultTupleScheme(); 50144 } 50145 } 50146 50147 private static class scannerGet_resultTupleScheme extends TupleScheme<scannerGet_result> { 50148 50149 @Override 50150 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException { 50151 TTupleProtocol oprot = (TTupleProtocol) prot; 50152 BitSet optionals = new BitSet(); 50153 if (struct.isSetSuccess()) { 50154 optionals.set(0); 50155 } 50156 if (struct.isSetIo()) { 50157 optionals.set(1); 50158 } 50159 if (struct.isSetIa()) { 50160 optionals.set(2); 50161 } 50162 oprot.writeBitSet(optionals, 3); 50163 if (struct.isSetSuccess()) { 50164 { 50165 oprot.writeI32(struct.success.size()); 50166 for (TRowResult _iter554 : struct.success) 50167 { 50168 _iter554.write(oprot); 50169 } 50170 } 50171 } 50172 if (struct.isSetIo()) { 50173 struct.io.write(oprot); 50174 } 50175 if (struct.isSetIa()) { 50176 struct.ia.write(oprot); 50177 } 50178 } 50179 50180 @Override 50181 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException { 50182 TTupleProtocol iprot = (TTupleProtocol) prot; 50183 BitSet incoming = iprot.readBitSet(3); 50184 if (incoming.get(0)) { 50185 { 50186 org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 50187 struct.success = new ArrayList<TRowResult>(_list555.size); 50188 for (int _i556 = 0; _i556 < _list555.size; ++_i556) 50189 { 50190 TRowResult _elem557; // required 50191 _elem557 = new TRowResult(); 50192 _elem557.read(iprot); 50193 struct.success.add(_elem557); 50194 } 50195 } 50196 struct.setSuccessIsSet(true); 50197 } 50198 if (incoming.get(1)) { 50199 struct.io = new IOError(); 50200 struct.io.read(iprot); 50201 struct.setIoIsSet(true); 50202 } 50203 if (incoming.get(2)) { 50204 struct.ia = new IllegalArgument(); 50205 struct.ia.read(iprot); 50206 struct.setIaIsSet(true); 50207 } 50208 } 50209 } 50210 50211 } 50212 50213 public static class scannerGetList_args implements org.apache.thrift.TBase<scannerGetList_args, scannerGetList_args._Fields>, java.io.Serializable, Cloneable { 50214 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_args"); 50215 50216 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); 50217 private static final org.apache.thrift.protocol.TField NB_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("nbRows", org.apache.thrift.protocol.TType.I32, (short)2); 50218 50219 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 50220 static { 50221 schemes.put(StandardScheme.class, new scannerGetList_argsStandardSchemeFactory()); 50222 schemes.put(TupleScheme.class, new scannerGetList_argsTupleSchemeFactory()); 50223 } 50224 50225 /** 50226 * id of a scanner returned by scannerOpen 50227 */ 50228 public int id; // required 50229 /** 50230 * number of results to return 50231 */ 50232 public int nbRows; // required 50233 50234 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 50235 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 50236 /** 50237 * id of a scanner returned by scannerOpen 50238 */ 50239 ID((short)1, "id"), 50240 /** 50241 * number of results to return 50242 */ 50243 NB_ROWS((short)2, "nbRows"); 50244 50245 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 50246 50247 static { 50248 for (_Fields field : EnumSet.allOf(_Fields.class)) { 50249 byName.put(field.getFieldName(), field); 50250 } 50251 } 50252 50253 /** 50254 * Find the _Fields constant that matches fieldId, or null if its not found. 50255 */ 50256 public static _Fields findByThriftId(int fieldId) { 50257 switch(fieldId) { 50258 case 1: // ID 50259 return ID; 50260 case 2: // NB_ROWS 50261 return NB_ROWS; 50262 default: 50263 return null; 50264 } 50265 } 50266 50267 /** 50268 * Find the _Fields constant that matches fieldId, throwing an exception 50269 * if it is not found. 50270 */ 50271 public static _Fields findByThriftIdOrThrow(int fieldId) { 50272 _Fields fields = findByThriftId(fieldId); 50273 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 50274 return fields; 50275 } 50276 50277 /** 50278 * Find the _Fields constant that matches name, or null if its not found. 50279 */ 50280 public static _Fields findByName(String name) { 50281 return byName.get(name); 50282 } 50283 50284 private final short _thriftId; 50285 private final String _fieldName; 50286 50287 _Fields(short thriftId, String fieldName) { 50288 _thriftId = thriftId; 50289 _fieldName = fieldName; 50290 } 50291 50292 public short getThriftFieldId() { 50293 return _thriftId; 50294 } 50295 50296 public String getFieldName() { 50297 return _fieldName; 50298 } 50299 } 50300 50301 // isset id assignments 50302 private static final int __ID_ISSET_ID = 0; 50303 private static final int __NBROWS_ISSET_ID = 1; 50304 private BitSet __isset_bit_vector = new BitSet(2); 50305 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 50306 static { 50307 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 50308 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 50309 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 50310 tmpMap.put(_Fields.NB_ROWS, new org.apache.thrift.meta_data.FieldMetaData("nbRows", org.apache.thrift.TFieldRequirementType.DEFAULT, 50311 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 50312 metaDataMap = Collections.unmodifiableMap(tmpMap); 50313 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_args.class, metaDataMap); 50314 } 50315 50316 public scannerGetList_args() { 50317 } 50318 50319 public scannerGetList_args( 50320 int id, 50321 int nbRows) 50322 { 50323 this(); 50324 this.id = id; 50325 setIdIsSet(true); 50326 this.nbRows = nbRows; 50327 setNbRowsIsSet(true); 50328 } 50329 50330 /** 50331 * Performs a deep copy on <i>other</i>. 50332 */ 50333 public scannerGetList_args(scannerGetList_args other) { 50334 __isset_bit_vector.clear(); 50335 __isset_bit_vector.or(other.__isset_bit_vector); 50336 this.id = other.id; 50337 this.nbRows = other.nbRows; 50338 } 50339 50340 public scannerGetList_args deepCopy() { 50341 return new scannerGetList_args(this); 50342 } 50343 50344 @Override 50345 public void clear() { 50346 setIdIsSet(false); 50347 this.id = 0; 50348 setNbRowsIsSet(false); 50349 this.nbRows = 0; 50350 } 50351 50352 /** 50353 * id of a scanner returned by scannerOpen 50354 */ 50355 public int getId() { 50356 return this.id; 50357 } 50358 50359 /** 50360 * id of a scanner returned by scannerOpen 50361 */ 50362 public scannerGetList_args setId(int id) { 50363 this.id = id; 50364 setIdIsSet(true); 50365 return this; 50366 } 50367 50368 public void unsetId() { 50369 __isset_bit_vector.clear(__ID_ISSET_ID); 50370 } 50371 50372 /** Returns true if field id is set (has been assigned a value) and false otherwise */ 50373 public boolean isSetId() { 50374 return __isset_bit_vector.get(__ID_ISSET_ID); 50375 } 50376 50377 public void setIdIsSet(boolean value) { 50378 __isset_bit_vector.set(__ID_ISSET_ID, value); 50379 } 50380 50381 /** 50382 * number of results to return 50383 */ 50384 public int getNbRows() { 50385 return this.nbRows; 50386 } 50387 50388 /** 50389 * number of results to return 50390 */ 50391 public scannerGetList_args setNbRows(int nbRows) { 50392 this.nbRows = nbRows; 50393 setNbRowsIsSet(true); 50394 return this; 50395 } 50396 50397 public void unsetNbRows() { 50398 __isset_bit_vector.clear(__NBROWS_ISSET_ID); 50399 } 50400 50401 /** Returns true if field nbRows is set (has been assigned a value) and false otherwise */ 50402 public boolean isSetNbRows() { 50403 return __isset_bit_vector.get(__NBROWS_ISSET_ID); 50404 } 50405 50406 public void setNbRowsIsSet(boolean value) { 50407 __isset_bit_vector.set(__NBROWS_ISSET_ID, value); 50408 } 50409 50410 public void setFieldValue(_Fields field, Object value) { 50411 switch (field) { 50412 case ID: 50413 if (value == null) { 50414 unsetId(); 50415 } else { 50416 setId((Integer)value); 50417 } 50418 break; 50419 50420 case NB_ROWS: 50421 if (value == null) { 50422 unsetNbRows(); 50423 } else { 50424 setNbRows((Integer)value); 50425 } 50426 break; 50427 50428 } 50429 } 50430 50431 public Object getFieldValue(_Fields field) { 50432 switch (field) { 50433 case ID: 50434 return Integer.valueOf(getId()); 50435 50436 case NB_ROWS: 50437 return Integer.valueOf(getNbRows()); 50438 50439 } 50440 throw new IllegalStateException(); 50441 } 50442 50443 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 50444 public boolean isSet(_Fields field) { 50445 if (field == null) { 50446 throw new IllegalArgumentException(); 50447 } 50448 50449 switch (field) { 50450 case ID: 50451 return isSetId(); 50452 case NB_ROWS: 50453 return isSetNbRows(); 50454 } 50455 throw new IllegalStateException(); 50456 } 50457 50458 @Override 50459 public boolean equals(Object that) { 50460 if (that == null) 50461 return false; 50462 if (that instanceof scannerGetList_args) 50463 return this.equals((scannerGetList_args)that); 50464 return false; 50465 } 50466 50467 public boolean equals(scannerGetList_args that) { 50468 if (that == null) 50469 return false; 50470 50471 boolean this_present_id = true; 50472 boolean that_present_id = true; 50473 if (this_present_id || that_present_id) { 50474 if (!(this_present_id && that_present_id)) 50475 return false; 50476 if (this.id != that.id) 50477 return false; 50478 } 50479 50480 boolean this_present_nbRows = true; 50481 boolean that_present_nbRows = true; 50482 if (this_present_nbRows || that_present_nbRows) { 50483 if (!(this_present_nbRows && that_present_nbRows)) 50484 return false; 50485 if (this.nbRows != that.nbRows) 50486 return false; 50487 } 50488 50489 return true; 50490 } 50491 50492 @Override 50493 public int hashCode() { 50494 HashCodeBuilder builder = new HashCodeBuilder(); 50495 50496 boolean present_id = true; 50497 builder.append(present_id); 50498 if (present_id) 50499 builder.append(id); 50500 50501 boolean present_nbRows = true; 50502 builder.append(present_nbRows); 50503 if (present_nbRows) 50504 builder.append(nbRows); 50505 50506 return builder.toHashCode(); 50507 } 50508 50509 public int compareTo(scannerGetList_args other) { 50510 if (!getClass().equals(other.getClass())) { 50511 return getClass().getName().compareTo(other.getClass().getName()); 50512 } 50513 50514 int lastComparison = 0; 50515 scannerGetList_args typedOther = (scannerGetList_args)other; 50516 50517 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); 50518 if (lastComparison != 0) { 50519 return lastComparison; 50520 } 50521 if (isSetId()) { 50522 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); 50523 if (lastComparison != 0) { 50524 return lastComparison; 50525 } 50526 } 50527 lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(typedOther.isSetNbRows()); 50528 if (lastComparison != 0) { 50529 return lastComparison; 50530 } 50531 if (isSetNbRows()) { 50532 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nbRows, typedOther.nbRows); 50533 if (lastComparison != 0) { 50534 return lastComparison; 50535 } 50536 } 50537 return 0; 50538 } 50539 50540 public _Fields fieldForId(int fieldId) { 50541 return _Fields.findByThriftId(fieldId); 50542 } 50543 50544 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 50545 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 50546 } 50547 50548 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 50549 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 50550 } 50551 50552 @Override 50553 public String toString() { 50554 StringBuilder sb = new StringBuilder("scannerGetList_args("); 50555 boolean first = true; 50556 50557 sb.append("id:"); 50558 sb.append(this.id); 50559 first = false; 50560 if (!first) sb.append(", "); 50561 sb.append("nbRows:"); 50562 sb.append(this.nbRows); 50563 first = false; 50564 sb.append(")"); 50565 return sb.toString(); 50566 } 50567 50568 public void validate() throws org.apache.thrift.TException { 50569 // check for required fields 50570 } 50571 50572 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 50573 try { 50574 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 50575 } catch (org.apache.thrift.TException te) { 50576 throw new java.io.IOException(te); 50577 } 50578 } 50579 50580 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 50581 try { 50582 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 50583 __isset_bit_vector = new BitSet(1); 50584 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 50585 } catch (org.apache.thrift.TException te) { 50586 throw new java.io.IOException(te); 50587 } 50588 } 50589 50590 private static class scannerGetList_argsStandardSchemeFactory implements SchemeFactory { 50591 public scannerGetList_argsStandardScheme getScheme() { 50592 return new scannerGetList_argsStandardScheme(); 50593 } 50594 } 50595 50596 private static class scannerGetList_argsStandardScheme extends StandardScheme<scannerGetList_args> { 50597 50598 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_args struct) throws org.apache.thrift.TException { 50599 org.apache.thrift.protocol.TField schemeField; 50600 iprot.readStructBegin(); 50601 while (true) 50602 { 50603 schemeField = iprot.readFieldBegin(); 50604 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 50605 break; 50606 } 50607 switch (schemeField.id) { 50608 case 1: // ID 50609 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 50610 struct.id = iprot.readI32(); 50611 struct.setIdIsSet(true); 50612 } else { 50613 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50614 } 50615 break; 50616 case 2: // NB_ROWS 50617 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 50618 struct.nbRows = iprot.readI32(); 50619 struct.setNbRowsIsSet(true); 50620 } else { 50621 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50622 } 50623 break; 50624 default: 50625 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 50626 } 50627 iprot.readFieldEnd(); 50628 } 50629 iprot.readStructEnd(); 50630 50631 // check for required fields of primitive type, which can't be checked in the validate method 50632 struct.validate(); 50633 } 50634 50635 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_args struct) throws org.apache.thrift.TException { 50636 struct.validate(); 50637 50638 oprot.writeStructBegin(STRUCT_DESC); 50639 oprot.writeFieldBegin(ID_FIELD_DESC); 50640 oprot.writeI32(struct.id); 50641 oprot.writeFieldEnd(); 50642 oprot.writeFieldBegin(NB_ROWS_FIELD_DESC); 50643 oprot.writeI32(struct.nbRows); 50644 oprot.writeFieldEnd(); 50645 oprot.writeFieldStop(); 50646 oprot.writeStructEnd(); 50647 } 50648 50649 } 50650 50651 private static class scannerGetList_argsTupleSchemeFactory implements SchemeFactory { 50652 public scannerGetList_argsTupleScheme getScheme() { 50653 return new scannerGetList_argsTupleScheme(); 50654 } 50655 } 50656 50657 private static class scannerGetList_argsTupleScheme extends TupleScheme<scannerGetList_args> { 50658 50659 @Override 50660 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException { 50661 TTupleProtocol oprot = (TTupleProtocol) prot; 50662 BitSet optionals = new BitSet(); 50663 if (struct.isSetId()) { 50664 optionals.set(0); 50665 } 50666 if (struct.isSetNbRows()) { 50667 optionals.set(1); 50668 } 50669 oprot.writeBitSet(optionals, 2); 50670 if (struct.isSetId()) { 50671 oprot.writeI32(struct.id); 50672 } 50673 if (struct.isSetNbRows()) { 50674 oprot.writeI32(struct.nbRows); 50675 } 50676 } 50677 50678 @Override 50679 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException { 50680 TTupleProtocol iprot = (TTupleProtocol) prot; 50681 BitSet incoming = iprot.readBitSet(2); 50682 if (incoming.get(0)) { 50683 struct.id = iprot.readI32(); 50684 struct.setIdIsSet(true); 50685 } 50686 if (incoming.get(1)) { 50687 struct.nbRows = iprot.readI32(); 50688 struct.setNbRowsIsSet(true); 50689 } 50690 } 50691 } 50692 50693 } 50694 50695 public static class scannerGetList_result implements org.apache.thrift.TBase<scannerGetList_result, scannerGetList_result._Fields>, java.io.Serializable, Cloneable { 50696 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_result"); 50697 50698 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 50699 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 50700 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 50701 50702 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 50703 static { 50704 schemes.put(StandardScheme.class, new scannerGetList_resultStandardSchemeFactory()); 50705 schemes.put(TupleScheme.class, new scannerGetList_resultTupleSchemeFactory()); 50706 } 50707 50708 public List<TRowResult> success; // required 50709 public IOError io; // required 50710 public IllegalArgument ia; // required 50711 50712 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 50713 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 50714 SUCCESS((short)0, "success"), 50715 IO((short)1, "io"), 50716 IA((short)2, "ia"); 50717 50718 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 50719 50720 static { 50721 for (_Fields field : EnumSet.allOf(_Fields.class)) { 50722 byName.put(field.getFieldName(), field); 50723 } 50724 } 50725 50726 /** 50727 * Find the _Fields constant that matches fieldId, or null if its not found. 50728 */ 50729 public static _Fields findByThriftId(int fieldId) { 50730 switch(fieldId) { 50731 case 0: // SUCCESS 50732 return SUCCESS; 50733 case 1: // IO 50734 return IO; 50735 case 2: // IA 50736 return IA; 50737 default: 50738 return null; 50739 } 50740 } 50741 50742 /** 50743 * Find the _Fields constant that matches fieldId, throwing an exception 50744 * if it is not found. 50745 */ 50746 public static _Fields findByThriftIdOrThrow(int fieldId) { 50747 _Fields fields = findByThriftId(fieldId); 50748 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 50749 return fields; 50750 } 50751 50752 /** 50753 * Find the _Fields constant that matches name, or null if its not found. 50754 */ 50755 public static _Fields findByName(String name) { 50756 return byName.get(name); 50757 } 50758 50759 private final short _thriftId; 50760 private final String _fieldName; 50761 50762 _Fields(short thriftId, String fieldName) { 50763 _thriftId = thriftId; 50764 _fieldName = fieldName; 50765 } 50766 50767 public short getThriftFieldId() { 50768 return _thriftId; 50769 } 50770 50771 public String getFieldName() { 50772 return _fieldName; 50773 } 50774 } 50775 50776 // isset id assignments 50777 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 50778 static { 50779 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 50780 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 50781 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 50782 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class)))); 50783 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 50784 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 50785 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 50786 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 50787 metaDataMap = Collections.unmodifiableMap(tmpMap); 50788 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_result.class, metaDataMap); 50789 } 50790 50791 public scannerGetList_result() { 50792 } 50793 50794 public scannerGetList_result( 50795 List<TRowResult> success, 50796 IOError io, 50797 IllegalArgument ia) 50798 { 50799 this(); 50800 this.success = success; 50801 this.io = io; 50802 this.ia = ia; 50803 } 50804 50805 /** 50806 * Performs a deep copy on <i>other</i>. 50807 */ 50808 public scannerGetList_result(scannerGetList_result other) { 50809 if (other.isSetSuccess()) { 50810 List<TRowResult> __this__success = new ArrayList<TRowResult>(); 50811 for (TRowResult other_element : other.success) { 50812 __this__success.add(new TRowResult(other_element)); 50813 } 50814 this.success = __this__success; 50815 } 50816 if (other.isSetIo()) { 50817 this.io = new IOError(other.io); 50818 } 50819 if (other.isSetIa()) { 50820 this.ia = new IllegalArgument(other.ia); 50821 } 50822 } 50823 50824 public scannerGetList_result deepCopy() { 50825 return new scannerGetList_result(this); 50826 } 50827 50828 @Override 50829 public void clear() { 50830 this.success = null; 50831 this.io = null; 50832 this.ia = null; 50833 } 50834 50835 public int getSuccessSize() { 50836 return (this.success == null) ? 0 : this.success.size(); 50837 } 50838 50839 public java.util.Iterator<TRowResult> getSuccessIterator() { 50840 return (this.success == null) ? null : this.success.iterator(); 50841 } 50842 50843 public void addToSuccess(TRowResult elem) { 50844 if (this.success == null) { 50845 this.success = new ArrayList<TRowResult>(); 50846 } 50847 this.success.add(elem); 50848 } 50849 50850 public List<TRowResult> getSuccess() { 50851 return this.success; 50852 } 50853 50854 public scannerGetList_result setSuccess(List<TRowResult> success) { 50855 this.success = success; 50856 return this; 50857 } 50858 50859 public void unsetSuccess() { 50860 this.success = null; 50861 } 50862 50863 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 50864 public boolean isSetSuccess() { 50865 return this.success != null; 50866 } 50867 50868 public void setSuccessIsSet(boolean value) { 50869 if (!value) { 50870 this.success = null; 50871 } 50872 } 50873 50874 public IOError getIo() { 50875 return this.io; 50876 } 50877 50878 public scannerGetList_result setIo(IOError io) { 50879 this.io = io; 50880 return this; 50881 } 50882 50883 public void unsetIo() { 50884 this.io = null; 50885 } 50886 50887 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 50888 public boolean isSetIo() { 50889 return this.io != null; 50890 } 50891 50892 public void setIoIsSet(boolean value) { 50893 if (!value) { 50894 this.io = null; 50895 } 50896 } 50897 50898 public IllegalArgument getIa() { 50899 return this.ia; 50900 } 50901 50902 public scannerGetList_result setIa(IllegalArgument ia) { 50903 this.ia = ia; 50904 return this; 50905 } 50906 50907 public void unsetIa() { 50908 this.ia = null; 50909 } 50910 50911 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 50912 public boolean isSetIa() { 50913 return this.ia != null; 50914 } 50915 50916 public void setIaIsSet(boolean value) { 50917 if (!value) { 50918 this.ia = null; 50919 } 50920 } 50921 50922 public void setFieldValue(_Fields field, Object value) { 50923 switch (field) { 50924 case SUCCESS: 50925 if (value == null) { 50926 unsetSuccess(); 50927 } else { 50928 setSuccess((List<TRowResult>)value); 50929 } 50930 break; 50931 50932 case IO: 50933 if (value == null) { 50934 unsetIo(); 50935 } else { 50936 setIo((IOError)value); 50937 } 50938 break; 50939 50940 case IA: 50941 if (value == null) { 50942 unsetIa(); 50943 } else { 50944 setIa((IllegalArgument)value); 50945 } 50946 break; 50947 50948 } 50949 } 50950 50951 public Object getFieldValue(_Fields field) { 50952 switch (field) { 50953 case SUCCESS: 50954 return getSuccess(); 50955 50956 case IO: 50957 return getIo(); 50958 50959 case IA: 50960 return getIa(); 50961 50962 } 50963 throw new IllegalStateException(); 50964 } 50965 50966 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 50967 public boolean isSet(_Fields field) { 50968 if (field == null) { 50969 throw new IllegalArgumentException(); 50970 } 50971 50972 switch (field) { 50973 case SUCCESS: 50974 return isSetSuccess(); 50975 case IO: 50976 return isSetIo(); 50977 case IA: 50978 return isSetIa(); 50979 } 50980 throw new IllegalStateException(); 50981 } 50982 50983 @Override 50984 public boolean equals(Object that) { 50985 if (that == null) 50986 return false; 50987 if (that instanceof scannerGetList_result) 50988 return this.equals((scannerGetList_result)that); 50989 return false; 50990 } 50991 50992 public boolean equals(scannerGetList_result that) { 50993 if (that == null) 50994 return false; 50995 50996 boolean this_present_success = true && this.isSetSuccess(); 50997 boolean that_present_success = true && that.isSetSuccess(); 50998 if (this_present_success || that_present_success) { 50999 if (!(this_present_success && that_present_success)) 51000 return false; 51001 if (!this.success.equals(that.success)) 51002 return false; 51003 } 51004 51005 boolean this_present_io = true && this.isSetIo(); 51006 boolean that_present_io = true && that.isSetIo(); 51007 if (this_present_io || that_present_io) { 51008 if (!(this_present_io && that_present_io)) 51009 return false; 51010 if (!this.io.equals(that.io)) 51011 return false; 51012 } 51013 51014 boolean this_present_ia = true && this.isSetIa(); 51015 boolean that_present_ia = true && that.isSetIa(); 51016 if (this_present_ia || that_present_ia) { 51017 if (!(this_present_ia && that_present_ia)) 51018 return false; 51019 if (!this.ia.equals(that.ia)) 51020 return false; 51021 } 51022 51023 return true; 51024 } 51025 51026 @Override 51027 public int hashCode() { 51028 HashCodeBuilder builder = new HashCodeBuilder(); 51029 51030 boolean present_success = true && (isSetSuccess()); 51031 builder.append(present_success); 51032 if (present_success) 51033 builder.append(success); 51034 51035 boolean present_io = true && (isSetIo()); 51036 builder.append(present_io); 51037 if (present_io) 51038 builder.append(io); 51039 51040 boolean present_ia = true && (isSetIa()); 51041 builder.append(present_ia); 51042 if (present_ia) 51043 builder.append(ia); 51044 51045 return builder.toHashCode(); 51046 } 51047 51048 public int compareTo(scannerGetList_result other) { 51049 if (!getClass().equals(other.getClass())) { 51050 return getClass().getName().compareTo(other.getClass().getName()); 51051 } 51052 51053 int lastComparison = 0; 51054 scannerGetList_result typedOther = (scannerGetList_result)other; 51055 51056 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 51057 if (lastComparison != 0) { 51058 return lastComparison; 51059 } 51060 if (isSetSuccess()) { 51061 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 51062 if (lastComparison != 0) { 51063 return lastComparison; 51064 } 51065 } 51066 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 51067 if (lastComparison != 0) { 51068 return lastComparison; 51069 } 51070 if (isSetIo()) { 51071 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 51072 if (lastComparison != 0) { 51073 return lastComparison; 51074 } 51075 } 51076 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 51077 if (lastComparison != 0) { 51078 return lastComparison; 51079 } 51080 if (isSetIa()) { 51081 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 51082 if (lastComparison != 0) { 51083 return lastComparison; 51084 } 51085 } 51086 return 0; 51087 } 51088 51089 public _Fields fieldForId(int fieldId) { 51090 return _Fields.findByThriftId(fieldId); 51091 } 51092 51093 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 51094 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 51095 } 51096 51097 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 51098 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 51099 } 51100 51101 @Override 51102 public String toString() { 51103 StringBuilder sb = new StringBuilder("scannerGetList_result("); 51104 boolean first = true; 51105 51106 sb.append("success:"); 51107 if (this.success == null) { 51108 sb.append("null"); 51109 } else { 51110 sb.append(this.success); 51111 } 51112 first = false; 51113 if (!first) sb.append(", "); 51114 sb.append("io:"); 51115 if (this.io == null) { 51116 sb.append("null"); 51117 } else { 51118 sb.append(this.io); 51119 } 51120 first = false; 51121 if (!first) sb.append(", "); 51122 sb.append("ia:"); 51123 if (this.ia == null) { 51124 sb.append("null"); 51125 } else { 51126 sb.append(this.ia); 51127 } 51128 first = false; 51129 sb.append(")"); 51130 return sb.toString(); 51131 } 51132 51133 public void validate() throws org.apache.thrift.TException { 51134 // check for required fields 51135 } 51136 51137 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 51138 try { 51139 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 51140 } catch (org.apache.thrift.TException te) { 51141 throw new java.io.IOException(te); 51142 } 51143 } 51144 51145 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 51146 try { 51147 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 51148 } catch (org.apache.thrift.TException te) { 51149 throw new java.io.IOException(te); 51150 } 51151 } 51152 51153 private static class scannerGetList_resultStandardSchemeFactory implements SchemeFactory { 51154 public scannerGetList_resultStandardScheme getScheme() { 51155 return new scannerGetList_resultStandardScheme(); 51156 } 51157 } 51158 51159 private static class scannerGetList_resultStandardScheme extends StandardScheme<scannerGetList_result> { 51160 51161 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_result struct) throws org.apache.thrift.TException { 51162 org.apache.thrift.protocol.TField schemeField; 51163 iprot.readStructBegin(); 51164 while (true) 51165 { 51166 schemeField = iprot.readFieldBegin(); 51167 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 51168 break; 51169 } 51170 switch (schemeField.id) { 51171 case 0: // SUCCESS 51172 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 51173 { 51174 org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); 51175 struct.success = new ArrayList<TRowResult>(_list558.size); 51176 for (int _i559 = 0; _i559 < _list558.size; ++_i559) 51177 { 51178 TRowResult _elem560; // required 51179 _elem560 = new TRowResult(); 51180 _elem560.read(iprot); 51181 struct.success.add(_elem560); 51182 } 51183 iprot.readListEnd(); 51184 } 51185 struct.setSuccessIsSet(true); 51186 } else { 51187 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51188 } 51189 break; 51190 case 1: // IO 51191 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 51192 struct.io = new IOError(); 51193 struct.io.read(iprot); 51194 struct.setIoIsSet(true); 51195 } else { 51196 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51197 } 51198 break; 51199 case 2: // IA 51200 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 51201 struct.ia = new IllegalArgument(); 51202 struct.ia.read(iprot); 51203 struct.setIaIsSet(true); 51204 } else { 51205 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51206 } 51207 break; 51208 default: 51209 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51210 } 51211 iprot.readFieldEnd(); 51212 } 51213 iprot.readStructEnd(); 51214 51215 // check for required fields of primitive type, which can't be checked in the validate method 51216 struct.validate(); 51217 } 51218 51219 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_result struct) throws org.apache.thrift.TException { 51220 struct.validate(); 51221 51222 oprot.writeStructBegin(STRUCT_DESC); 51223 if (struct.success != null) { 51224 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 51225 { 51226 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 51227 for (TRowResult _iter561 : struct.success) 51228 { 51229 _iter561.write(oprot); 51230 } 51231 oprot.writeListEnd(); 51232 } 51233 oprot.writeFieldEnd(); 51234 } 51235 if (struct.io != null) { 51236 oprot.writeFieldBegin(IO_FIELD_DESC); 51237 struct.io.write(oprot); 51238 oprot.writeFieldEnd(); 51239 } 51240 if (struct.ia != null) { 51241 oprot.writeFieldBegin(IA_FIELD_DESC); 51242 struct.ia.write(oprot); 51243 oprot.writeFieldEnd(); 51244 } 51245 oprot.writeFieldStop(); 51246 oprot.writeStructEnd(); 51247 } 51248 51249 } 51250 51251 private static class scannerGetList_resultTupleSchemeFactory implements SchemeFactory { 51252 public scannerGetList_resultTupleScheme getScheme() { 51253 return new scannerGetList_resultTupleScheme(); 51254 } 51255 } 51256 51257 private static class scannerGetList_resultTupleScheme extends TupleScheme<scannerGetList_result> { 51258 51259 @Override 51260 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException { 51261 TTupleProtocol oprot = (TTupleProtocol) prot; 51262 BitSet optionals = new BitSet(); 51263 if (struct.isSetSuccess()) { 51264 optionals.set(0); 51265 } 51266 if (struct.isSetIo()) { 51267 optionals.set(1); 51268 } 51269 if (struct.isSetIa()) { 51270 optionals.set(2); 51271 } 51272 oprot.writeBitSet(optionals, 3); 51273 if (struct.isSetSuccess()) { 51274 { 51275 oprot.writeI32(struct.success.size()); 51276 for (TRowResult _iter562 : struct.success) 51277 { 51278 _iter562.write(oprot); 51279 } 51280 } 51281 } 51282 if (struct.isSetIo()) { 51283 struct.io.write(oprot); 51284 } 51285 if (struct.isSetIa()) { 51286 struct.ia.write(oprot); 51287 } 51288 } 51289 51290 @Override 51291 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException { 51292 TTupleProtocol iprot = (TTupleProtocol) prot; 51293 BitSet incoming = iprot.readBitSet(3); 51294 if (incoming.get(0)) { 51295 { 51296 org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 51297 struct.success = new ArrayList<TRowResult>(_list563.size); 51298 for (int _i564 = 0; _i564 < _list563.size; ++_i564) 51299 { 51300 TRowResult _elem565; // required 51301 _elem565 = new TRowResult(); 51302 _elem565.read(iprot); 51303 struct.success.add(_elem565); 51304 } 51305 } 51306 struct.setSuccessIsSet(true); 51307 } 51308 if (incoming.get(1)) { 51309 struct.io = new IOError(); 51310 struct.io.read(iprot); 51311 struct.setIoIsSet(true); 51312 } 51313 if (incoming.get(2)) { 51314 struct.ia = new IllegalArgument(); 51315 struct.ia.read(iprot); 51316 struct.setIaIsSet(true); 51317 } 51318 } 51319 } 51320 51321 } 51322 51323 public static class scannerClose_args implements org.apache.thrift.TBase<scannerClose_args, scannerClose_args._Fields>, java.io.Serializable, Cloneable { 51324 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_args"); 51325 51326 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1); 51327 51328 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 51329 static { 51330 schemes.put(StandardScheme.class, new scannerClose_argsStandardSchemeFactory()); 51331 schemes.put(TupleScheme.class, new scannerClose_argsTupleSchemeFactory()); 51332 } 51333 51334 /** 51335 * id of a scanner returned by scannerOpen 51336 */ 51337 public int id; // required 51338 51339 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 51340 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 51341 /** 51342 * id of a scanner returned by scannerOpen 51343 */ 51344 ID((short)1, "id"); 51345 51346 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 51347 51348 static { 51349 for (_Fields field : EnumSet.allOf(_Fields.class)) { 51350 byName.put(field.getFieldName(), field); 51351 } 51352 } 51353 51354 /** 51355 * Find the _Fields constant that matches fieldId, or null if its not found. 51356 */ 51357 public static _Fields findByThriftId(int fieldId) { 51358 switch(fieldId) { 51359 case 1: // ID 51360 return ID; 51361 default: 51362 return null; 51363 } 51364 } 51365 51366 /** 51367 * Find the _Fields constant that matches fieldId, throwing an exception 51368 * if it is not found. 51369 */ 51370 public static _Fields findByThriftIdOrThrow(int fieldId) { 51371 _Fields fields = findByThriftId(fieldId); 51372 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 51373 return fields; 51374 } 51375 51376 /** 51377 * Find the _Fields constant that matches name, or null if its not found. 51378 */ 51379 public static _Fields findByName(String name) { 51380 return byName.get(name); 51381 } 51382 51383 private final short _thriftId; 51384 private final String _fieldName; 51385 51386 _Fields(short thriftId, String fieldName) { 51387 _thriftId = thriftId; 51388 _fieldName = fieldName; 51389 } 51390 51391 public short getThriftFieldId() { 51392 return _thriftId; 51393 } 51394 51395 public String getFieldName() { 51396 return _fieldName; 51397 } 51398 } 51399 51400 // isset id assignments 51401 private static final int __ID_ISSET_ID = 0; 51402 private BitSet __isset_bit_vector = new BitSet(1); 51403 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 51404 static { 51405 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 51406 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 51407 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID"))); 51408 metaDataMap = Collections.unmodifiableMap(tmpMap); 51409 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_args.class, metaDataMap); 51410 } 51411 51412 public scannerClose_args() { 51413 } 51414 51415 public scannerClose_args( 51416 int id) 51417 { 51418 this(); 51419 this.id = id; 51420 setIdIsSet(true); 51421 } 51422 51423 /** 51424 * Performs a deep copy on <i>other</i>. 51425 */ 51426 public scannerClose_args(scannerClose_args other) { 51427 __isset_bit_vector.clear(); 51428 __isset_bit_vector.or(other.__isset_bit_vector); 51429 this.id = other.id; 51430 } 51431 51432 public scannerClose_args deepCopy() { 51433 return new scannerClose_args(this); 51434 } 51435 51436 @Override 51437 public void clear() { 51438 setIdIsSet(false); 51439 this.id = 0; 51440 } 51441 51442 /** 51443 * id of a scanner returned by scannerOpen 51444 */ 51445 public int getId() { 51446 return this.id; 51447 } 51448 51449 /** 51450 * id of a scanner returned by scannerOpen 51451 */ 51452 public scannerClose_args setId(int id) { 51453 this.id = id; 51454 setIdIsSet(true); 51455 return this; 51456 } 51457 51458 public void unsetId() { 51459 __isset_bit_vector.clear(__ID_ISSET_ID); 51460 } 51461 51462 /** Returns true if field id is set (has been assigned a value) and false otherwise */ 51463 public boolean isSetId() { 51464 return __isset_bit_vector.get(__ID_ISSET_ID); 51465 } 51466 51467 public void setIdIsSet(boolean value) { 51468 __isset_bit_vector.set(__ID_ISSET_ID, value); 51469 } 51470 51471 public void setFieldValue(_Fields field, Object value) { 51472 switch (field) { 51473 case ID: 51474 if (value == null) { 51475 unsetId(); 51476 } else { 51477 setId((Integer)value); 51478 } 51479 break; 51480 51481 } 51482 } 51483 51484 public Object getFieldValue(_Fields field) { 51485 switch (field) { 51486 case ID: 51487 return Integer.valueOf(getId()); 51488 51489 } 51490 throw new IllegalStateException(); 51491 } 51492 51493 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 51494 public boolean isSet(_Fields field) { 51495 if (field == null) { 51496 throw new IllegalArgumentException(); 51497 } 51498 51499 switch (field) { 51500 case ID: 51501 return isSetId(); 51502 } 51503 throw new IllegalStateException(); 51504 } 51505 51506 @Override 51507 public boolean equals(Object that) { 51508 if (that == null) 51509 return false; 51510 if (that instanceof scannerClose_args) 51511 return this.equals((scannerClose_args)that); 51512 return false; 51513 } 51514 51515 public boolean equals(scannerClose_args that) { 51516 if (that == null) 51517 return false; 51518 51519 boolean this_present_id = true; 51520 boolean that_present_id = true; 51521 if (this_present_id || that_present_id) { 51522 if (!(this_present_id && that_present_id)) 51523 return false; 51524 if (this.id != that.id) 51525 return false; 51526 } 51527 51528 return true; 51529 } 51530 51531 @Override 51532 public int hashCode() { 51533 HashCodeBuilder builder = new HashCodeBuilder(); 51534 51535 boolean present_id = true; 51536 builder.append(present_id); 51537 if (present_id) 51538 builder.append(id); 51539 51540 return builder.toHashCode(); 51541 } 51542 51543 public int compareTo(scannerClose_args other) { 51544 if (!getClass().equals(other.getClass())) { 51545 return getClass().getName().compareTo(other.getClass().getName()); 51546 } 51547 51548 int lastComparison = 0; 51549 scannerClose_args typedOther = (scannerClose_args)other; 51550 51551 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); 51552 if (lastComparison != 0) { 51553 return lastComparison; 51554 } 51555 if (isSetId()) { 51556 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); 51557 if (lastComparison != 0) { 51558 return lastComparison; 51559 } 51560 } 51561 return 0; 51562 } 51563 51564 public _Fields fieldForId(int fieldId) { 51565 return _Fields.findByThriftId(fieldId); 51566 } 51567 51568 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 51569 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 51570 } 51571 51572 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 51573 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 51574 } 51575 51576 @Override 51577 public String toString() { 51578 StringBuilder sb = new StringBuilder("scannerClose_args("); 51579 boolean first = true; 51580 51581 sb.append("id:"); 51582 sb.append(this.id); 51583 first = false; 51584 sb.append(")"); 51585 return sb.toString(); 51586 } 51587 51588 public void validate() throws org.apache.thrift.TException { 51589 // check for required fields 51590 } 51591 51592 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 51593 try { 51594 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 51595 } catch (org.apache.thrift.TException te) { 51596 throw new java.io.IOException(te); 51597 } 51598 } 51599 51600 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 51601 try { 51602 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 51603 __isset_bit_vector = new BitSet(1); 51604 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 51605 } catch (org.apache.thrift.TException te) { 51606 throw new java.io.IOException(te); 51607 } 51608 } 51609 51610 private static class scannerClose_argsStandardSchemeFactory implements SchemeFactory { 51611 public scannerClose_argsStandardScheme getScheme() { 51612 return new scannerClose_argsStandardScheme(); 51613 } 51614 } 51615 51616 private static class scannerClose_argsStandardScheme extends StandardScheme<scannerClose_args> { 51617 51618 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_args struct) throws org.apache.thrift.TException { 51619 org.apache.thrift.protocol.TField schemeField; 51620 iprot.readStructBegin(); 51621 while (true) 51622 { 51623 schemeField = iprot.readFieldBegin(); 51624 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 51625 break; 51626 } 51627 switch (schemeField.id) { 51628 case 1: // ID 51629 if (schemeField.type == org.apache.thrift.protocol.TType.I32) { 51630 struct.id = iprot.readI32(); 51631 struct.setIdIsSet(true); 51632 } else { 51633 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51634 } 51635 break; 51636 default: 51637 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 51638 } 51639 iprot.readFieldEnd(); 51640 } 51641 iprot.readStructEnd(); 51642 51643 // check for required fields of primitive type, which can't be checked in the validate method 51644 struct.validate(); 51645 } 51646 51647 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_args struct) throws org.apache.thrift.TException { 51648 struct.validate(); 51649 51650 oprot.writeStructBegin(STRUCT_DESC); 51651 oprot.writeFieldBegin(ID_FIELD_DESC); 51652 oprot.writeI32(struct.id); 51653 oprot.writeFieldEnd(); 51654 oprot.writeFieldStop(); 51655 oprot.writeStructEnd(); 51656 } 51657 51658 } 51659 51660 private static class scannerClose_argsTupleSchemeFactory implements SchemeFactory { 51661 public scannerClose_argsTupleScheme getScheme() { 51662 return new scannerClose_argsTupleScheme(); 51663 } 51664 } 51665 51666 private static class scannerClose_argsTupleScheme extends TupleScheme<scannerClose_args> { 51667 51668 @Override 51669 public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException { 51670 TTupleProtocol oprot = (TTupleProtocol) prot; 51671 BitSet optionals = new BitSet(); 51672 if (struct.isSetId()) { 51673 optionals.set(0); 51674 } 51675 oprot.writeBitSet(optionals, 1); 51676 if (struct.isSetId()) { 51677 oprot.writeI32(struct.id); 51678 } 51679 } 51680 51681 @Override 51682 public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException { 51683 TTupleProtocol iprot = (TTupleProtocol) prot; 51684 BitSet incoming = iprot.readBitSet(1); 51685 if (incoming.get(0)) { 51686 struct.id = iprot.readI32(); 51687 struct.setIdIsSet(true); 51688 } 51689 } 51690 } 51691 51692 } 51693 51694 public static class scannerClose_result implements org.apache.thrift.TBase<scannerClose_result, scannerClose_result._Fields>, java.io.Serializable, Cloneable { 51695 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_result"); 51696 51697 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 51698 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2); 51699 51700 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 51701 static { 51702 schemes.put(StandardScheme.class, new scannerClose_resultStandardSchemeFactory()); 51703 schemes.put(TupleScheme.class, new scannerClose_resultTupleSchemeFactory()); 51704 } 51705 51706 public IOError io; // required 51707 public IllegalArgument ia; // required 51708 51709 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 51710 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 51711 IO((short)1, "io"), 51712 IA((short)2, "ia"); 51713 51714 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 51715 51716 static { 51717 for (_Fields field : EnumSet.allOf(_Fields.class)) { 51718 byName.put(field.getFieldName(), field); 51719 } 51720 } 51721 51722 /** 51723 * Find the _Fields constant that matches fieldId, or null if its not found. 51724 */ 51725 public static _Fields findByThriftId(int fieldId) { 51726 switch(fieldId) { 51727 case 1: // IO 51728 return IO; 51729 case 2: // IA 51730 return IA; 51731 default: 51732 return null; 51733 } 51734 } 51735 51736 /** 51737 * Find the _Fields constant that matches fieldId, throwing an exception 51738 * if it is not found. 51739 */ 51740 public static _Fields findByThriftIdOrThrow(int fieldId) { 51741 _Fields fields = findByThriftId(fieldId); 51742 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 51743 return fields; 51744 } 51745 51746 /** 51747 * Find the _Fields constant that matches name, or null if its not found. 51748 */ 51749 public static _Fields findByName(String name) { 51750 return byName.get(name); 51751 } 51752 51753 private final short _thriftId; 51754 private final String _fieldName; 51755 51756 _Fields(short thriftId, String fieldName) { 51757 _thriftId = thriftId; 51758 _fieldName = fieldName; 51759 } 51760 51761 public short getThriftFieldId() { 51762 return _thriftId; 51763 } 51764 51765 public String getFieldName() { 51766 return _fieldName; 51767 } 51768 } 51769 51770 // isset id assignments 51771 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 51772 static { 51773 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 51774 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 51775 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 51776 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT, 51777 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 51778 metaDataMap = Collections.unmodifiableMap(tmpMap); 51779 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_result.class, metaDataMap); 51780 } 51781 51782 public scannerClose_result() { 51783 } 51784 51785 public scannerClose_result( 51786 IOError io, 51787 IllegalArgument ia) 51788 { 51789 this(); 51790 this.io = io; 51791 this.ia = ia; 51792 } 51793 51794 /** 51795 * Performs a deep copy on <i>other</i>. 51796 */ 51797 public scannerClose_result(scannerClose_result other) { 51798 if (other.isSetIo()) { 51799 this.io = new IOError(other.io); 51800 } 51801 if (other.isSetIa()) { 51802 this.ia = new IllegalArgument(other.ia); 51803 } 51804 } 51805 51806 public scannerClose_result deepCopy() { 51807 return new scannerClose_result(this); 51808 } 51809 51810 @Override 51811 public void clear() { 51812 this.io = null; 51813 this.ia = null; 51814 } 51815 51816 public IOError getIo() { 51817 return this.io; 51818 } 51819 51820 public scannerClose_result setIo(IOError io) { 51821 this.io = io; 51822 return this; 51823 } 51824 51825 public void unsetIo() { 51826 this.io = null; 51827 } 51828 51829 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 51830 public boolean isSetIo() { 51831 return this.io != null; 51832 } 51833 51834 public void setIoIsSet(boolean value) { 51835 if (!value) { 51836 this.io = null; 51837 } 51838 } 51839 51840 public IllegalArgument getIa() { 51841 return this.ia; 51842 } 51843 51844 public scannerClose_result setIa(IllegalArgument ia) { 51845 this.ia = ia; 51846 return this; 51847 } 51848 51849 public void unsetIa() { 51850 this.ia = null; 51851 } 51852 51853 /** Returns true if field ia is set (has been assigned a value) and false otherwise */ 51854 public boolean isSetIa() { 51855 return this.ia != null; 51856 } 51857 51858 public void setIaIsSet(boolean value) { 51859 if (!value) { 51860 this.ia = null; 51861 } 51862 } 51863 51864 public void setFieldValue(_Fields field, Object value) { 51865 switch (field) { 51866 case IO: 51867 if (value == null) { 51868 unsetIo(); 51869 } else { 51870 setIo((IOError)value); 51871 } 51872 break; 51873 51874 case IA: 51875 if (value == null) { 51876 unsetIa(); 51877 } else { 51878 setIa((IllegalArgument)value); 51879 } 51880 break; 51881 51882 } 51883 } 51884 51885 public Object getFieldValue(_Fields field) { 51886 switch (field) { 51887 case IO: 51888 return getIo(); 51889 51890 case IA: 51891 return getIa(); 51892 51893 } 51894 throw new IllegalStateException(); 51895 } 51896 51897 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 51898 public boolean isSet(_Fields field) { 51899 if (field == null) { 51900 throw new IllegalArgumentException(); 51901 } 51902 51903 switch (field) { 51904 case IO: 51905 return isSetIo(); 51906 case IA: 51907 return isSetIa(); 51908 } 51909 throw new IllegalStateException(); 51910 } 51911 51912 @Override 51913 public boolean equals(Object that) { 51914 if (that == null) 51915 return false; 51916 if (that instanceof scannerClose_result) 51917 return this.equals((scannerClose_result)that); 51918 return false; 51919 } 51920 51921 public boolean equals(scannerClose_result that) { 51922 if (that == null) 51923 return false; 51924 51925 boolean this_present_io = true && this.isSetIo(); 51926 boolean that_present_io = true && that.isSetIo(); 51927 if (this_present_io || that_present_io) { 51928 if (!(this_present_io && that_present_io)) 51929 return false; 51930 if (!this.io.equals(that.io)) 51931 return false; 51932 } 51933 51934 boolean this_present_ia = true && this.isSetIa(); 51935 boolean that_present_ia = true && that.isSetIa(); 51936 if (this_present_ia || that_present_ia) { 51937 if (!(this_present_ia && that_present_ia)) 51938 return false; 51939 if (!this.ia.equals(that.ia)) 51940 return false; 51941 } 51942 51943 return true; 51944 } 51945 51946 @Override 51947 public int hashCode() { 51948 HashCodeBuilder builder = new HashCodeBuilder(); 51949 51950 boolean present_io = true && (isSetIo()); 51951 builder.append(present_io); 51952 if (present_io) 51953 builder.append(io); 51954 51955 boolean present_ia = true && (isSetIa()); 51956 builder.append(present_ia); 51957 if (present_ia) 51958 builder.append(ia); 51959 51960 return builder.toHashCode(); 51961 } 51962 51963 public int compareTo(scannerClose_result other) { 51964 if (!getClass().equals(other.getClass())) { 51965 return getClass().getName().compareTo(other.getClass().getName()); 51966 } 51967 51968 int lastComparison = 0; 51969 scannerClose_result typedOther = (scannerClose_result)other; 51970 51971 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 51972 if (lastComparison != 0) { 51973 return lastComparison; 51974 } 51975 if (isSetIo()) { 51976 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 51977 if (lastComparison != 0) { 51978 return lastComparison; 51979 } 51980 } 51981 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa()); 51982 if (lastComparison != 0) { 51983 return lastComparison; 51984 } 51985 if (isSetIa()) { 51986 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia); 51987 if (lastComparison != 0) { 51988 return lastComparison; 51989 } 51990 } 51991 return 0; 51992 } 51993 51994 public _Fields fieldForId(int fieldId) { 51995 return _Fields.findByThriftId(fieldId); 51996 } 51997 51998 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 51999 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 52000 } 52001 52002 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 52003 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 52004 } 52005 52006 @Override 52007 public String toString() { 52008 StringBuilder sb = new StringBuilder("scannerClose_result("); 52009 boolean first = true; 52010 52011 sb.append("io:"); 52012 if (this.io == null) { 52013 sb.append("null"); 52014 } else { 52015 sb.append(this.io); 52016 } 52017 first = false; 52018 if (!first) sb.append(", "); 52019 sb.append("ia:"); 52020 if (this.ia == null) { 52021 sb.append("null"); 52022 } else { 52023 sb.append(this.ia); 52024 } 52025 first = false; 52026 sb.append(")"); 52027 return sb.toString(); 52028 } 52029 52030 public void validate() throws org.apache.thrift.TException { 52031 // check for required fields 52032 } 52033 52034 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 52035 try { 52036 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 52037 } catch (org.apache.thrift.TException te) { 52038 throw new java.io.IOException(te); 52039 } 52040 } 52041 52042 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 52043 try { 52044 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 52045 } catch (org.apache.thrift.TException te) { 52046 throw new java.io.IOException(te); 52047 } 52048 } 52049 52050 private static class scannerClose_resultStandardSchemeFactory implements SchemeFactory { 52051 public scannerClose_resultStandardScheme getScheme() { 52052 return new scannerClose_resultStandardScheme(); 52053 } 52054 } 52055 52056 private static class scannerClose_resultStandardScheme extends StandardScheme<scannerClose_result> { 52057 52058 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_result struct) throws org.apache.thrift.TException { 52059 org.apache.thrift.protocol.TField schemeField; 52060 iprot.readStructBegin(); 52061 while (true) 52062 { 52063 schemeField = iprot.readFieldBegin(); 52064 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 52065 break; 52066 } 52067 switch (schemeField.id) { 52068 case 1: // IO 52069 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 52070 struct.io = new IOError(); 52071 struct.io.read(iprot); 52072 struct.setIoIsSet(true); 52073 } else { 52074 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52075 } 52076 break; 52077 case 2: // IA 52078 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 52079 struct.ia = new IllegalArgument(); 52080 struct.ia.read(iprot); 52081 struct.setIaIsSet(true); 52082 } else { 52083 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52084 } 52085 break; 52086 default: 52087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52088 } 52089 iprot.readFieldEnd(); 52090 } 52091 iprot.readStructEnd(); 52092 52093 // check for required fields of primitive type, which can't be checked in the validate method 52094 struct.validate(); 52095 } 52096 52097 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_result struct) throws org.apache.thrift.TException { 52098 struct.validate(); 52099 52100 oprot.writeStructBegin(STRUCT_DESC); 52101 if (struct.io != null) { 52102 oprot.writeFieldBegin(IO_FIELD_DESC); 52103 struct.io.write(oprot); 52104 oprot.writeFieldEnd(); 52105 } 52106 if (struct.ia != null) { 52107 oprot.writeFieldBegin(IA_FIELD_DESC); 52108 struct.ia.write(oprot); 52109 oprot.writeFieldEnd(); 52110 } 52111 oprot.writeFieldStop(); 52112 oprot.writeStructEnd(); 52113 } 52114 52115 } 52116 52117 private static class scannerClose_resultTupleSchemeFactory implements SchemeFactory { 52118 public scannerClose_resultTupleScheme getScheme() { 52119 return new scannerClose_resultTupleScheme(); 52120 } 52121 } 52122 52123 private static class scannerClose_resultTupleScheme extends TupleScheme<scannerClose_result> { 52124 52125 @Override 52126 public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException { 52127 TTupleProtocol oprot = (TTupleProtocol) prot; 52128 BitSet optionals = new BitSet(); 52129 if (struct.isSetIo()) { 52130 optionals.set(0); 52131 } 52132 if (struct.isSetIa()) { 52133 optionals.set(1); 52134 } 52135 oprot.writeBitSet(optionals, 2); 52136 if (struct.isSetIo()) { 52137 struct.io.write(oprot); 52138 } 52139 if (struct.isSetIa()) { 52140 struct.ia.write(oprot); 52141 } 52142 } 52143 52144 @Override 52145 public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException { 52146 TTupleProtocol iprot = (TTupleProtocol) prot; 52147 BitSet incoming = iprot.readBitSet(2); 52148 if (incoming.get(0)) { 52149 struct.io = new IOError(); 52150 struct.io.read(iprot); 52151 struct.setIoIsSet(true); 52152 } 52153 if (incoming.get(1)) { 52154 struct.ia = new IllegalArgument(); 52155 struct.ia.read(iprot); 52156 struct.setIaIsSet(true); 52157 } 52158 } 52159 } 52160 52161 } 52162 52163 public static class getRowOrBefore_args implements org.apache.thrift.TBase<getRowOrBefore_args, getRowOrBefore_args._Fields>, java.io.Serializable, Cloneable { 52164 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowOrBefore_args"); 52165 52166 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); 52167 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2); 52168 private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3); 52169 52170 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 52171 static { 52172 schemes.put(StandardScheme.class, new getRowOrBefore_argsStandardSchemeFactory()); 52173 schemes.put(TupleScheme.class, new getRowOrBefore_argsTupleSchemeFactory()); 52174 } 52175 52176 /** 52177 * name of table 52178 */ 52179 public ByteBuffer tableName; // required 52180 /** 52181 * row key 52182 */ 52183 public ByteBuffer row; // required 52184 /** 52185 * column name 52186 */ 52187 public ByteBuffer family; // required 52188 52189 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 52190 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 52191 /** 52192 * name of table 52193 */ 52194 TABLE_NAME((short)1, "tableName"), 52195 /** 52196 * row key 52197 */ 52198 ROW((short)2, "row"), 52199 /** 52200 * column name 52201 */ 52202 FAMILY((short)3, "family"); 52203 52204 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 52205 52206 static { 52207 for (_Fields field : EnumSet.allOf(_Fields.class)) { 52208 byName.put(field.getFieldName(), field); 52209 } 52210 } 52211 52212 /** 52213 * Find the _Fields constant that matches fieldId, or null if its not found. 52214 */ 52215 public static _Fields findByThriftId(int fieldId) { 52216 switch(fieldId) { 52217 case 1: // TABLE_NAME 52218 return TABLE_NAME; 52219 case 2: // ROW 52220 return ROW; 52221 case 3: // FAMILY 52222 return FAMILY; 52223 default: 52224 return null; 52225 } 52226 } 52227 52228 /** 52229 * Find the _Fields constant that matches fieldId, throwing an exception 52230 * if it is not found. 52231 */ 52232 public static _Fields findByThriftIdOrThrow(int fieldId) { 52233 _Fields fields = findByThriftId(fieldId); 52234 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 52235 return fields; 52236 } 52237 52238 /** 52239 * Find the _Fields constant that matches name, or null if its not found. 52240 */ 52241 public static _Fields findByName(String name) { 52242 return byName.get(name); 52243 } 52244 52245 private final short _thriftId; 52246 private final String _fieldName; 52247 52248 _Fields(short thriftId, String fieldName) { 52249 _thriftId = thriftId; 52250 _fieldName = fieldName; 52251 } 52252 52253 public short getThriftFieldId() { 52254 return _thriftId; 52255 } 52256 52257 public String getFieldName() { 52258 return _fieldName; 52259 } 52260 } 52261 52262 // isset id assignments 52263 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 52264 static { 52265 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 52266 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT, 52267 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 52268 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 52269 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 52270 tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.DEFAULT, 52271 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 52272 metaDataMap = Collections.unmodifiableMap(tmpMap); 52273 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_args.class, metaDataMap); 52274 } 52275 52276 public getRowOrBefore_args() { 52277 } 52278 52279 public getRowOrBefore_args( 52280 ByteBuffer tableName, 52281 ByteBuffer row, 52282 ByteBuffer family) 52283 { 52284 this(); 52285 this.tableName = tableName; 52286 this.row = row; 52287 this.family = family; 52288 } 52289 52290 /** 52291 * Performs a deep copy on <i>other</i>. 52292 */ 52293 public getRowOrBefore_args(getRowOrBefore_args other) { 52294 if (other.isSetTableName()) { 52295 this.tableName = other.tableName; 52296 } 52297 if (other.isSetRow()) { 52298 this.row = other.row; 52299 } 52300 if (other.isSetFamily()) { 52301 this.family = other.family; 52302 } 52303 } 52304 52305 public getRowOrBefore_args deepCopy() { 52306 return new getRowOrBefore_args(this); 52307 } 52308 52309 @Override 52310 public void clear() { 52311 this.tableName = null; 52312 this.row = null; 52313 this.family = null; 52314 } 52315 52316 /** 52317 * name of table 52318 */ 52319 public byte[] getTableName() { 52320 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName)); 52321 return tableName == null ? null : tableName.array(); 52322 } 52323 52324 public ByteBuffer bufferForTableName() { 52325 return tableName; 52326 } 52327 52328 /** 52329 * name of table 52330 */ 52331 public getRowOrBefore_args setTableName(byte[] tableName) { 52332 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName)); 52333 return this; 52334 } 52335 52336 public getRowOrBefore_args setTableName(ByteBuffer tableName) { 52337 this.tableName = tableName; 52338 return this; 52339 } 52340 52341 public void unsetTableName() { 52342 this.tableName = null; 52343 } 52344 52345 /** Returns true if field tableName is set (has been assigned a value) and false otherwise */ 52346 public boolean isSetTableName() { 52347 return this.tableName != null; 52348 } 52349 52350 public void setTableNameIsSet(boolean value) { 52351 if (!value) { 52352 this.tableName = null; 52353 } 52354 } 52355 52356 /** 52357 * row key 52358 */ 52359 public byte[] getRow() { 52360 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 52361 return row == null ? null : row.array(); 52362 } 52363 52364 public ByteBuffer bufferForRow() { 52365 return row; 52366 } 52367 52368 /** 52369 * row key 52370 */ 52371 public getRowOrBefore_args setRow(byte[] row) { 52372 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 52373 return this; 52374 } 52375 52376 public getRowOrBefore_args setRow(ByteBuffer row) { 52377 this.row = row; 52378 return this; 52379 } 52380 52381 public void unsetRow() { 52382 this.row = null; 52383 } 52384 52385 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 52386 public boolean isSetRow() { 52387 return this.row != null; 52388 } 52389 52390 public void setRowIsSet(boolean value) { 52391 if (!value) { 52392 this.row = null; 52393 } 52394 } 52395 52396 /** 52397 * column name 52398 */ 52399 public byte[] getFamily() { 52400 setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); 52401 return family == null ? null : family.array(); 52402 } 52403 52404 public ByteBuffer bufferForFamily() { 52405 return family; 52406 } 52407 52408 /** 52409 * column name 52410 */ 52411 public getRowOrBefore_args setFamily(byte[] family) { 52412 setFamily(family == null ? (ByteBuffer)null : ByteBuffer.wrap(family)); 52413 return this; 52414 } 52415 52416 public getRowOrBefore_args setFamily(ByteBuffer family) { 52417 this.family = family; 52418 return this; 52419 } 52420 52421 public void unsetFamily() { 52422 this.family = null; 52423 } 52424 52425 /** Returns true if field family is set (has been assigned a value) and false otherwise */ 52426 public boolean isSetFamily() { 52427 return this.family != null; 52428 } 52429 52430 public void setFamilyIsSet(boolean value) { 52431 if (!value) { 52432 this.family = null; 52433 } 52434 } 52435 52436 public void setFieldValue(_Fields field, Object value) { 52437 switch (field) { 52438 case TABLE_NAME: 52439 if (value == null) { 52440 unsetTableName(); 52441 } else { 52442 setTableName((ByteBuffer)value); 52443 } 52444 break; 52445 52446 case ROW: 52447 if (value == null) { 52448 unsetRow(); 52449 } else { 52450 setRow((ByteBuffer)value); 52451 } 52452 break; 52453 52454 case FAMILY: 52455 if (value == null) { 52456 unsetFamily(); 52457 } else { 52458 setFamily((ByteBuffer)value); 52459 } 52460 break; 52461 52462 } 52463 } 52464 52465 public Object getFieldValue(_Fields field) { 52466 switch (field) { 52467 case TABLE_NAME: 52468 return getTableName(); 52469 52470 case ROW: 52471 return getRow(); 52472 52473 case FAMILY: 52474 return getFamily(); 52475 52476 } 52477 throw new IllegalStateException(); 52478 } 52479 52480 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 52481 public boolean isSet(_Fields field) { 52482 if (field == null) { 52483 throw new IllegalArgumentException(); 52484 } 52485 52486 switch (field) { 52487 case TABLE_NAME: 52488 return isSetTableName(); 52489 case ROW: 52490 return isSetRow(); 52491 case FAMILY: 52492 return isSetFamily(); 52493 } 52494 throw new IllegalStateException(); 52495 } 52496 52497 @Override 52498 public boolean equals(Object that) { 52499 if (that == null) 52500 return false; 52501 if (that instanceof getRowOrBefore_args) 52502 return this.equals((getRowOrBefore_args)that); 52503 return false; 52504 } 52505 52506 public boolean equals(getRowOrBefore_args that) { 52507 if (that == null) 52508 return false; 52509 52510 boolean this_present_tableName = true && this.isSetTableName(); 52511 boolean that_present_tableName = true && that.isSetTableName(); 52512 if (this_present_tableName || that_present_tableName) { 52513 if (!(this_present_tableName && that_present_tableName)) 52514 return false; 52515 if (!this.tableName.equals(that.tableName)) 52516 return false; 52517 } 52518 52519 boolean this_present_row = true && this.isSetRow(); 52520 boolean that_present_row = true && that.isSetRow(); 52521 if (this_present_row || that_present_row) { 52522 if (!(this_present_row && that_present_row)) 52523 return false; 52524 if (!this.row.equals(that.row)) 52525 return false; 52526 } 52527 52528 boolean this_present_family = true && this.isSetFamily(); 52529 boolean that_present_family = true && that.isSetFamily(); 52530 if (this_present_family || that_present_family) { 52531 if (!(this_present_family && that_present_family)) 52532 return false; 52533 if (!this.family.equals(that.family)) 52534 return false; 52535 } 52536 52537 return true; 52538 } 52539 52540 @Override 52541 public int hashCode() { 52542 HashCodeBuilder builder = new HashCodeBuilder(); 52543 52544 boolean present_tableName = true && (isSetTableName()); 52545 builder.append(present_tableName); 52546 if (present_tableName) 52547 builder.append(tableName); 52548 52549 boolean present_row = true && (isSetRow()); 52550 builder.append(present_row); 52551 if (present_row) 52552 builder.append(row); 52553 52554 boolean present_family = true && (isSetFamily()); 52555 builder.append(present_family); 52556 if (present_family) 52557 builder.append(family); 52558 52559 return builder.toHashCode(); 52560 } 52561 52562 public int compareTo(getRowOrBefore_args other) { 52563 if (!getClass().equals(other.getClass())) { 52564 return getClass().getName().compareTo(other.getClass().getName()); 52565 } 52566 52567 int lastComparison = 0; 52568 getRowOrBefore_args typedOther = (getRowOrBefore_args)other; 52569 52570 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); 52571 if (lastComparison != 0) { 52572 return lastComparison; 52573 } 52574 if (isSetTableName()) { 52575 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); 52576 if (lastComparison != 0) { 52577 return lastComparison; 52578 } 52579 } 52580 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 52581 if (lastComparison != 0) { 52582 return lastComparison; 52583 } 52584 if (isSetRow()) { 52585 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 52586 if (lastComparison != 0) { 52587 return lastComparison; 52588 } 52589 } 52590 lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily()); 52591 if (lastComparison != 0) { 52592 return lastComparison; 52593 } 52594 if (isSetFamily()) { 52595 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family); 52596 if (lastComparison != 0) { 52597 return lastComparison; 52598 } 52599 } 52600 return 0; 52601 } 52602 52603 public _Fields fieldForId(int fieldId) { 52604 return _Fields.findByThriftId(fieldId); 52605 } 52606 52607 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 52608 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 52609 } 52610 52611 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 52612 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 52613 } 52614 52615 @Override 52616 public String toString() { 52617 StringBuilder sb = new StringBuilder("getRowOrBefore_args("); 52618 boolean first = true; 52619 52620 sb.append("tableName:"); 52621 if (this.tableName == null) { 52622 sb.append("null"); 52623 } else { 52624 sb.append(this.tableName); 52625 } 52626 first = false; 52627 if (!first) sb.append(", "); 52628 sb.append("row:"); 52629 if (this.row == null) { 52630 sb.append("null"); 52631 } else { 52632 sb.append(this.row); 52633 } 52634 first = false; 52635 if (!first) sb.append(", "); 52636 sb.append("family:"); 52637 if (this.family == null) { 52638 sb.append("null"); 52639 } else { 52640 sb.append(this.family); 52641 } 52642 first = false; 52643 sb.append(")"); 52644 return sb.toString(); 52645 } 52646 52647 public void validate() throws org.apache.thrift.TException { 52648 // check for required fields 52649 } 52650 52651 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 52652 try { 52653 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 52654 } catch (org.apache.thrift.TException te) { 52655 throw new java.io.IOException(te); 52656 } 52657 } 52658 52659 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 52660 try { 52661 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 52662 } catch (org.apache.thrift.TException te) { 52663 throw new java.io.IOException(te); 52664 } 52665 } 52666 52667 private static class getRowOrBefore_argsStandardSchemeFactory implements SchemeFactory { 52668 public getRowOrBefore_argsStandardScheme getScheme() { 52669 return new getRowOrBefore_argsStandardScheme(); 52670 } 52671 } 52672 52673 private static class getRowOrBefore_argsStandardScheme extends StandardScheme<getRowOrBefore_args> { 52674 52675 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_args struct) throws org.apache.thrift.TException { 52676 org.apache.thrift.protocol.TField schemeField; 52677 iprot.readStructBegin(); 52678 while (true) 52679 { 52680 schemeField = iprot.readFieldBegin(); 52681 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 52682 break; 52683 } 52684 switch (schemeField.id) { 52685 case 1: // TABLE_NAME 52686 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 52687 struct.tableName = iprot.readBinary(); 52688 struct.setTableNameIsSet(true); 52689 } else { 52690 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52691 } 52692 break; 52693 case 2: // ROW 52694 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 52695 struct.row = iprot.readBinary(); 52696 struct.setRowIsSet(true); 52697 } else { 52698 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52699 } 52700 break; 52701 case 3: // FAMILY 52702 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 52703 struct.family = iprot.readBinary(); 52704 struct.setFamilyIsSet(true); 52705 } else { 52706 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52707 } 52708 break; 52709 default: 52710 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 52711 } 52712 iprot.readFieldEnd(); 52713 } 52714 iprot.readStructEnd(); 52715 52716 // check for required fields of primitive type, which can't be checked in the validate method 52717 struct.validate(); 52718 } 52719 52720 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowOrBefore_args struct) throws org.apache.thrift.TException { 52721 struct.validate(); 52722 52723 oprot.writeStructBegin(STRUCT_DESC); 52724 if (struct.tableName != null) { 52725 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); 52726 oprot.writeBinary(struct.tableName); 52727 oprot.writeFieldEnd(); 52728 } 52729 if (struct.row != null) { 52730 oprot.writeFieldBegin(ROW_FIELD_DESC); 52731 oprot.writeBinary(struct.row); 52732 oprot.writeFieldEnd(); 52733 } 52734 if (struct.family != null) { 52735 oprot.writeFieldBegin(FAMILY_FIELD_DESC); 52736 oprot.writeBinary(struct.family); 52737 oprot.writeFieldEnd(); 52738 } 52739 oprot.writeFieldStop(); 52740 oprot.writeStructEnd(); 52741 } 52742 52743 } 52744 52745 private static class getRowOrBefore_argsTupleSchemeFactory implements SchemeFactory { 52746 public getRowOrBefore_argsTupleScheme getScheme() { 52747 return new getRowOrBefore_argsTupleScheme(); 52748 } 52749 } 52750 52751 private static class getRowOrBefore_argsTupleScheme extends TupleScheme<getRowOrBefore_args> { 52752 52753 @Override 52754 public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException { 52755 TTupleProtocol oprot = (TTupleProtocol) prot; 52756 BitSet optionals = new BitSet(); 52757 if (struct.isSetTableName()) { 52758 optionals.set(0); 52759 } 52760 if (struct.isSetRow()) { 52761 optionals.set(1); 52762 } 52763 if (struct.isSetFamily()) { 52764 optionals.set(2); 52765 } 52766 oprot.writeBitSet(optionals, 3); 52767 if (struct.isSetTableName()) { 52768 oprot.writeBinary(struct.tableName); 52769 } 52770 if (struct.isSetRow()) { 52771 oprot.writeBinary(struct.row); 52772 } 52773 if (struct.isSetFamily()) { 52774 oprot.writeBinary(struct.family); 52775 } 52776 } 52777 52778 @Override 52779 public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException { 52780 TTupleProtocol iprot = (TTupleProtocol) prot; 52781 BitSet incoming = iprot.readBitSet(3); 52782 if (incoming.get(0)) { 52783 struct.tableName = iprot.readBinary(); 52784 struct.setTableNameIsSet(true); 52785 } 52786 if (incoming.get(1)) { 52787 struct.row = iprot.readBinary(); 52788 struct.setRowIsSet(true); 52789 } 52790 if (incoming.get(2)) { 52791 struct.family = iprot.readBinary(); 52792 struct.setFamilyIsSet(true); 52793 } 52794 } 52795 } 52796 52797 } 52798 52799 public static class getRowOrBefore_result implements org.apache.thrift.TBase<getRowOrBefore_result, getRowOrBefore_result._Fields>, java.io.Serializable, Cloneable { 52800 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowOrBefore_result"); 52801 52802 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); 52803 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 52804 52805 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 52806 static { 52807 schemes.put(StandardScheme.class, new getRowOrBefore_resultStandardSchemeFactory()); 52808 schemes.put(TupleScheme.class, new getRowOrBefore_resultTupleSchemeFactory()); 52809 } 52810 52811 public List<TCell> success; // required 52812 public IOError io; // required 52813 52814 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 52815 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 52816 SUCCESS((short)0, "success"), 52817 IO((short)1, "io"); 52818 52819 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 52820 52821 static { 52822 for (_Fields field : EnumSet.allOf(_Fields.class)) { 52823 byName.put(field.getFieldName(), field); 52824 } 52825 } 52826 52827 /** 52828 * Find the _Fields constant that matches fieldId, or null if its not found. 52829 */ 52830 public static _Fields findByThriftId(int fieldId) { 52831 switch(fieldId) { 52832 case 0: // SUCCESS 52833 return SUCCESS; 52834 case 1: // IO 52835 return IO; 52836 default: 52837 return null; 52838 } 52839 } 52840 52841 /** 52842 * Find the _Fields constant that matches fieldId, throwing an exception 52843 * if it is not found. 52844 */ 52845 public static _Fields findByThriftIdOrThrow(int fieldId) { 52846 _Fields fields = findByThriftId(fieldId); 52847 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 52848 return fields; 52849 } 52850 52851 /** 52852 * Find the _Fields constant that matches name, or null if its not found. 52853 */ 52854 public static _Fields findByName(String name) { 52855 return byName.get(name); 52856 } 52857 52858 private final short _thriftId; 52859 private final String _fieldName; 52860 52861 _Fields(short thriftId, String fieldName) { 52862 _thriftId = thriftId; 52863 _fieldName = fieldName; 52864 } 52865 52866 public short getThriftFieldId() { 52867 return _thriftId; 52868 } 52869 52870 public String getFieldName() { 52871 return _fieldName; 52872 } 52873 } 52874 52875 // isset id assignments 52876 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 52877 static { 52878 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 52879 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 52880 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 52881 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class)))); 52882 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 52883 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 52884 metaDataMap = Collections.unmodifiableMap(tmpMap); 52885 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_result.class, metaDataMap); 52886 } 52887 52888 public getRowOrBefore_result() { 52889 } 52890 52891 public getRowOrBefore_result( 52892 List<TCell> success, 52893 IOError io) 52894 { 52895 this(); 52896 this.success = success; 52897 this.io = io; 52898 } 52899 52900 /** 52901 * Performs a deep copy on <i>other</i>. 52902 */ 52903 public getRowOrBefore_result(getRowOrBefore_result other) { 52904 if (other.isSetSuccess()) { 52905 List<TCell> __this__success = new ArrayList<TCell>(); 52906 for (TCell other_element : other.success) { 52907 __this__success.add(new TCell(other_element)); 52908 } 52909 this.success = __this__success; 52910 } 52911 if (other.isSetIo()) { 52912 this.io = new IOError(other.io); 52913 } 52914 } 52915 52916 public getRowOrBefore_result deepCopy() { 52917 return new getRowOrBefore_result(this); 52918 } 52919 52920 @Override 52921 public void clear() { 52922 this.success = null; 52923 this.io = null; 52924 } 52925 52926 public int getSuccessSize() { 52927 return (this.success == null) ? 0 : this.success.size(); 52928 } 52929 52930 public java.util.Iterator<TCell> getSuccessIterator() { 52931 return (this.success == null) ? null : this.success.iterator(); 52932 } 52933 52934 public void addToSuccess(TCell elem) { 52935 if (this.success == null) { 52936 this.success = new ArrayList<TCell>(); 52937 } 52938 this.success.add(elem); 52939 } 52940 52941 public List<TCell> getSuccess() { 52942 return this.success; 52943 } 52944 52945 public getRowOrBefore_result setSuccess(List<TCell> success) { 52946 this.success = success; 52947 return this; 52948 } 52949 52950 public void unsetSuccess() { 52951 this.success = null; 52952 } 52953 52954 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 52955 public boolean isSetSuccess() { 52956 return this.success != null; 52957 } 52958 52959 public void setSuccessIsSet(boolean value) { 52960 if (!value) { 52961 this.success = null; 52962 } 52963 } 52964 52965 public IOError getIo() { 52966 return this.io; 52967 } 52968 52969 public getRowOrBefore_result setIo(IOError io) { 52970 this.io = io; 52971 return this; 52972 } 52973 52974 public void unsetIo() { 52975 this.io = null; 52976 } 52977 52978 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 52979 public boolean isSetIo() { 52980 return this.io != null; 52981 } 52982 52983 public void setIoIsSet(boolean value) { 52984 if (!value) { 52985 this.io = null; 52986 } 52987 } 52988 52989 public void setFieldValue(_Fields field, Object value) { 52990 switch (field) { 52991 case SUCCESS: 52992 if (value == null) { 52993 unsetSuccess(); 52994 } else { 52995 setSuccess((List<TCell>)value); 52996 } 52997 break; 52998 52999 case IO: 53000 if (value == null) { 53001 unsetIo(); 53002 } else { 53003 setIo((IOError)value); 53004 } 53005 break; 53006 53007 } 53008 } 53009 53010 public Object getFieldValue(_Fields field) { 53011 switch (field) { 53012 case SUCCESS: 53013 return getSuccess(); 53014 53015 case IO: 53016 return getIo(); 53017 53018 } 53019 throw new IllegalStateException(); 53020 } 53021 53022 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 53023 public boolean isSet(_Fields field) { 53024 if (field == null) { 53025 throw new IllegalArgumentException(); 53026 } 53027 53028 switch (field) { 53029 case SUCCESS: 53030 return isSetSuccess(); 53031 case IO: 53032 return isSetIo(); 53033 } 53034 throw new IllegalStateException(); 53035 } 53036 53037 @Override 53038 public boolean equals(Object that) { 53039 if (that == null) 53040 return false; 53041 if (that instanceof getRowOrBefore_result) 53042 return this.equals((getRowOrBefore_result)that); 53043 return false; 53044 } 53045 53046 public boolean equals(getRowOrBefore_result that) { 53047 if (that == null) 53048 return false; 53049 53050 boolean this_present_success = true && this.isSetSuccess(); 53051 boolean that_present_success = true && that.isSetSuccess(); 53052 if (this_present_success || that_present_success) { 53053 if (!(this_present_success && that_present_success)) 53054 return false; 53055 if (!this.success.equals(that.success)) 53056 return false; 53057 } 53058 53059 boolean this_present_io = true && this.isSetIo(); 53060 boolean that_present_io = true && that.isSetIo(); 53061 if (this_present_io || that_present_io) { 53062 if (!(this_present_io && that_present_io)) 53063 return false; 53064 if (!this.io.equals(that.io)) 53065 return false; 53066 } 53067 53068 return true; 53069 } 53070 53071 @Override 53072 public int hashCode() { 53073 HashCodeBuilder builder = new HashCodeBuilder(); 53074 53075 boolean present_success = true && (isSetSuccess()); 53076 builder.append(present_success); 53077 if (present_success) 53078 builder.append(success); 53079 53080 boolean present_io = true && (isSetIo()); 53081 builder.append(present_io); 53082 if (present_io) 53083 builder.append(io); 53084 53085 return builder.toHashCode(); 53086 } 53087 53088 public int compareTo(getRowOrBefore_result other) { 53089 if (!getClass().equals(other.getClass())) { 53090 return getClass().getName().compareTo(other.getClass().getName()); 53091 } 53092 53093 int lastComparison = 0; 53094 getRowOrBefore_result typedOther = (getRowOrBefore_result)other; 53095 53096 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 53097 if (lastComparison != 0) { 53098 return lastComparison; 53099 } 53100 if (isSetSuccess()) { 53101 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 53102 if (lastComparison != 0) { 53103 return lastComparison; 53104 } 53105 } 53106 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 53107 if (lastComparison != 0) { 53108 return lastComparison; 53109 } 53110 if (isSetIo()) { 53111 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 53112 if (lastComparison != 0) { 53113 return lastComparison; 53114 } 53115 } 53116 return 0; 53117 } 53118 53119 public _Fields fieldForId(int fieldId) { 53120 return _Fields.findByThriftId(fieldId); 53121 } 53122 53123 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 53124 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 53125 } 53126 53127 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 53128 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 53129 } 53130 53131 @Override 53132 public String toString() { 53133 StringBuilder sb = new StringBuilder("getRowOrBefore_result("); 53134 boolean first = true; 53135 53136 sb.append("success:"); 53137 if (this.success == null) { 53138 sb.append("null"); 53139 } else { 53140 sb.append(this.success); 53141 } 53142 first = false; 53143 if (!first) sb.append(", "); 53144 sb.append("io:"); 53145 if (this.io == null) { 53146 sb.append("null"); 53147 } else { 53148 sb.append(this.io); 53149 } 53150 first = false; 53151 sb.append(")"); 53152 return sb.toString(); 53153 } 53154 53155 public void validate() throws org.apache.thrift.TException { 53156 // check for required fields 53157 } 53158 53159 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 53160 try { 53161 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 53162 } catch (org.apache.thrift.TException te) { 53163 throw new java.io.IOException(te); 53164 } 53165 } 53166 53167 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 53168 try { 53169 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 53170 } catch (org.apache.thrift.TException te) { 53171 throw new java.io.IOException(te); 53172 } 53173 } 53174 53175 private static class getRowOrBefore_resultStandardSchemeFactory implements SchemeFactory { 53176 public getRowOrBefore_resultStandardScheme getScheme() { 53177 return new getRowOrBefore_resultStandardScheme(); 53178 } 53179 } 53180 53181 private static class getRowOrBefore_resultStandardScheme extends StandardScheme<getRowOrBefore_result> { 53182 53183 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_result struct) throws org.apache.thrift.TException { 53184 org.apache.thrift.protocol.TField schemeField; 53185 iprot.readStructBegin(); 53186 while (true) 53187 { 53188 schemeField = iprot.readFieldBegin(); 53189 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 53190 break; 53191 } 53192 switch (schemeField.id) { 53193 case 0: // SUCCESS 53194 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { 53195 { 53196 org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); 53197 struct.success = new ArrayList<TCell>(_list566.size); 53198 for (int _i567 = 0; _i567 < _list566.size; ++_i567) 53199 { 53200 TCell _elem568; // required 53201 _elem568 = new TCell(); 53202 _elem568.read(iprot); 53203 struct.success.add(_elem568); 53204 } 53205 iprot.readListEnd(); 53206 } 53207 struct.setSuccessIsSet(true); 53208 } else { 53209 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 53210 } 53211 break; 53212 case 1: // IO 53213 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 53214 struct.io = new IOError(); 53215 struct.io.read(iprot); 53216 struct.setIoIsSet(true); 53217 } else { 53218 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 53219 } 53220 break; 53221 default: 53222 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 53223 } 53224 iprot.readFieldEnd(); 53225 } 53226 iprot.readStructEnd(); 53227 53228 // check for required fields of primitive type, which can't be checked in the validate method 53229 struct.validate(); 53230 } 53231 53232 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowOrBefore_result struct) throws org.apache.thrift.TException { 53233 struct.validate(); 53234 53235 oprot.writeStructBegin(STRUCT_DESC); 53236 if (struct.success != null) { 53237 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 53238 { 53239 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); 53240 for (TCell _iter569 : struct.success) 53241 { 53242 _iter569.write(oprot); 53243 } 53244 oprot.writeListEnd(); 53245 } 53246 oprot.writeFieldEnd(); 53247 } 53248 if (struct.io != null) { 53249 oprot.writeFieldBegin(IO_FIELD_DESC); 53250 struct.io.write(oprot); 53251 oprot.writeFieldEnd(); 53252 } 53253 oprot.writeFieldStop(); 53254 oprot.writeStructEnd(); 53255 } 53256 53257 } 53258 53259 private static class getRowOrBefore_resultTupleSchemeFactory implements SchemeFactory { 53260 public getRowOrBefore_resultTupleScheme getScheme() { 53261 return new getRowOrBefore_resultTupleScheme(); 53262 } 53263 } 53264 53265 private static class getRowOrBefore_resultTupleScheme extends TupleScheme<getRowOrBefore_result> { 53266 53267 @Override 53268 public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException { 53269 TTupleProtocol oprot = (TTupleProtocol) prot; 53270 BitSet optionals = new BitSet(); 53271 if (struct.isSetSuccess()) { 53272 optionals.set(0); 53273 } 53274 if (struct.isSetIo()) { 53275 optionals.set(1); 53276 } 53277 oprot.writeBitSet(optionals, 2); 53278 if (struct.isSetSuccess()) { 53279 { 53280 oprot.writeI32(struct.success.size()); 53281 for (TCell _iter570 : struct.success) 53282 { 53283 _iter570.write(oprot); 53284 } 53285 } 53286 } 53287 if (struct.isSetIo()) { 53288 struct.io.write(oprot); 53289 } 53290 } 53291 53292 @Override 53293 public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException { 53294 TTupleProtocol iprot = (TTupleProtocol) prot; 53295 BitSet incoming = iprot.readBitSet(2); 53296 if (incoming.get(0)) { 53297 { 53298 org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); 53299 struct.success = new ArrayList<TCell>(_list571.size); 53300 for (int _i572 = 0; _i572 < _list571.size; ++_i572) 53301 { 53302 TCell _elem573; // required 53303 _elem573 = new TCell(); 53304 _elem573.read(iprot); 53305 struct.success.add(_elem573); 53306 } 53307 } 53308 struct.setSuccessIsSet(true); 53309 } 53310 if (incoming.get(1)) { 53311 struct.io = new IOError(); 53312 struct.io.read(iprot); 53313 struct.setIoIsSet(true); 53314 } 53315 } 53316 } 53317 53318 } 53319 53320 public static class getRegionInfo_args implements org.apache.thrift.TBase<getRegionInfo_args, getRegionInfo_args._Fields>, java.io.Serializable, Cloneable { 53321 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_args"); 53322 53323 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1); 53324 53325 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 53326 static { 53327 schemes.put(StandardScheme.class, new getRegionInfo_argsStandardSchemeFactory()); 53328 schemes.put(TupleScheme.class, new getRegionInfo_argsTupleSchemeFactory()); 53329 } 53330 53331 /** 53332 * row key 53333 */ 53334 public ByteBuffer row; // required 53335 53336 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 53337 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 53338 /** 53339 * row key 53340 */ 53341 ROW((short)1, "row"); 53342 53343 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 53344 53345 static { 53346 for (_Fields field : EnumSet.allOf(_Fields.class)) { 53347 byName.put(field.getFieldName(), field); 53348 } 53349 } 53350 53351 /** 53352 * Find the _Fields constant that matches fieldId, or null if its not found. 53353 */ 53354 public static _Fields findByThriftId(int fieldId) { 53355 switch(fieldId) { 53356 case 1: // ROW 53357 return ROW; 53358 default: 53359 return null; 53360 } 53361 } 53362 53363 /** 53364 * Find the _Fields constant that matches fieldId, throwing an exception 53365 * if it is not found. 53366 */ 53367 public static _Fields findByThriftIdOrThrow(int fieldId) { 53368 _Fields fields = findByThriftId(fieldId); 53369 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 53370 return fields; 53371 } 53372 53373 /** 53374 * Find the _Fields constant that matches name, or null if its not found. 53375 */ 53376 public static _Fields findByName(String name) { 53377 return byName.get(name); 53378 } 53379 53380 private final short _thriftId; 53381 private final String _fieldName; 53382 53383 _Fields(short thriftId, String fieldName) { 53384 _thriftId = thriftId; 53385 _fieldName = fieldName; 53386 } 53387 53388 public short getThriftFieldId() { 53389 return _thriftId; 53390 } 53391 53392 public String getFieldName() { 53393 return _fieldName; 53394 } 53395 } 53396 53397 // isset id assignments 53398 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 53399 static { 53400 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 53401 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT, 53402 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))); 53403 metaDataMap = Collections.unmodifiableMap(tmpMap); 53404 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_args.class, metaDataMap); 53405 } 53406 53407 public getRegionInfo_args() { 53408 } 53409 53410 public getRegionInfo_args( 53411 ByteBuffer row) 53412 { 53413 this(); 53414 this.row = row; 53415 } 53416 53417 /** 53418 * Performs a deep copy on <i>other</i>. 53419 */ 53420 public getRegionInfo_args(getRegionInfo_args other) { 53421 if (other.isSetRow()) { 53422 this.row = other.row; 53423 } 53424 } 53425 53426 public getRegionInfo_args deepCopy() { 53427 return new getRegionInfo_args(this); 53428 } 53429 53430 @Override 53431 public void clear() { 53432 this.row = null; 53433 } 53434 53435 /** 53436 * row key 53437 */ 53438 public byte[] getRow() { 53439 setRow(org.apache.thrift.TBaseHelper.rightSize(row)); 53440 return row == null ? null : row.array(); 53441 } 53442 53443 public ByteBuffer bufferForRow() { 53444 return row; 53445 } 53446 53447 /** 53448 * row key 53449 */ 53450 public getRegionInfo_args setRow(byte[] row) { 53451 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row)); 53452 return this; 53453 } 53454 53455 public getRegionInfo_args setRow(ByteBuffer row) { 53456 this.row = row; 53457 return this; 53458 } 53459 53460 public void unsetRow() { 53461 this.row = null; 53462 } 53463 53464 /** Returns true if field row is set (has been assigned a value) and false otherwise */ 53465 public boolean isSetRow() { 53466 return this.row != null; 53467 } 53468 53469 public void setRowIsSet(boolean value) { 53470 if (!value) { 53471 this.row = null; 53472 } 53473 } 53474 53475 public void setFieldValue(_Fields field, Object value) { 53476 switch (field) { 53477 case ROW: 53478 if (value == null) { 53479 unsetRow(); 53480 } else { 53481 setRow((ByteBuffer)value); 53482 } 53483 break; 53484 53485 } 53486 } 53487 53488 public Object getFieldValue(_Fields field) { 53489 switch (field) { 53490 case ROW: 53491 return getRow(); 53492 53493 } 53494 throw new IllegalStateException(); 53495 } 53496 53497 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 53498 public boolean isSet(_Fields field) { 53499 if (field == null) { 53500 throw new IllegalArgumentException(); 53501 } 53502 53503 switch (field) { 53504 case ROW: 53505 return isSetRow(); 53506 } 53507 throw new IllegalStateException(); 53508 } 53509 53510 @Override 53511 public boolean equals(Object that) { 53512 if (that == null) 53513 return false; 53514 if (that instanceof getRegionInfo_args) 53515 return this.equals((getRegionInfo_args)that); 53516 return false; 53517 } 53518 53519 public boolean equals(getRegionInfo_args that) { 53520 if (that == null) 53521 return false; 53522 53523 boolean this_present_row = true && this.isSetRow(); 53524 boolean that_present_row = true && that.isSetRow(); 53525 if (this_present_row || that_present_row) { 53526 if (!(this_present_row && that_present_row)) 53527 return false; 53528 if (!this.row.equals(that.row)) 53529 return false; 53530 } 53531 53532 return true; 53533 } 53534 53535 @Override 53536 public int hashCode() { 53537 HashCodeBuilder builder = new HashCodeBuilder(); 53538 53539 boolean present_row = true && (isSetRow()); 53540 builder.append(present_row); 53541 if (present_row) 53542 builder.append(row); 53543 53544 return builder.toHashCode(); 53545 } 53546 53547 public int compareTo(getRegionInfo_args other) { 53548 if (!getClass().equals(other.getClass())) { 53549 return getClass().getName().compareTo(other.getClass().getName()); 53550 } 53551 53552 int lastComparison = 0; 53553 getRegionInfo_args typedOther = (getRegionInfo_args)other; 53554 53555 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow()); 53556 if (lastComparison != 0) { 53557 return lastComparison; 53558 } 53559 if (isSetRow()) { 53560 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row); 53561 if (lastComparison != 0) { 53562 return lastComparison; 53563 } 53564 } 53565 return 0; 53566 } 53567 53568 public _Fields fieldForId(int fieldId) { 53569 return _Fields.findByThriftId(fieldId); 53570 } 53571 53572 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 53573 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 53574 } 53575 53576 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 53577 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 53578 } 53579 53580 @Override 53581 public String toString() { 53582 StringBuilder sb = new StringBuilder("getRegionInfo_args("); 53583 boolean first = true; 53584 53585 sb.append("row:"); 53586 if (this.row == null) { 53587 sb.append("null"); 53588 } else { 53589 sb.append(this.row); 53590 } 53591 first = false; 53592 sb.append(")"); 53593 return sb.toString(); 53594 } 53595 53596 public void validate() throws org.apache.thrift.TException { 53597 // check for required fields 53598 } 53599 53600 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 53601 try { 53602 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 53603 } catch (org.apache.thrift.TException te) { 53604 throw new java.io.IOException(te); 53605 } 53606 } 53607 53608 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 53609 try { 53610 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 53611 } catch (org.apache.thrift.TException te) { 53612 throw new java.io.IOException(te); 53613 } 53614 } 53615 53616 private static class getRegionInfo_argsStandardSchemeFactory implements SchemeFactory { 53617 public getRegionInfo_argsStandardScheme getScheme() { 53618 return new getRegionInfo_argsStandardScheme(); 53619 } 53620 } 53621 53622 private static class getRegionInfo_argsStandardScheme extends StandardScheme<getRegionInfo_args> { 53623 53624 public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_args struct) throws org.apache.thrift.TException { 53625 org.apache.thrift.protocol.TField schemeField; 53626 iprot.readStructBegin(); 53627 while (true) 53628 { 53629 schemeField = iprot.readFieldBegin(); 53630 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 53631 break; 53632 } 53633 switch (schemeField.id) { 53634 case 1: // ROW 53635 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 53636 struct.row = iprot.readBinary(); 53637 struct.setRowIsSet(true); 53638 } else { 53639 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 53640 } 53641 break; 53642 default: 53643 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 53644 } 53645 iprot.readFieldEnd(); 53646 } 53647 iprot.readStructEnd(); 53648 53649 // check for required fields of primitive type, which can't be checked in the validate method 53650 struct.validate(); 53651 } 53652 53653 public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_args struct) throws org.apache.thrift.TException { 53654 struct.validate(); 53655 53656 oprot.writeStructBegin(STRUCT_DESC); 53657 if (struct.row != null) { 53658 oprot.writeFieldBegin(ROW_FIELD_DESC); 53659 oprot.writeBinary(struct.row); 53660 oprot.writeFieldEnd(); 53661 } 53662 oprot.writeFieldStop(); 53663 oprot.writeStructEnd(); 53664 } 53665 53666 } 53667 53668 private static class getRegionInfo_argsTupleSchemeFactory implements SchemeFactory { 53669 public getRegionInfo_argsTupleScheme getScheme() { 53670 return new getRegionInfo_argsTupleScheme(); 53671 } 53672 } 53673 53674 private static class getRegionInfo_argsTupleScheme extends TupleScheme<getRegionInfo_args> { 53675 53676 @Override 53677 public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException { 53678 TTupleProtocol oprot = (TTupleProtocol) prot; 53679 BitSet optionals = new BitSet(); 53680 if (struct.isSetRow()) { 53681 optionals.set(0); 53682 } 53683 oprot.writeBitSet(optionals, 1); 53684 if (struct.isSetRow()) { 53685 oprot.writeBinary(struct.row); 53686 } 53687 } 53688 53689 @Override 53690 public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException { 53691 TTupleProtocol iprot = (TTupleProtocol) prot; 53692 BitSet incoming = iprot.readBitSet(1); 53693 if (incoming.get(0)) { 53694 struct.row = iprot.readBinary(); 53695 struct.setRowIsSet(true); 53696 } 53697 } 53698 } 53699 53700 } 53701 53702 public static class getRegionInfo_result implements org.apache.thrift.TBase<getRegionInfo_result, getRegionInfo_result._Fields>, java.io.Serializable, Cloneable { 53703 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_result"); 53704 53705 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); 53706 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1); 53707 53708 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 53709 static { 53710 schemes.put(StandardScheme.class, new getRegionInfo_resultStandardSchemeFactory()); 53711 schemes.put(TupleScheme.class, new getRegionInfo_resultTupleSchemeFactory()); 53712 } 53713 53714 public TRegionInfo success; // required 53715 public IOError io; // required 53716 53717 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 53718 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 53719 SUCCESS((short)0, "success"), 53720 IO((short)1, "io"); 53721 53722 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 53723 53724 static { 53725 for (_Fields field : EnumSet.allOf(_Fields.class)) { 53726 byName.put(field.getFieldName(), field); 53727 } 53728 } 53729 53730 /** 53731 * Find the _Fields constant that matches fieldId, or null if its not found. 53732 */ 53733 public static _Fields findByThriftId(int fieldId) { 53734 switch(fieldId) { 53735 case 0: // SUCCESS 53736 return SUCCESS; 53737 case 1: // IO 53738 return IO; 53739 default: 53740 return null; 53741 } 53742 } 53743 53744 /** 53745 * Find the _Fields constant that matches fieldId, throwing an exception 53746 * if it is not found. 53747 */ 53748 public static _Fields findByThriftIdOrThrow(int fieldId) { 53749 _Fields fields = findByThriftId(fieldId); 53750 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 53751 return fields; 53752 } 53753 53754 /** 53755 * Find the _Fields constant that matches name, or null if its not found. 53756 */ 53757 public static _Fields findByName(String name) { 53758 return byName.get(name); 53759 } 53760 53761 private final short _thriftId; 53762 private final String _fieldName; 53763 53764 _Fields(short thriftId, String fieldName) { 53765 _thriftId = thriftId; 53766 _fieldName = fieldName; 53767 } 53768 53769 public short getThriftFieldId() { 53770 return _thriftId; 53771 } 53772 53773 public String getFieldName() { 53774 return _fieldName; 53775 } 53776 } 53777 53778 // isset id assignments 53779 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 53780 static { 53781 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); 53782 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 53783 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class))); 53784 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT, 53785 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); 53786 metaDataMap = Collections.unmodifiableMap(tmpMap); 53787 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_result.class, metaDataMap); 53788 } 53789 53790 public getRegionInfo_result() { 53791 } 53792 53793 public getRegionInfo_result( 53794 TRegionInfo success, 53795 IOError io) 53796 { 53797 this(); 53798 this.success = success; 53799 this.io = io; 53800 } 53801 53802 /** 53803 * Performs a deep copy on <i>other</i>. 53804 */ 53805 public getRegionInfo_result(getRegionInfo_result other) { 53806 if (other.isSetSuccess()) { 53807 this.success = new TRegionInfo(other.success); 53808 } 53809 if (other.isSetIo()) { 53810 this.io = new IOError(other.io); 53811 } 53812 } 53813 53814 public getRegionInfo_result deepCopy() { 53815 return new getRegionInfo_result(this); 53816 } 53817 53818 @Override 53819 public void clear() { 53820 this.success = null; 53821 this.io = null; 53822 } 53823 53824 public TRegionInfo getSuccess() { 53825 return this.success; 53826 } 53827 53828 public getRegionInfo_result setSuccess(TRegionInfo success) { 53829 this.success = success; 53830 return this; 53831 } 53832 53833 public void unsetSuccess() { 53834 this.success = null; 53835 } 53836 53837 /** Returns true if field success is set (has been assigned a value) and false otherwise */ 53838 public boolean isSetSuccess() { 53839 return this.success != null; 53840 } 53841 53842 public void setSuccessIsSet(boolean value) { 53843 if (!value) { 53844 this.success = null; 53845 } 53846 } 53847 53848 public IOError getIo() { 53849 return this.io; 53850 } 53851 53852 public getRegionInfo_result setIo(IOError io) { 53853 this.io = io; 53854 return this; 53855 } 53856 53857 public void unsetIo() { 53858 this.io = null; 53859 } 53860 53861 /** Returns true if field io is set (has been assigned a value) and false otherwise */ 53862 public boolean isSetIo() { 53863 return this.io != null; 53864 } 53865 53866 public void setIoIsSet(boolean value) { 53867 if (!value) { 53868 this.io = null; 53869 } 53870 } 53871 53872 public void setFieldValue(_Fields field, Object value) { 53873 switch (field) { 53874 case SUCCESS: 53875 if (value == null) { 53876 unsetSuccess(); 53877 } else { 53878 setSuccess((TRegionInfo)value); 53879 } 53880 break; 53881 53882 case IO: 53883 if (value == null) { 53884 unsetIo(); 53885 } else { 53886 setIo((IOError)value); 53887 } 53888 break; 53889 53890 } 53891 } 53892 53893 public Object getFieldValue(_Fields field) { 53894 switch (field) { 53895 case SUCCESS: 53896 return getSuccess(); 53897 53898 case IO: 53899 return getIo(); 53900 53901 } 53902 throw new IllegalStateException(); 53903 } 53904 53905 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ 53906 public boolean isSet(_Fields field) { 53907 if (field == null) { 53908 throw new IllegalArgumentException(); 53909 } 53910 53911 switch (field) { 53912 case SUCCESS: 53913 return isSetSuccess(); 53914 case IO: 53915 return isSetIo(); 53916 } 53917 throw new IllegalStateException(); 53918 } 53919 53920 @Override 53921 public boolean equals(Object that) { 53922 if (that == null) 53923 return false; 53924 if (that instanceof getRegionInfo_result) 53925 return this.equals((getRegionInfo_result)that); 53926 return false; 53927 } 53928 53929 public boolean equals(getRegionInfo_result that) { 53930 if (that == null) 53931 return false; 53932 53933 boolean this_present_success = true && this.isSetSuccess(); 53934 boolean that_present_success = true && that.isSetSuccess(); 53935 if (this_present_success || that_present_success) { 53936 if (!(this_present_success && that_present_success)) 53937 return false; 53938 if (!this.success.equals(that.success)) 53939 return false; 53940 } 53941 53942 boolean this_present_io = true && this.isSetIo(); 53943 boolean that_present_io = true && that.isSetIo(); 53944 if (this_present_io || that_present_io) { 53945 if (!(this_present_io && that_present_io)) 53946 return false; 53947 if (!this.io.equals(that.io)) 53948 return false; 53949 } 53950 53951 return true; 53952 } 53953 53954 @Override 53955 public int hashCode() { 53956 HashCodeBuilder builder = new HashCodeBuilder(); 53957 53958 boolean present_success = true && (isSetSuccess()); 53959 builder.append(present_success); 53960 if (present_success) 53961 builder.append(success); 53962 53963 boolean present_io = true && (isSetIo()); 53964 builder.append(present_io); 53965 if (present_io) 53966 builder.append(io); 53967 53968 return builder.toHashCode(); 53969 } 53970 53971 public int compareTo(getRegionInfo_result other) { 53972 if (!getClass().equals(other.getClass())) { 53973 return getClass().getName().compareTo(other.getClass().getName()); 53974 } 53975 53976 int lastComparison = 0; 53977 getRegionInfo_result typedOther = (getRegionInfo_result)other; 53978 53979 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); 53980 if (lastComparison != 0) { 53981 return lastComparison; 53982 } 53983 if (isSetSuccess()) { 53984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); 53985 if (lastComparison != 0) { 53986 return lastComparison; 53987 } 53988 } 53989 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo()); 53990 if (lastComparison != 0) { 53991 return lastComparison; 53992 } 53993 if (isSetIo()) { 53994 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io); 53995 if (lastComparison != 0) { 53996 return lastComparison; 53997 } 53998 } 53999 return 0; 54000 } 54001 54002 public _Fields fieldForId(int fieldId) { 54003 return _Fields.findByThriftId(fieldId); 54004 } 54005 54006 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 54007 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 54008 } 54009 54010 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 54011 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 54012 } 54013 54014 @Override 54015 public String toString() { 54016 StringBuilder sb = new StringBuilder("getRegionInfo_result("); 54017 boolean first = true; 54018 54019 sb.append("success:"); 54020 if (this.success == null) { 54021 sb.append("null"); 54022 } else { 54023 sb.append(this.success); 54024 } 54025 first = false; 54026 if (!first) sb.append(", "); 54027 sb.append("io:"); 54028 if (this.io == null) { 54029 sb.append("null"); 54030 } else { 54031 sb.append(this.io); 54032 } 54033 first = false; 54034 sb.append(")"); 54035 return sb.toString(); 54036 } 54037 54038 public void validate() throws org.apache.thrift.TException { 54039 // check for required fields 54040 } 54041 54042 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 54043 try { 54044 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 54045 } catch (org.apache.thrift.TException te) { 54046 throw new java.io.IOException(te); 54047 } 54048 } 54049 54050 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 54051 try { 54052 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 54053 } catch (org.apache.thrift.TException te) { 54054 throw new java.io.IOException(te); 54055 } 54056 } 54057 54058 private static class getRegionInfo_resultStandardSchemeFactory implements SchemeFactory { 54059 public getRegionInfo_resultStandardScheme getScheme() { 54060 return new getRegionInfo_resultStandardScheme(); 54061 } 54062 } 54063 54064 private static class getRegionInfo_resultStandardScheme extends StandardScheme<getRegionInfo_result> { 54065 54066 public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_result struct) throws org.apache.thrift.TException { 54067 org.apache.thrift.protocol.TField schemeField; 54068 iprot.readStructBegin(); 54069 while (true) 54070 { 54071 schemeField = iprot.readFieldBegin(); 54072 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 54073 break; 54074 } 54075 switch (schemeField.id) { 54076 case 0: // SUCCESS 54077 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 54078 struct.success = new TRegionInfo(); 54079 struct.success.read(iprot); 54080 struct.setSuccessIsSet(true); 54081 } else { 54082 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 54083 } 54084 break; 54085 case 1: // IO 54086 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { 54087 struct.io = new IOError(); 54088 struct.io.read(iprot); 54089 struct.setIoIsSet(true); 54090 } else { 54091 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 54092 } 54093 break; 54094 default: 54095 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 54096 } 54097 iprot.readFieldEnd(); 54098 } 54099 iprot.readStructEnd(); 54100 54101 // check for required fields of primitive type, which can't be checked in the validate method 54102 struct.validate(); 54103 } 54104 54105 public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_result struct) throws org.apache.thrift.TException { 54106 struct.validate(); 54107 54108 oprot.writeStructBegin(STRUCT_DESC); 54109 if (struct.success != null) { 54110 oprot.writeFieldBegin(SUCCESS_FIELD_DESC); 54111 struct.success.write(oprot); 54112 oprot.writeFieldEnd(); 54113 } 54114 if (struct.io != null) { 54115 oprot.writeFieldBegin(IO_FIELD_DESC); 54116 struct.io.write(oprot); 54117 oprot.writeFieldEnd(); 54118 } 54119 oprot.writeFieldStop(); 54120 oprot.writeStructEnd(); 54121 } 54122 54123 } 54124 54125 private static class getRegionInfo_resultTupleSchemeFactory implements SchemeFactory { 54126 public getRegionInfo_resultTupleScheme getScheme() { 54127 return new getRegionInfo_resultTupleScheme(); 54128 } 54129 } 54130 54131 private static class getRegionInfo_resultTupleScheme extends TupleScheme<getRegionInfo_result> { 54132 54133 @Override 54134 public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException { 54135 TTupleProtocol oprot = (TTupleProtocol) prot; 54136 BitSet optionals = new BitSet(); 54137 if (struct.isSetSuccess()) { 54138 optionals.set(0); 54139 } 54140 if (struct.isSetIo()) { 54141 optionals.set(1); 54142 } 54143 oprot.writeBitSet(optionals, 2); 54144 if (struct.isSetSuccess()) { 54145 struct.success.write(oprot); 54146 } 54147 if (struct.isSetIo()) { 54148 struct.io.write(oprot); 54149 } 54150 } 54151 54152 @Override 54153 public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException { 54154 TTupleProtocol iprot = (TTupleProtocol) prot; 54155 BitSet incoming = iprot.readBitSet(2); 54156 if (incoming.get(0)) { 54157 struct.success = new TRegionInfo(); 54158 struct.success.read(iprot); 54159 struct.setSuccessIsSet(true); 54160 } 54161 if (incoming.get(1)) { 54162 struct.io = new IOError(); 54163 struct.io.read(iprot); 54164 struct.setIoIsSet(true); 54165 } 54166 } 54167 } 54168 54169 } 54170 54171}